@@ -52,6 +52,35 @@ export class DataConnect {
52
52
setInitialized(): void ;
53
53
}
54
54
55
+ // @public
56
+ export class DataConnectError extends FirebaseError {
57
+ }
58
+
59
+ // @public (undocumented)
60
+ export type DataConnectErrorCode = ' other' | ' already-initialized' | ' not-initialized' | ' not-supported' | ' invalid-argument' | ' partial-error' | ' unauthorized' ;
61
+
62
+ // @public
63
+ export class DataConnectOperationError extends DataConnectError {
64
+ /* Excluded from this release type: name */
65
+ readonly response: DataConnectOperationResponse ;
66
+ }
67
+
68
+ // @public (undocumented)
69
+ export interface DataConnectOperationErrorInfo {
70
+ // (undocumented)
71
+ readonly message: string ;
72
+ // (undocumented)
73
+ readonly path: Array <string | number >;
74
+ }
75
+
76
+ // @public (undocumented)
77
+ export interface DataConnectOperationResponse {
78
+ // (undocumented)
79
+ readonly data? : Record <string , unknown > | null ;
80
+ // (undocumented)
81
+ readonly errors: DataConnectOperationErrorInfo [];
82
+ }
83
+
55
84
// @public
56
85
export interface DataConnectOptions extends ConnectorConfig {
57
86
// (undocumented)
@@ -67,7 +96,7 @@ export interface DataConnectResult<Data, Variables> extends OpResult<Data> {
67
96
// @public
68
97
export interface DataConnectSubscription <Data , Variables > {
69
98
// (undocumented)
70
- errCallback? : (e ? : FirebaseError ) => void ;
99
+ errCallback? : (e ? : DataConnectError ) => void ;
71
100
// (undocumented)
72
101
unsubscribe: () => void ;
73
102
// (undocumented)
@@ -83,9 +112,6 @@ export function executeMutation<Data, Variables>(mutationRef: MutationRef<Data,
83
112
// @public
84
113
export function executeQuery<Data , Variables >(queryRef : QueryRef <Data , Variables >): QueryPromise <Data , Variables >;
85
114
86
- // @public (undocumented)
87
- export const fdcSymbol: unique symbol ;
88
-
89
115
// @public
90
116
export function getDataConnect(options : ConnectorConfig ): DataConnect ;
91
117
@@ -121,15 +147,13 @@ export interface MutationResult<Data, Variables> extends DataConnectResult<Data,
121
147
export type OnCompleteSubscription = () => void ;
122
148
123
149
// @public
124
- export type OnErrorSubscription = (err ? : FirebaseError ) => void ;
150
+ export type OnErrorSubscription = (err ? : DataConnectError ) => void ;
125
151
126
152
// @public
127
153
export type OnResultSubscription <Data , Variables > = (res : QueryResult <Data , Variables >) => void ;
128
154
129
155
// @public (undocumented)
130
- export interface OperationRef <Data , Variables > {
131
- // (undocumented)
132
- [fdcSymbol ]? : Data ;
156
+ export interface OperationRef <_Data , Variables > {
133
157
// (undocumented)
134
158
dataConnect: DataConnect ;
135
159
// (undocumented)
0 commit comments