@@ -65,16 +65,16 @@ export class DataConnectOperationError extends DataConnectError {
65
65
readonly name : string = 'DataConnectOperationError' ;
66
66
67
67
/** The response received from the backend. */
68
- readonly response : DataConnectOperationResponse ;
68
+ readonly response : DataConnectOperationFailureResponse ;
69
69
70
70
/** @hideconstructor */
71
- constructor ( message : string , response : DataConnectOperationResponse ) {
71
+ constructor ( message : string , response : DataConnectOperationFailureResponse ) {
72
72
super ( Code . PARTIAL_ERROR , message ) ;
73
73
this . response = response ;
74
74
}
75
75
}
76
76
77
- export interface DataConnectOperationResponse {
77
+ export interface DataConnectOperationFailureResponse {
78
78
// The "data" provided by the backend in the response message.
79
79
//
80
80
// Will be `undefined` if no "data" was provided in the response message.
@@ -84,12 +84,12 @@ export interface DataConnectOperationResponse {
84
84
readonly data ?: Record < string , unknown > | null ;
85
85
86
86
// The list of errors provided by the backend in the response message.
87
- readonly errors : DataConnectOperationErrorInfo [ ] ;
87
+ readonly errors : DataConnectOperationFailureResponseErrorInfo [ ] ;
88
88
}
89
89
90
90
// Information about the error, as provided in the response from the backend.
91
91
// See https://spec.graphql.org/draft/#sec-Errors
92
- export interface DataConnectOperationErrorInfo {
92
+ export interface DataConnectOperationFailureResponseErrorInfo {
93
93
// The error message.
94
94
readonly message : string ;
95
95
0 commit comments