@graphql-inspector/cli 4.0.3 → 4.0.4-alpha-20231130104206-e0883640

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.
@@ -5,31 +5,31 @@ export declare function directiveRemovedFromMeta(args: DirectiveRemovedChange):
5
5
  readonly level: CriticalityLevel.Breaking;
6
6
  readonly reason: "A directive could be in use of a client application. Removing it could break the client application.";
7
7
  };
8
- readonly type: ChangeType.DirectiveRemoved;
8
+ readonly type: "DIRECTIVE_REMOVED";
9
9
  readonly message: string;
10
10
  readonly path: `@${string}`;
11
11
  readonly meta: {
12
12
  removedDirectiveName: string;
13
13
  };
14
14
  };
15
- export declare function directiveRemoved(directive: GraphQLDirective): Change<ChangeType.DirectiveRemoved>;
15
+ export declare function directiveRemoved(directive: GraphQLDirective): Change<typeof ChangeType.DirectiveRemoved>;
16
16
  export declare function directiveAddedFromMeta(args: DirectiveAddedChange): {
17
17
  readonly criticality: {
18
18
  readonly level: CriticalityLevel.NonBreaking;
19
19
  };
20
- readonly type: ChangeType.DirectiveAdded;
20
+ readonly type: "DIRECTIVE_ADDED";
21
21
  readonly message: string;
22
22
  readonly path: `@${string}`;
23
23
  readonly meta: {
24
24
  addedDirectiveName: string;
25
25
  };
26
26
  };
27
- export declare function directiveAdded(directive: GraphQLDirective): Change<ChangeType.DirectiveAdded>;
27
+ export declare function directiveAdded(directive: GraphQLDirective): Change<typeof ChangeType.DirectiveAdded>;
28
28
  export declare function directiveDescriptionChangedFromMeta(args: DirectiveDescriptionChangedChange): {
29
29
  readonly criticality: {
30
30
  readonly level: CriticalityLevel.NonBreaking;
31
31
  };
32
- readonly type: ChangeType.DirectiveDescriptionChanged;
32
+ readonly type: "DIRECTIVE_DESCRIPTION_CHANGED";
33
33
  readonly message: string;
34
34
  readonly path: `@${string}`;
35
35
  readonly meta: {
@@ -38,12 +38,12 @@ export declare function directiveDescriptionChangedFromMeta(args: DirectiveDescr
38
38
  newDirectiveDescription: string | null;
39
39
  };
40
40
  };
41
- export declare function directiveDescriptionChanged(oldDirective: GraphQLDirective, newDirective: GraphQLDirective): Change<ChangeType.DirectiveDescriptionChanged>;
41
+ export declare function directiveDescriptionChanged(oldDirective: GraphQLDirective, newDirective: GraphQLDirective): Change<typeof ChangeType.DirectiveDescriptionChanged>;
42
42
  export declare function directiveLocationAddedFromMeta(args: DirectiveLocationAddedChange): {
43
43
  readonly criticality: {
44
44
  readonly level: CriticalityLevel.NonBreaking;
45
45
  };
46
- readonly type: ChangeType.DirectiveLocationAdded;
46
+ readonly type: "DIRECTIVE_LOCATION_ADDED";
47
47
  readonly message: string;
48
48
  readonly path: `@${string}`;
49
49
  readonly meta: {
@@ -51,13 +51,13 @@ export declare function directiveLocationAddedFromMeta(args: DirectiveLocationAd
51
51
  addedDirectiveLocation: string;
52
52
  };
53
53
  };
54
- export declare function directiveLocationAdded(directive: GraphQLDirective, location: DirectiveLocationEnum): Change<ChangeType.DirectiveLocationAdded>;
54
+ export declare function directiveLocationAdded(directive: GraphQLDirective, location: DirectiveLocationEnum): Change<typeof ChangeType.DirectiveLocationAdded>;
55
55
  export declare function directiveLocationRemovedFromMeta(args: DirectiveLocationRemovedChange): {
56
56
  readonly criticality: {
57
57
  readonly level: CriticalityLevel.Breaking;
58
58
  readonly reason: "A directive could be in use of a client application. Removing it could break the client application.";
59
59
  };
60
- readonly type: ChangeType.DirectiveLocationRemoved;
60
+ readonly type: "DIRECTIVE_LOCATION_REMOVED";
61
61
  readonly message: string;
62
62
  readonly path: `@${string}`;
63
63
  readonly meta: {
@@ -65,13 +65,13 @@ export declare function directiveLocationRemovedFromMeta(args: DirectiveLocation
65
65
  removedDirectiveLocation: string;
66
66
  };
67
67
  };
68
- export declare function directiveLocationRemoved(directive: GraphQLDirective, location: DirectiveLocationEnum): Change<ChangeType.DirectiveLocationRemoved>;
68
+ export declare function directiveLocationRemoved(directive: GraphQLDirective, location: DirectiveLocationEnum): Change<typeof ChangeType.DirectiveLocationRemoved>;
69
69
  export declare function directiveArgumentAddedFromMeta(args: DirectiveArgumentAddedChange): {
70
70
  readonly criticality: {
71
71
  level: CriticalityLevel;
72
72
  reason: string;
73
73
  };
74
- readonly type: ChangeType.DirectiveArgumentAdded;
74
+ readonly type: "DIRECTIVE_ARGUMENT_ADDED";
75
75
  readonly message: `Argument '${string}' was added to directive '${string}'`;
76
76
  readonly path: `@${string}`;
77
77
  readonly meta: {
@@ -80,13 +80,13 @@ export declare function directiveArgumentAddedFromMeta(args: DirectiveArgumentAd
80
80
  addedDirectiveArgumentTypeIsNonNull: boolean;
81
81
  };
82
82
  };
83
- export declare function directiveArgumentAdded(directive: GraphQLDirective, arg: GraphQLArgument): Change<ChangeType.DirectiveArgumentAdded>;
83
+ export declare function directiveArgumentAdded(directive: GraphQLDirective, arg: GraphQLArgument): Change<typeof ChangeType.DirectiveArgumentAdded>;
84
84
  export declare function directiveArgumentRemovedFromMeta(args: DirectiveArgumentRemovedChange): {
85
85
  readonly criticality: {
86
86
  readonly level: CriticalityLevel.Breaking;
87
87
  readonly reason: "A directive argument could be in use of a client application. Removing the argument can break client applications.";
88
88
  };
89
- readonly type: ChangeType.DirectiveArgumentRemoved;
89
+ readonly type: "DIRECTIVE_ARGUMENT_REMOVED";
90
90
  readonly message: string;
91
91
  readonly path: `@${string}.${string}`;
92
92
  readonly meta: {
@@ -94,12 +94,12 @@ export declare function directiveArgumentRemovedFromMeta(args: DirectiveArgument
94
94
  removedDirectiveArgumentName: string;
95
95
  };
96
96
  };
97
- export declare function directiveArgumentRemoved(directive: GraphQLDirective, arg: GraphQLArgument): Change<ChangeType.DirectiveArgumentRemoved>;
97
+ export declare function directiveArgumentRemoved(directive: GraphQLDirective, arg: GraphQLArgument): Change<typeof ChangeType.DirectiveArgumentRemoved>;
98
98
  export declare function directiveArgumentDescriptionChangedFromMeta(args: DirectiveArgumentDescriptionChangedChange): {
99
99
  readonly criticality: {
100
100
  readonly level: CriticalityLevel.NonBreaking;
101
101
  };
102
- readonly type: ChangeType.DirectiveArgumentDescriptionChanged;
102
+ readonly type: "DIRECTIVE_ARGUMENT_DESCRIPTION_CHANGED";
103
103
  readonly message: string;
104
104
  readonly path: `@${string}.${string}`;
105
105
  readonly meta: {
@@ -109,13 +109,13 @@ export declare function directiveArgumentDescriptionChangedFromMeta(args: Direct
109
109
  newDirectiveArgumentDescription: string | null;
110
110
  };
111
111
  };
112
- export declare function directiveArgumentDescriptionChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<ChangeType.DirectiveArgumentDescriptionChanged>;
112
+ export declare function directiveArgumentDescriptionChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<typeof ChangeType.DirectiveArgumentDescriptionChanged>;
113
113
  export declare function directiveArgumentDefaultValueChangedFromMeta(args: DirectiveArgumentDefaultValueChangedChange): {
114
114
  readonly criticality: {
115
115
  readonly level: CriticalityLevel.Dangerous;
116
116
  readonly reason: "Changing the default value for an argument may change the runtime behaviour of a field if it was never provided.";
117
117
  };
118
- readonly type: ChangeType.DirectiveArgumentDefaultValueChanged;
118
+ readonly type: "DIRECTIVE_ARGUMENT_DEFAULT_VALUE_CHANGED";
119
119
  readonly message: string;
120
120
  readonly path: `@${string}.${string}`;
121
121
  readonly meta: {
@@ -125,7 +125,7 @@ export declare function directiveArgumentDefaultValueChangedFromMeta(args: Direc
125
125
  newDirectiveArgumentDefaultValue?: string | undefined;
126
126
  };
127
127
  };
128
- export declare function directiveArgumentDefaultValueChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<ChangeType.DirectiveArgumentDefaultValueChanged>;
128
+ export declare function directiveArgumentDefaultValueChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<typeof ChangeType.DirectiveArgumentDefaultValueChanged>;
129
129
  export declare function directiveArgumentTypeChangedFromMeta(args: DirectiveArgumentTypeChangedChange): {
130
130
  readonly criticality: {
131
131
  level: CriticalityLevel;
@@ -134,7 +134,7 @@ export declare function directiveArgumentTypeChangedFromMeta(args: DirectiveArgu
134
134
  level: CriticalityLevel;
135
135
  reason?: undefined;
136
136
  };
137
- readonly type: ChangeType.DirectiveArgumentTypeChanged;
137
+ readonly type: "DIRECTIVE_ARGUMENT_TYPE_CHANGED";
138
138
  readonly message: string;
139
139
  readonly path: `@${string}.${string}`;
140
140
  readonly meta: {
@@ -145,4 +145,4 @@ export declare function directiveArgumentTypeChangedFromMeta(args: DirectiveArgu
145
145
  isSafeDirectiveArgumentTypeChange: boolean;
146
146
  };
147
147
  };
148
- export declare function directiveArgumentTypeChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<ChangeType.DirectiveArgumentTypeChanged>;
148
+ export declare function directiveArgumentTypeChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<typeof ChangeType.DirectiveArgumentTypeChanged>;
@@ -5,31 +5,31 @@ export declare function directiveRemovedFromMeta(args: DirectiveRemovedChange):
5
5
  readonly level: CriticalityLevel.Breaking;
6
6
  readonly reason: "A directive could be in use of a client application. Removing it could break the client application.";
7
7
  };
8
- readonly type: ChangeType.DirectiveRemoved;
8
+ readonly type: "DIRECTIVE_REMOVED";
9
9
  readonly message: string;
10
10
  readonly path: `@${string}`;
11
11
  readonly meta: {
12
12
  removedDirectiveName: string;
13
13
  };
14
14
  };
15
- export declare function directiveRemoved(directive: GraphQLDirective): Change<ChangeType.DirectiveRemoved>;
15
+ export declare function directiveRemoved(directive: GraphQLDirective): Change<typeof ChangeType.DirectiveRemoved>;
16
16
  export declare function directiveAddedFromMeta(args: DirectiveAddedChange): {
17
17
  readonly criticality: {
18
18
  readonly level: CriticalityLevel.NonBreaking;
19
19
  };
20
- readonly type: ChangeType.DirectiveAdded;
20
+ readonly type: "DIRECTIVE_ADDED";
21
21
  readonly message: string;
22
22
  readonly path: `@${string}`;
23
23
  readonly meta: {
24
24
  addedDirectiveName: string;
25
25
  };
26
26
  };
27
- export declare function directiveAdded(directive: GraphQLDirective): Change<ChangeType.DirectiveAdded>;
27
+ export declare function directiveAdded(directive: GraphQLDirective): Change<typeof ChangeType.DirectiveAdded>;
28
28
  export declare function directiveDescriptionChangedFromMeta(args: DirectiveDescriptionChangedChange): {
29
29
  readonly criticality: {
30
30
  readonly level: CriticalityLevel.NonBreaking;
31
31
  };
32
- readonly type: ChangeType.DirectiveDescriptionChanged;
32
+ readonly type: "DIRECTIVE_DESCRIPTION_CHANGED";
33
33
  readonly message: string;
34
34
  readonly path: `@${string}`;
35
35
  readonly meta: {
@@ -38,12 +38,12 @@ export declare function directiveDescriptionChangedFromMeta(args: DirectiveDescr
38
38
  newDirectiveDescription: string | null;
39
39
  };
40
40
  };
41
- export declare function directiveDescriptionChanged(oldDirective: GraphQLDirective, newDirective: GraphQLDirective): Change<ChangeType.DirectiveDescriptionChanged>;
41
+ export declare function directiveDescriptionChanged(oldDirective: GraphQLDirective, newDirective: GraphQLDirective): Change<typeof ChangeType.DirectiveDescriptionChanged>;
42
42
  export declare function directiveLocationAddedFromMeta(args: DirectiveLocationAddedChange): {
43
43
  readonly criticality: {
44
44
  readonly level: CriticalityLevel.NonBreaking;
45
45
  };
46
- readonly type: ChangeType.DirectiveLocationAdded;
46
+ readonly type: "DIRECTIVE_LOCATION_ADDED";
47
47
  readonly message: string;
48
48
  readonly path: `@${string}`;
49
49
  readonly meta: {
@@ -51,13 +51,13 @@ export declare function directiveLocationAddedFromMeta(args: DirectiveLocationAd
51
51
  addedDirectiveLocation: string;
52
52
  };
53
53
  };
54
- export declare function directiveLocationAdded(directive: GraphQLDirective, location: DirectiveLocationEnum): Change<ChangeType.DirectiveLocationAdded>;
54
+ export declare function directiveLocationAdded(directive: GraphQLDirective, location: DirectiveLocationEnum): Change<typeof ChangeType.DirectiveLocationAdded>;
55
55
  export declare function directiveLocationRemovedFromMeta(args: DirectiveLocationRemovedChange): {
56
56
  readonly criticality: {
57
57
  readonly level: CriticalityLevel.Breaking;
58
58
  readonly reason: "A directive could be in use of a client application. Removing it could break the client application.";
59
59
  };
60
- readonly type: ChangeType.DirectiveLocationRemoved;
60
+ readonly type: "DIRECTIVE_LOCATION_REMOVED";
61
61
  readonly message: string;
62
62
  readonly path: `@${string}`;
63
63
  readonly meta: {
@@ -65,13 +65,13 @@ export declare function directiveLocationRemovedFromMeta(args: DirectiveLocation
65
65
  removedDirectiveLocation: string;
66
66
  };
67
67
  };
68
- export declare function directiveLocationRemoved(directive: GraphQLDirective, location: DirectiveLocationEnum): Change<ChangeType.DirectiveLocationRemoved>;
68
+ export declare function directiveLocationRemoved(directive: GraphQLDirective, location: DirectiveLocationEnum): Change<typeof ChangeType.DirectiveLocationRemoved>;
69
69
  export declare function directiveArgumentAddedFromMeta(args: DirectiveArgumentAddedChange): {
70
70
  readonly criticality: {
71
71
  level: CriticalityLevel;
72
72
  reason: string;
73
73
  };
74
- readonly type: ChangeType.DirectiveArgumentAdded;
74
+ readonly type: "DIRECTIVE_ARGUMENT_ADDED";
75
75
  readonly message: `Argument '${string}' was added to directive '${string}'`;
76
76
  readonly path: `@${string}`;
77
77
  readonly meta: {
@@ -80,13 +80,13 @@ export declare function directiveArgumentAddedFromMeta(args: DirectiveArgumentAd
80
80
  addedDirectiveArgumentTypeIsNonNull: boolean;
81
81
  };
82
82
  };
83
- export declare function directiveArgumentAdded(directive: GraphQLDirective, arg: GraphQLArgument): Change<ChangeType.DirectiveArgumentAdded>;
83
+ export declare function directiveArgumentAdded(directive: GraphQLDirective, arg: GraphQLArgument): Change<typeof ChangeType.DirectiveArgumentAdded>;
84
84
  export declare function directiveArgumentRemovedFromMeta(args: DirectiveArgumentRemovedChange): {
85
85
  readonly criticality: {
86
86
  readonly level: CriticalityLevel.Breaking;
87
87
  readonly reason: "A directive argument could be in use of a client application. Removing the argument can break client applications.";
88
88
  };
89
- readonly type: ChangeType.DirectiveArgumentRemoved;
89
+ readonly type: "DIRECTIVE_ARGUMENT_REMOVED";
90
90
  readonly message: string;
91
91
  readonly path: `@${string}.${string}`;
92
92
  readonly meta: {
@@ -94,12 +94,12 @@ export declare function directiveArgumentRemovedFromMeta(args: DirectiveArgument
94
94
  removedDirectiveArgumentName: string;
95
95
  };
96
96
  };
97
- export declare function directiveArgumentRemoved(directive: GraphQLDirective, arg: GraphQLArgument): Change<ChangeType.DirectiveArgumentRemoved>;
97
+ export declare function directiveArgumentRemoved(directive: GraphQLDirective, arg: GraphQLArgument): Change<typeof ChangeType.DirectiveArgumentRemoved>;
98
98
  export declare function directiveArgumentDescriptionChangedFromMeta(args: DirectiveArgumentDescriptionChangedChange): {
99
99
  readonly criticality: {
100
100
  readonly level: CriticalityLevel.NonBreaking;
101
101
  };
102
- readonly type: ChangeType.DirectiveArgumentDescriptionChanged;
102
+ readonly type: "DIRECTIVE_ARGUMENT_DESCRIPTION_CHANGED";
103
103
  readonly message: string;
104
104
  readonly path: `@${string}.${string}`;
105
105
  readonly meta: {
@@ -109,13 +109,13 @@ export declare function directiveArgumentDescriptionChangedFromMeta(args: Direct
109
109
  newDirectiveArgumentDescription: string | null;
110
110
  };
111
111
  };
112
- export declare function directiveArgumentDescriptionChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<ChangeType.DirectiveArgumentDescriptionChanged>;
112
+ export declare function directiveArgumentDescriptionChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<typeof ChangeType.DirectiveArgumentDescriptionChanged>;
113
113
  export declare function directiveArgumentDefaultValueChangedFromMeta(args: DirectiveArgumentDefaultValueChangedChange): {
114
114
  readonly criticality: {
115
115
  readonly level: CriticalityLevel.Dangerous;
116
116
  readonly reason: "Changing the default value for an argument may change the runtime behaviour of a field if it was never provided.";
117
117
  };
118
- readonly type: ChangeType.DirectiveArgumentDefaultValueChanged;
118
+ readonly type: "DIRECTIVE_ARGUMENT_DEFAULT_VALUE_CHANGED";
119
119
  readonly message: string;
120
120
  readonly path: `@${string}.${string}`;
121
121
  readonly meta: {
@@ -125,7 +125,7 @@ export declare function directiveArgumentDefaultValueChangedFromMeta(args: Direc
125
125
  newDirectiveArgumentDefaultValue?: string | undefined;
126
126
  };
127
127
  };
128
- export declare function directiveArgumentDefaultValueChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<ChangeType.DirectiveArgumentDefaultValueChanged>;
128
+ export declare function directiveArgumentDefaultValueChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<typeof ChangeType.DirectiveArgumentDefaultValueChanged>;
129
129
  export declare function directiveArgumentTypeChangedFromMeta(args: DirectiveArgumentTypeChangedChange): {
130
130
  readonly criticality: {
131
131
  level: CriticalityLevel;
@@ -134,7 +134,7 @@ export declare function directiveArgumentTypeChangedFromMeta(args: DirectiveArgu
134
134
  level: CriticalityLevel;
135
135
  reason?: undefined;
136
136
  };
137
- readonly type: ChangeType.DirectiveArgumentTypeChanged;
137
+ readonly type: "DIRECTIVE_ARGUMENT_TYPE_CHANGED";
138
138
  readonly message: string;
139
139
  readonly path: `@${string}.${string}`;
140
140
  readonly meta: {
@@ -145,4 +145,4 @@ export declare function directiveArgumentTypeChangedFromMeta(args: DirectiveArgu
145
145
  isSafeDirectiveArgumentTypeChange: boolean;
146
146
  };
147
147
  };
148
- export declare function directiveArgumentTypeChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<ChangeType.DirectiveArgumentTypeChanged>;
148
+ export declare function directiveArgumentTypeChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<typeof ChangeType.DirectiveArgumentTypeChanged>;
@@ -1,7 +1,7 @@
1
1
  import { GraphQLEnumType, GraphQLEnumValue } from 'graphql';
2
2
  import { Change, ChangeType, CriticalityLevel, EnumValueAddedChange, EnumValueDeprecationReasonAddedChange, EnumValueDeprecationReasonChangedChange, EnumValueDeprecationReasonRemovedChange, EnumValueDescriptionChangedChange, EnumValueRemovedChange } from './change.cjs';
3
3
  export declare function enumValueRemovedFromMeta(args: EnumValueRemovedChange): {
4
- readonly type: ChangeType.EnumValueRemoved;
4
+ readonly type: "ENUM_VALUE_REMOVED";
5
5
  readonly criticality: {
6
6
  readonly level: CriticalityLevel.Breaking;
7
7
  readonly reason: "Removing an enum value will cause existing queries that use this enum value to error.";
@@ -14,9 +14,9 @@ export declare function enumValueRemovedFromMeta(args: EnumValueRemovedChange):
14
14
  };
15
15
  readonly path: string;
16
16
  };
17
- export declare function enumValueRemoved(oldEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<ChangeType.EnumValueRemoved>;
17
+ export declare function enumValueRemoved(oldEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<typeof ChangeType.EnumValueRemoved>;
18
18
  export declare function enumValueAddedFromMeta(args: EnumValueAddedChange): {
19
- readonly type: ChangeType.EnumValueAdded;
19
+ readonly type: "ENUM_VALUE_ADDED";
20
20
  readonly criticality: {
21
21
  readonly level: CriticalityLevel.Dangerous;
22
22
  readonly reason: "Adding an enum value may break existing clients that were not programming defensively against an added case when querying an enum.";
@@ -28,14 +28,14 @@ export declare function enumValueAddedFromMeta(args: EnumValueAddedChange): {
28
28
  };
29
29
  readonly path: string;
30
30
  };
31
- export declare function enumValueAdded(newEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<ChangeType.EnumValueAdded>;
32
- export declare function enumValueDescriptionChangedFromMeta(args: EnumValueDescriptionChangedChange): Change<ChangeType.EnumValueDescriptionChanged>;
33
- export declare function enumValueDescriptionChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDescriptionChanged>;
31
+ export declare function enumValueAdded(newEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<typeof ChangeType.EnumValueAdded>;
32
+ export declare function enumValueDescriptionChangedFromMeta(args: EnumValueDescriptionChangedChange): Change<typeof ChangeType.EnumValueDescriptionChanged>;
33
+ export declare function enumValueDescriptionChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<typeof ChangeType.EnumValueDescriptionChanged>;
34
34
  export declare function enumValueDeprecationReasonChangedFromMeta(args: EnumValueDeprecationReasonChangedChange): {
35
35
  readonly criticality: {
36
36
  readonly level: CriticalityLevel.NonBreaking;
37
37
  };
38
- readonly type: ChangeType.EnumValueDeprecationReasonChanged;
38
+ readonly type: "ENUM_VALUE_DEPRECATION_REASON_CHANGED";
39
39
  readonly message: string;
40
40
  readonly path: string;
41
41
  readonly meta: {
@@ -45,12 +45,12 @@ export declare function enumValueDeprecationReasonChangedFromMeta(args: EnumValu
45
45
  newEnumValueDeprecationReason: string;
46
46
  };
47
47
  };
48
- export declare function enumValueDeprecationReasonChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonChanged>;
48
+ export declare function enumValueDeprecationReasonChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<typeof ChangeType.EnumValueDeprecationReasonChanged>;
49
49
  export declare function enumValueDeprecationReasonAddedFromMeta(args: EnumValueDeprecationReasonAddedChange): {
50
50
  readonly criticality: {
51
51
  readonly level: CriticalityLevel.NonBreaking;
52
52
  };
53
- readonly type: ChangeType.EnumValueDeprecationReasonAdded;
53
+ readonly type: "ENUM_VALUE_DEPRECATION_REASON_ADDED";
54
54
  readonly message: string;
55
55
  readonly path: string;
56
56
  readonly meta: {
@@ -59,12 +59,12 @@ export declare function enumValueDeprecationReasonAddedFromMeta(args: EnumValueD
59
59
  addedValueDeprecationReason: string;
60
60
  };
61
61
  };
62
- export declare function enumValueDeprecationReasonAdded(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonAdded>;
62
+ export declare function enumValueDeprecationReasonAdded(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<typeof ChangeType.EnumValueDeprecationReasonAdded>;
63
63
  export declare function enumValueDeprecationReasonRemovedFromMeta(args: EnumValueDeprecationReasonRemovedChange): {
64
64
  readonly criticality: {
65
65
  readonly level: CriticalityLevel.NonBreaking;
66
66
  };
67
- readonly type: ChangeType.EnumValueDeprecationReasonRemoved;
67
+ readonly type: "ENUM_VALUE_DEPRECATION_REASON_REMOVED";
68
68
  readonly message: string;
69
69
  readonly path: string;
70
70
  readonly meta: {
@@ -73,4 +73,4 @@ export declare function enumValueDeprecationReasonRemovedFromMeta(args: EnumValu
73
73
  removedEnumValueDeprecationReason: string;
74
74
  };
75
75
  };
76
- export declare function enumValueDeprecationReasonRemoved(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, _newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonRemoved>;
76
+ export declare function enumValueDeprecationReasonRemoved(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, _newValue: GraphQLEnumValue): Change<typeof ChangeType.EnumValueDeprecationReasonRemoved>;
@@ -1,7 +1,7 @@
1
1
  import { GraphQLEnumType, GraphQLEnumValue } from 'graphql';
2
2
  import { Change, ChangeType, CriticalityLevel, EnumValueAddedChange, EnumValueDeprecationReasonAddedChange, EnumValueDeprecationReasonChangedChange, EnumValueDeprecationReasonRemovedChange, EnumValueDescriptionChangedChange, EnumValueRemovedChange } from './change.js';
3
3
  export declare function enumValueRemovedFromMeta(args: EnumValueRemovedChange): {
4
- readonly type: ChangeType.EnumValueRemoved;
4
+ readonly type: "ENUM_VALUE_REMOVED";
5
5
  readonly criticality: {
6
6
  readonly level: CriticalityLevel.Breaking;
7
7
  readonly reason: "Removing an enum value will cause existing queries that use this enum value to error.";
@@ -14,9 +14,9 @@ export declare function enumValueRemovedFromMeta(args: EnumValueRemovedChange):
14
14
  };
15
15
  readonly path: string;
16
16
  };
17
- export declare function enumValueRemoved(oldEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<ChangeType.EnumValueRemoved>;
17
+ export declare function enumValueRemoved(oldEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<typeof ChangeType.EnumValueRemoved>;
18
18
  export declare function enumValueAddedFromMeta(args: EnumValueAddedChange): {
19
- readonly type: ChangeType.EnumValueAdded;
19
+ readonly type: "ENUM_VALUE_ADDED";
20
20
  readonly criticality: {
21
21
  readonly level: CriticalityLevel.Dangerous;
22
22
  readonly reason: "Adding an enum value may break existing clients that were not programming defensively against an added case when querying an enum.";
@@ -28,14 +28,14 @@ export declare function enumValueAddedFromMeta(args: EnumValueAddedChange): {
28
28
  };
29
29
  readonly path: string;
30
30
  };
31
- export declare function enumValueAdded(newEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<ChangeType.EnumValueAdded>;
32
- export declare function enumValueDescriptionChangedFromMeta(args: EnumValueDescriptionChangedChange): Change<ChangeType.EnumValueDescriptionChanged>;
33
- export declare function enumValueDescriptionChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDescriptionChanged>;
31
+ export declare function enumValueAdded(newEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<typeof ChangeType.EnumValueAdded>;
32
+ export declare function enumValueDescriptionChangedFromMeta(args: EnumValueDescriptionChangedChange): Change<typeof ChangeType.EnumValueDescriptionChanged>;
33
+ export declare function enumValueDescriptionChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<typeof ChangeType.EnumValueDescriptionChanged>;
34
34
  export declare function enumValueDeprecationReasonChangedFromMeta(args: EnumValueDeprecationReasonChangedChange): {
35
35
  readonly criticality: {
36
36
  readonly level: CriticalityLevel.NonBreaking;
37
37
  };
38
- readonly type: ChangeType.EnumValueDeprecationReasonChanged;
38
+ readonly type: "ENUM_VALUE_DEPRECATION_REASON_CHANGED";
39
39
  readonly message: string;
40
40
  readonly path: string;
41
41
  readonly meta: {
@@ -45,12 +45,12 @@ export declare function enumValueDeprecationReasonChangedFromMeta(args: EnumValu
45
45
  newEnumValueDeprecationReason: string;
46
46
  };
47
47
  };
48
- export declare function enumValueDeprecationReasonChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonChanged>;
48
+ export declare function enumValueDeprecationReasonChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<typeof ChangeType.EnumValueDeprecationReasonChanged>;
49
49
  export declare function enumValueDeprecationReasonAddedFromMeta(args: EnumValueDeprecationReasonAddedChange): {
50
50
  readonly criticality: {
51
51
  readonly level: CriticalityLevel.NonBreaking;
52
52
  };
53
- readonly type: ChangeType.EnumValueDeprecationReasonAdded;
53
+ readonly type: "ENUM_VALUE_DEPRECATION_REASON_ADDED";
54
54
  readonly message: string;
55
55
  readonly path: string;
56
56
  readonly meta: {
@@ -59,12 +59,12 @@ export declare function enumValueDeprecationReasonAddedFromMeta(args: EnumValueD
59
59
  addedValueDeprecationReason: string;
60
60
  };
61
61
  };
62
- export declare function enumValueDeprecationReasonAdded(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonAdded>;
62
+ export declare function enumValueDeprecationReasonAdded(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<typeof ChangeType.EnumValueDeprecationReasonAdded>;
63
63
  export declare function enumValueDeprecationReasonRemovedFromMeta(args: EnumValueDeprecationReasonRemovedChange): {
64
64
  readonly criticality: {
65
65
  readonly level: CriticalityLevel.NonBreaking;
66
66
  };
67
- readonly type: ChangeType.EnumValueDeprecationReasonRemoved;
67
+ readonly type: "ENUM_VALUE_DEPRECATION_REASON_REMOVED";
68
68
  readonly message: string;
69
69
  readonly path: string;
70
70
  readonly meta: {
@@ -73,4 +73,4 @@ export declare function enumValueDeprecationReasonRemovedFromMeta(args: EnumValu
73
73
  removedEnumValueDeprecationReason: string;
74
74
  };
75
75
  };
76
- export declare function enumValueDeprecationReasonRemoved(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, _newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonRemoved>;
76
+ export declare function enumValueDeprecationReasonRemoved(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, _newValue: GraphQLEnumValue): Change<typeof ChangeType.EnumValueDeprecationReasonRemoved>;
@@ -1,7 +1,7 @@
1
1
  import { GraphQLArgument, GraphQLField, GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
2
2
  import { Change, ChangeType, CriticalityLevel, FieldAddedChange, FieldArgumentAddedChange, FieldArgumentRemovedChange, FieldDeprecationAddedChange, FieldDeprecationReasonAddedChange, FieldDeprecationReasonChangedChange, FieldDeprecationReasonRemovedChange, FieldDeprecationRemovedChange, FieldDescriptionAddedChange, FieldDescriptionChangedChange, FieldDescriptionRemovedChange, FieldRemovedChange, FieldTypeChangedChange } from './change.cjs';
3
3
  export declare function fieldRemovedFromMeta(args: FieldRemovedChange): {
4
- readonly type: ChangeType.FieldRemoved;
4
+ readonly type: "FIELD_REMOVED";
5
5
  readonly criticality: {
6
6
  readonly level: CriticalityLevel.Breaking;
7
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.";
@@ -15,9 +15,9 @@ export declare function fieldRemovedFromMeta(args: FieldRemovedChange): {
15
15
  };
16
16
  readonly path: string;
17
17
  };
18
- export declare function fieldRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change<ChangeType.FieldRemoved>;
18
+ export declare function fieldRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change<typeof ChangeType.FieldRemoved>;
19
19
  export declare function fieldAddedFromMeta(args: FieldAddedChange): {
20
- readonly type: ChangeType.FieldAdded;
20
+ readonly type: "FIELD_ADDED";
21
21
  readonly criticality: {
22
22
  readonly level: CriticalityLevel.NonBreaking;
23
23
  };
@@ -29,9 +29,9 @@ export declare function fieldAddedFromMeta(args: FieldAddedChange): {
29
29
  };
30
30
  readonly path: string;
31
31
  };
32
- export declare function fieldAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change<ChangeType.FieldAdded>;
32
+ export declare function fieldAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change<typeof ChangeType.FieldAdded>;
33
33
  export declare function fieldDescriptionChangedFromMeta(args: FieldDescriptionChangedChange): {
34
- readonly type: ChangeType.FieldDescriptionChanged;
34
+ readonly type: "FIELD_DESCRIPTION_CHANGED";
35
35
  readonly criticality: {
36
36
  readonly level: CriticalityLevel.NonBreaking;
37
37
  };
@@ -44,9 +44,9 @@ export declare function fieldDescriptionChangedFromMeta(args: FieldDescriptionCh
44
44
  };
45
45
  readonly path: string;
46
46
  };
47
- export declare function fieldDescriptionChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change<ChangeType.FieldDescriptionChanged>;
47
+ export declare function fieldDescriptionChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change<typeof ChangeType.FieldDescriptionChanged>;
48
48
  export declare function fieldDescriptionAddedFromMeta(args: FieldDescriptionAddedChange): {
49
- readonly type: ChangeType.FieldDescriptionAdded;
49
+ readonly type: "FIELD_DESCRIPTION_ADDED";
50
50
  readonly criticality: {
51
51
  readonly level: CriticalityLevel.NonBreaking;
52
52
  };
@@ -58,9 +58,9 @@ export declare function fieldDescriptionAddedFromMeta(args: FieldDescriptionAdde
58
58
  };
59
59
  readonly path: string;
60
60
  };
61
- export declare function fieldDescriptionAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDescriptionAdded>;
61
+ export declare function fieldDescriptionAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<typeof ChangeType.FieldDescriptionAdded>;
62
62
  export declare function fieldDescriptionRemovedFromMeta(args: FieldDescriptionRemovedChange): {
63
- readonly type: ChangeType.FieldDescriptionRemoved;
63
+ readonly type: "FIELD_DESCRIPTION_REMOVED";
64
64
  readonly criticality: {
65
65
  readonly level: CriticalityLevel.NonBreaking;
66
66
  };
@@ -71,9 +71,9 @@ export declare function fieldDescriptionRemovedFromMeta(args: FieldDescriptionRe
71
71
  };
72
72
  readonly path: string;
73
73
  };
74
- export declare function fieldDescriptionRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDescriptionRemoved>;
74
+ export declare function fieldDescriptionRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<typeof ChangeType.FieldDescriptionRemoved>;
75
75
  export declare function fieldDeprecationAddedFromMeta(args: FieldDeprecationAddedChange): {
76
- readonly type: ChangeType.FieldDeprecationAdded;
76
+ readonly type: "FIELD_DEPRECATION_ADDED";
77
77
  readonly criticality: {
78
78
  readonly level: CriticalityLevel.NonBreaking;
79
79
  };
@@ -84,9 +84,9 @@ export declare function fieldDeprecationAddedFromMeta(args: FieldDeprecationAdde
84
84
  };
85
85
  readonly path: string;
86
86
  };
87
- export declare function fieldDeprecationAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationAdded>;
87
+ export declare function fieldDeprecationAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<typeof ChangeType.FieldDeprecationAdded>;
88
88
  export declare function fieldDeprecationRemovedFromMeta(args: FieldDeprecationRemovedChange): {
89
- readonly type: ChangeType.FieldDeprecationRemoved;
89
+ readonly type: "FIELD_DEPRECATION_REMOVED";
90
90
  readonly criticality: {
91
91
  readonly level: CriticalityLevel.Dangerous;
92
92
  };
@@ -97,9 +97,9 @@ export declare function fieldDeprecationRemovedFromMeta(args: FieldDeprecationRe
97
97
  };
98
98
  readonly path: string;
99
99
  };
100
- export declare function fieldDeprecationRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationRemoved>;
100
+ export declare function fieldDeprecationRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<typeof ChangeType.FieldDeprecationRemoved>;
101
101
  export declare function fieldDeprecationReasonChangedFromMeta(args: FieldDeprecationReasonChangedChange): {
102
- readonly type: ChangeType.FieldDeprecationReasonChanged;
102
+ readonly type: "FIELD_DEPRECATION_REASON_CHANGED";
103
103
  readonly criticality: {
104
104
  readonly level: CriticalityLevel.NonBreaking;
105
105
  };
@@ -112,9 +112,9 @@ export declare function fieldDeprecationReasonChangedFromMeta(args: FieldDepreca
112
112
  };
113
113
  readonly path: string;
114
114
  };
115
- export declare function fieldDeprecationReasonChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationReasonChanged>;
115
+ export declare function fieldDeprecationReasonChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change<typeof ChangeType.FieldDeprecationReasonChanged>;
116
116
  export declare function fieldDeprecationReasonAddedFromMeta(args: FieldDeprecationReasonAddedChange): {
117
- readonly type: ChangeType.FieldDeprecationReasonAdded;
117
+ readonly type: "FIELD_DEPRECATION_REASON_ADDED";
118
118
  readonly criticality: {
119
119
  readonly level: CriticalityLevel.NonBreaking;
120
120
  };
@@ -126,9 +126,9 @@ export declare function fieldDeprecationReasonAddedFromMeta(args: FieldDeprecati
126
126
  };
127
127
  readonly path: string;
128
128
  };
129
- export declare function fieldDeprecationReasonAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationReasonAdded>;
129
+ export declare function fieldDeprecationReasonAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<typeof ChangeType.FieldDeprecationReasonAdded>;
130
130
  export declare function fieldDeprecationReasonRemovedFromMeta(args: FieldDeprecationReasonRemovedChange): {
131
- readonly type: ChangeType.FieldDeprecationReasonRemoved;
131
+ readonly type: "FIELD_DEPRECATION_REASON_REMOVED";
132
132
  readonly criticality: {
133
133
  readonly level: CriticalityLevel.NonBreaking;
134
134
  };
@@ -139,9 +139,9 @@ export declare function fieldDeprecationReasonRemovedFromMeta(args: FieldDepreca
139
139
  };
140
140
  readonly path: string;
141
141
  };
142
- export declare function fieldDeprecationReasonRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationReasonRemoved>;
142
+ export declare function fieldDeprecationReasonRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<typeof ChangeType.FieldDeprecationReasonRemoved>;
143
143
  export declare function fieldTypeChangedFromMeta(args: FieldTypeChangedChange): {
144
- readonly type: ChangeType.FieldTypeChanged;
144
+ readonly type: "FIELD_TYPE_CHANGED";
145
145
  readonly criticality: {
146
146
  readonly level: CriticalityLevel.Breaking | CriticalityLevel.NonBreaking;
147
147
  };
@@ -155,9 +155,9 @@ export declare function fieldTypeChangedFromMeta(args: FieldTypeChangedChange):
155
155
  };
156
156
  readonly path: string;
157
157
  };
158
- export declare function fieldTypeChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any, any>, newField: GraphQLField<any, any, any>): Change<ChangeType.FieldTypeChanged>;
158
+ export declare function fieldTypeChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any, any>, newField: GraphQLField<any, any, any>): Change<typeof ChangeType.FieldTypeChanged>;
159
159
  export declare function fieldArgumentAddedFromMeta(args: FieldArgumentAddedChange): {
160
- readonly type: ChangeType.FieldArgumentAdded;
160
+ readonly type: "FIELD_ARGUMENT_ADDED";
161
161
  readonly criticality: {
162
162
  readonly level: CriticalityLevel.Breaking | CriticalityLevel.Dangerous;
163
163
  };
@@ -172,9 +172,9 @@ export declare function fieldArgumentAddedFromMeta(args: FieldArgumentAddedChang
172
172
  };
173
173
  readonly path: string;
174
174
  };
175
- export declare function fieldArgumentAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change<ChangeType.FieldArgumentAdded>;
175
+ export declare function fieldArgumentAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change<typeof ChangeType.FieldArgumentAdded>;
176
176
  export declare function fieldArgumentRemovedFromMeta(args: FieldArgumentRemovedChange): {
177
- readonly type: ChangeType.FieldArgumentRemoved;
177
+ readonly type: "FIELD_ARGUMENT_REMOVED";
178
178
  readonly criticality: {
179
179
  readonly level: CriticalityLevel.Breaking;
180
180
  };
@@ -187,4 +187,4 @@ export declare function fieldArgumentRemovedFromMeta(args: FieldArgumentRemovedC
187
187
  };
188
188
  readonly path: string;
189
189
  };
190
- export declare function fieldArgumentRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change<ChangeType.FieldArgumentRemoved>;
190
+ export declare function fieldArgumentRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change<typeof ChangeType.FieldArgumentRemoved>;