Skip to content

Commit

Permalink
Update api report
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Nov 10, 2023
1 parent 9b82651 commit fec8905
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .api-reports/api-report-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -1925,7 +1925,7 @@ export interface RefetchQueriesResult<TResult> extends Promise<RefetchQueriesPro
export type RefetchQueryDescriptor = string | DocumentNode;

// @public (undocumented)
type RefetchWritePolicy = "merge" | "overwrite";
export type RefetchWritePolicy = "merge" | "overwrite";

// @public (undocumented)
export type RequestHandler = (operation: Operation, forward: NextLink) => Observable<FetchResult> | null;
Expand Down Expand Up @@ -2155,8 +2155,6 @@ export interface WatchQueryOptions<TVariables extends OperationVariables = Opera
//
// (undocumented)
nextFetchPolicy?: WatchQueryFetchPolicy | ((this: WatchQueryOptions<TVariables, TData>, currentFetchPolicy: WatchQueryFetchPolicy, context: NextFetchPolicyContext<TData, TVariables>) => WatchQueryFetchPolicy);
// Warning: (ae-forgotten-export) The symbol "RefetchWritePolicy" needs to be exported by the entry point index.d.ts
//
// (undocumented)
refetchWritePolicy?: RefetchWritePolicy;
}
Expand Down
31 changes: 27 additions & 4 deletions .api-reports/api-report-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,33 @@ interface IncrementalPayload<TData, TExtensions> {
path: Path;
}

// @public (undocumented)
export type InteractiveQueryHookFetchPolicy = Extract<WatchQueryFetchPolicy, "cache-first" | "network-only" | "no-cache" | "cache-and-network">;

// @public (undocumented)
export interface InteractiveQueryHookOptions {
// (undocumented)
canonizeResults?: boolean;
// (undocumented)
client?: ApolloClient<any>;
// (undocumented)
context?: Context;
// Warning: (ae-forgotten-export) The symbol "ErrorPolicy" needs to be exported by the entry point index.d.ts
//
// (undocumented)
errorPolicy?: ErrorPolicy;
// (undocumented)
fetchPolicy?: InteractiveQueryHookFetchPolicy;
// (undocumented)
queryKey?: string | number | any[];
// Warning: (ae-forgotten-export) The symbol "RefetchWritePolicy" needs to be exported by the entry point index.d.ts
//
// (undocumented)
refetchWritePolicy?: RefetchWritePolicy;
// (undocumented)
returnPartialData?: boolean;
}

// @public (undocumented)
class InternalQueryReference<TData = unknown> {
// Warning: (ae-forgotten-export) The symbol "InternalQueryReferenceOptions" needs to be exported by the entry point index.d.ts
Expand Down Expand Up @@ -1121,8 +1148,6 @@ interface MutationBaseOptions<TData = any, TVariables = OperationVariables, TCon
awaitRefetchQueries?: boolean;
// (undocumented)
context?: TContext;
// Warning: (ae-forgotten-export) The symbol "ErrorPolicy" needs to be exported by the entry point index.d.ts
//
// (undocumented)
errorPolicy?: ErrorPolicy;
// Warning: (ae-forgotten-export) The symbol "OnQueryUpdated" needs to be exported by the entry point index.d.ts
Expand Down Expand Up @@ -2195,8 +2220,6 @@ interface WatchQueryOptions<TVariables extends OperationVariables = OperationVar
//
// (undocumented)
nextFetchPolicy?: WatchQueryFetchPolicy | ((this: WatchQueryOptions<TVariables, TData>, currentFetchPolicy: WatchQueryFetchPolicy, context: NextFetchPolicyContext<TData, TVariables>) => WatchQueryFetchPolicy);
// Warning: (ae-forgotten-export) The symbol "RefetchWritePolicy" needs to be exported by the entry point index.d.ts
//
// (undocumented)
refetchWritePolicy?: RefetchWritePolicy;
}
Expand Down
27 changes: 24 additions & 3 deletions .api-reports/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,29 @@ export interface InMemoryCacheConfig extends ApolloReducerConfig {
typePolicies?: TypePolicies;
}

// @public (undocumented)
export type InteractiveQueryHookFetchPolicy = Extract<WatchQueryFetchPolicy, "cache-first" | "network-only" | "no-cache" | "cache-and-network">;

// @public (undocumented)
export interface InteractiveQueryHookOptions {
// (undocumented)
canonizeResults?: boolean;
// (undocumented)
client?: ApolloClient<any>;
// (undocumented)
context?: DefaultContext;
// (undocumented)
errorPolicy?: ErrorPolicy;
// (undocumented)
fetchPolicy?: InteractiveQueryHookFetchPolicy;
// (undocumented)
queryKey?: string | number | any[];
// (undocumented)
refetchWritePolicy?: RefetchWritePolicy;
// (undocumented)
returnPartialData?: boolean;
}

// @public (undocumented)
class InternalQueryReference<TData = unknown> {
// Warning: (ae-forgotten-export) The symbol "InternalQueryReferenceOptions" needs to be exported by the entry point index.d.ts
Expand Down Expand Up @@ -2340,7 +2363,7 @@ export interface RefetchQueriesResult<TResult> extends Promise<RefetchQueriesPro
export type RefetchQueryDescriptor = string | DocumentNode;

// @public (undocumented)
type RefetchWritePolicy = "merge" | "overwrite";
export type RefetchWritePolicy = "merge" | "overwrite";

// @public (undocumented)
class RenderPromises {
Expand Down Expand Up @@ -2837,8 +2860,6 @@ export interface WatchQueryOptions<TVariables extends OperationVariables = Opera
//
// (undocumented)
nextFetchPolicy?: WatchQueryFetchPolicy | ((this: WatchQueryOptions<TVariables, TData>, currentFetchPolicy: WatchQueryFetchPolicy, context: NextFetchPolicyContext<TData, TVariables>) => WatchQueryFetchPolicy);
// Warning: (ae-forgotten-export) The symbol "RefetchWritePolicy" needs to be exported by the entry point index.d.ts
//
// (undocumented)
refetchWritePolicy?: RefetchWritePolicy;
}
Expand Down

0 comments on commit fec8905

Please sign in to comment.