@@ -58,7 +58,6 @@ import { LinkError } from '@apollo/client/errors';
5858import type { LocalState } from ' @apollo/client/local-state' ;
5959import { LocalStateError } from ' @apollo/client/errors' ;
6060import { makeVar } from ' @apollo/client/cache' ;
61- import { Mask } from ' @apollo/client/masking' ;
6261import { MaybeMasked } from ' @apollo/client/masking' ;
6362import { MergeInfo } from ' @apollo/client/cache' ;
6463import { MergeTree } from ' @apollo/client/cache' ;
@@ -100,7 +99,6 @@ import { TypedDocumentNode } from '@graphql-typed-document-node/core';
10099import { TypePolicies } from ' @apollo/client/cache' ;
101100import { TypePolicy } from ' @apollo/client/cache' ;
102101import { UnconventionalError } from ' @apollo/client/errors' ;
103- import { Unmask } from ' @apollo/client/masking' ;
104102import { Unmasked } from ' @apollo/client/masking' ;
105103import type { VariablesOption } from ' @apollo/client/utilities/internal' ;
106104import { WatchFragmentOptions } from ' @apollo/client/cache' ;
@@ -136,7 +134,7 @@ export namespace ApolloClient {
136134 // (undocumented)
137135 export interface WriteQueryOptions <TData , TVariables extends OperationVariables > {
138136 broadcast? : boolean ;
139- data: Unmask <TData >;
137+ data: Unmasked <TData >;
140138 id? : string ;
141139 overwrite? : boolean ;
142140 query: DocumentNode_2 | TypedDocumentNode <TData , TVariables >;
@@ -147,7 +145,7 @@ export namespace ApolloClient {
147145 // (undocumented)
148146 export interface WriteFragmentOptions <TData , TVariables extends OperationVariables > {
149147 broadcast? : boolean ;
150- data: Unmask <TData >;
148+ data: Unmasked <TData >;
151149 fragment: DocumentNode_2 | TypedDocumentNode <TData , TVariables >;
152150 fragmentName? : string ;
153151 id? : string ;
@@ -198,11 +196,11 @@ export namespace ApolloClient {
198196 }
199197 // (undocumented)
200198 export type MutateOptions <TData = unknown , TVariables extends OperationVariables = OperationVariables , TCache extends ApolloCache = ApolloCache > = {
201- optimisticResponse? : Unmask <NoInfer <TData >> | ((vars : TVariables , { IGNORE }: {
199+ optimisticResponse? : Unmasked <NoInfer <TData >> | ((vars : TVariables , { IGNORE }: {
202200 IGNORE: IgnoreModifier ;
203- }) => Unmask <NoInfer <TData >> | IgnoreModifier );
201+ }) => Unmasked <NoInfer <TData >> | IgnoreModifier );
204202 updateQueries? : MutationQueryReducersMap <TData >;
205- refetchQueries? : ((result : NormalizedExecutionResult <Unmask <TData >>) => InternalRefetchQueriesInclude ) | InternalRefetchQueriesInclude ;
203+ refetchQueries? : ((result : NormalizedExecutionResult <Unmasked <TData >>) => InternalRefetchQueriesInclude ) | InternalRefetchQueriesInclude ;
206204 awaitRefetchQueries? : boolean ;
207205 update? : MutationUpdaterFunction <TData , TVariables , TCache >;
208206 onQueryUpdated? : OnQueryUpdated <any >;
@@ -343,13 +341,13 @@ export class ApolloClient {
343341 query<TData = unknown , TVariables extends OperationVariables = OperationVariables >(options : ApolloClient .QueryOptions <TData , TVariables >): Promise <ApolloClient .QueryResult <MaybeMasked <TData >>>;
344342 // (undocumented)
345343 queryDeduplication: boolean ;
346- readFragment<TData = unknown , TVariables extends OperationVariables = OperationVariables >(options : ApolloClient .ReadFragmentOptions <TData , TVariables >): Unmask <TData > | null ;
344+ readFragment<TData = unknown , TVariables extends OperationVariables = OperationVariables >(options : ApolloClient .ReadFragmentOptions <TData , TVariables >): Unmasked <TData > | null ;
347345 // @deprecated
348- readFragment<TData = unknown , TVariables extends OperationVariables = OperationVariables >(options : ApolloClient .ReadFragmentOptions <TData , TVariables >, optimistic : boolean ): Unmask <TData > | null ;
349- readQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(options : ApolloClient .ReadQueryOptions <TData , TVariables >): Unmask <TData > | null ;
346+ readFragment<TData = unknown , TVariables extends OperationVariables = OperationVariables >(options : ApolloClient .ReadFragmentOptions <TData , TVariables >, optimistic : boolean ): Unmasked <TData > | null ;
347+ readQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(options : ApolloClient .ReadQueryOptions <TData , TVariables >): Unmasked <TData > | null ;
350348 // @deprecated
351349 readQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(options : ApolloClient .ReadQueryOptions <TData , TVariables >,
352- optimistic : boolean ): Unmask <TData > | null ;
350+ optimistic : boolean ): Unmasked <TData > | null ;
353351 // @deprecated
354352 reFetchObservableQueries: (includeStandby ? : boolean ) => Promise <ApolloClient .QueryResult <any >[]>;
355353 refetchObservableQueries(includeStandby ? : boolean ): Promise <ApolloClient .QueryResult <any >[]>;
@@ -545,8 +543,6 @@ export { LocalStateError }
545543
546544export { makeVar }
547545
548- export { Mask }
549-
550546// @public (undocumented)
551547interface MaskFragmentOptions <TData > {
552548 // (undocumented)
@@ -587,7 +583,7 @@ export type MutationOptions<TData = unknown, TVariables extends OperationVariabl
587583
588584// @public (undocumented)
589585export type MutationQueryReducer <T > = (previousResult : Record <string , any >, options : {
590- mutationResult: NormalizedExecutionResult <Unmask <T >>;
586+ mutationResult: NormalizedExecutionResult <Unmasked <T >>;
591587 queryName: string | undefined ;
592588 queryVariables: Record <string , any >;
593589}) => Record <string , any >;
@@ -612,7 +608,7 @@ interface MutationStoreValue {
612608}
613609
614610// @public (undocumented)
615- export type MutationUpdaterFunction <TData , TVariables extends OperationVariables , TCache extends ApolloCache > = (cache : TCache , result : FormattedExecutionResult <Unmask <TData >>, options : {
611+ export type MutationUpdaterFunction <TData , TVariables extends OperationVariables , TCache extends ApolloCache > = (cache : TCache , result : FormattedExecutionResult <Unmasked <TData >>, options : {
616612 context? : DefaultContext ;
617613 variables? : TVariables ;
618614}) => void ;
@@ -683,10 +679,10 @@ export namespace ObservableQuery {
683679 variables? : Partial <NoInfer <TFetchVars >>;
684680 errorPolicy? : ErrorPolicy ;
685681 context? : DefaultContext ;
686- updateQuery? : (previousQueryResult : Unmask <TData >, options : {
687- fetchMoreResult: Unmask <TFetchData >;
682+ updateQuery? : (previousQueryResult : Unmasked <TData >, options : {
683+ fetchMoreResult: Unmasked <TFetchData >;
688684 variables: TFetchVars ;
689- }) => Unmask <TData >;
685+ }) => Unmasked <TData >;
690686 };
691687 // (undocumented)
692688 export type Options <TData = unknown , TVariables extends OperationVariables = OperationVariables > = {
@@ -1049,11 +1045,11 @@ export type SubscribeToMoreOptions<TData = unknown, TSubscriptionVariables exten
10491045// @public (undocumented)
10501046export type SubscribeToMoreUpdateQueryFn <TData = unknown , TVariables extends OperationVariables = OperationVariables , TSubscriptionData = TData > = {
10511047 (
1052- unsafePreviousData : DeepPartial <Unmask <TData >>, options : UpdateQueryOptions <TData , TVariables > & {
1048+ unsafePreviousData : DeepPartial <Unmasked <TData >>, options : UpdateQueryOptions <TData , TVariables > & {
10531049 subscriptionData: {
1054- data: Unmask <TSubscriptionData >;
1050+ data: Unmasked <TSubscriptionData >;
10551051 };
1056- }): Unmask <TData > | void ;
1052+ }): Unmasked <TData > | void ;
10571053};
10581054
10591055// @public
@@ -1104,26 +1100,24 @@ export { TypePolicy }
11041100
11051101export { UnconventionalError }
11061102
1107- export { Unmask }
1108-
11091103export { Unmasked }
11101104
11111105// @public (undocumented)
11121106export interface UpdateQueryMapFn <TData = unknown , TVariables extends OperationVariables = OperationVariables > {
11131107 // (undocumented)
11141108 (
1115- unsafePreviousData : DeepPartial <Unmask <TData >>, options : UpdateQueryOptions <TData , TVariables >): Unmask <TData > | void ;
1109+ unsafePreviousData : DeepPartial <Unmasked <TData >>, options : UpdateQueryOptions <TData , TVariables >): Unmasked <TData > | void ;
11161110}
11171111
11181112// @public (undocumented)
11191113export type UpdateQueryOptions <TData , TVariables extends OperationVariables > = {
11201114 variables? : TVariables ;
11211115} & ({
11221116 complete: true ;
1123- previousData: Unmask <TData >;
1117+ previousData: Unmasked <TData >;
11241118} | {
11251119 complete: false ;
1126- previousData: DeepPartial <Unmask <TData >> | undefined ;
1120+ previousData: DeepPartial <Unmasked <TData >> | undefined ;
11271121});
11281122
11291123// @public (undocumented)
0 commit comments