@types/relay-runtime
Advanced tools
Comparing version 10.0.8 to 10.0.9
import { ReaderFragment } from '../util/ReaderNode'; | ||
import { Variables, Disposable, DataID, CacheConfig } from '../util/RelayRuntimeTypes'; | ||
import { ConcreteRequest } from '../util/RelayConcreteNode'; | ||
import { Variables, Disposable, DataID, CacheConfig, FetchPolicy, RenderPolicy } from '../util/RelayRuntimeTypes'; | ||
import { ConcreteRequest, RequestParameters } from '../util/RelayConcreteNode'; | ||
import { RequestIdentifier } from '../util/getRequestIdentifier'; | ||
@@ -410,61 +410,79 @@ import { | ||
interface LogEventQueryResourceFetch { | ||
readonly name: 'queryresource.fetch'; | ||
readonly operation: OperationDescriptor; | ||
// FetchPolicy from relay-experimental | ||
readonly fetchPolicy: string; | ||
// RenderPolicy from relay-experimental | ||
readonly renderPolicy: string; | ||
readonly queryAvailability: OperationAvailability; | ||
readonly shouldFetch: boolean; | ||
} | ||
interface LogEventExecuteInfo { | ||
readonly name: 'execute.info'; | ||
readonly transactionID: number; | ||
readonly info: unknown; | ||
} | ||
interface LogEventExecuteStart { | ||
readonly name: 'execute.start'; | ||
readonly transactionID: number; | ||
readonly params: { | ||
// RequestParameters type | ||
readonly name: string; | ||
readonly operationKind: string; | ||
readonly text: string; | ||
}; | ||
readonly variables: object; | ||
} | ||
interface LogEventExecuteNext { | ||
readonly name: 'execute.next'; | ||
readonly transactionID: number; | ||
readonly response: unknown; | ||
} | ||
interface LogEventExecuteError { | ||
readonly name: 'execute.error'; | ||
readonly transactionID: number; | ||
readonly error: Error; | ||
} | ||
interface LogEventExecuteComplete { | ||
readonly name: 'execute.complete'; | ||
readonly transactionID: number; | ||
} | ||
interface LogEventExecuteUnsubscribe { | ||
readonly name: 'execute.unsubscribe'; | ||
readonly transactionID: number; | ||
} | ||
type LogEvent = | ||
| LogEventQueryResourceFetch | ||
| LogEventExecuteInfo | ||
| LogEventExecuteStart | ||
| LogEventExecuteNext | ||
| LogEventExecuteError | ||
| LogEventExecuteComplete | ||
| LogEventExecuteUnsubscribe; | ||
| Readonly<{ | ||
name: 'queryresource.fetch'; | ||
/** | ||
* ID of this query resource request and will be the same if there is an associated queryresource.retain event. | ||
*/ | ||
resourceID: number; | ||
operation: OperationDescriptor; | ||
profilerContext: any; | ||
fetchPolicy: FetchPolicy; | ||
renderPolicy: RenderPolicy; | ||
queryAvailability: OperationAvailability; | ||
shouldFetch: boolean; | ||
}> | ||
| Readonly<{ | ||
name: 'queryresource.retain'; | ||
resourceID: number; | ||
// value from ProfilerContext | ||
profilerContext: any; | ||
}> | ||
| Readonly<{ | ||
name: 'execute.info'; | ||
transactionID: number; | ||
info: any; | ||
}> | ||
| Readonly<{ | ||
name: 'execute.start'; | ||
transactionID: number; | ||
params: RequestParameters; | ||
variables: Variables; | ||
}> | ||
| Readonly<{ | ||
name: 'execute.next'; | ||
transactionID: number; | ||
response: GraphQLResponse; | ||
}> | ||
| Readonly<{ | ||
name: 'execute.error'; | ||
transactionID: number; | ||
error: Error; | ||
}> | ||
| Readonly<{ | ||
name: 'execute.complete'; | ||
transactionID: number; | ||
}> | ||
| Readonly<{ | ||
name: 'execute.unsubscribe'; | ||
transactionID: number; | ||
}> | ||
| Readonly<{ | ||
name: 'store.publish'; | ||
source: RecordSource; | ||
optimistic: boolean; | ||
}> | ||
| Readonly<{ | ||
name: 'store.snapshot'; | ||
}> | ||
| Readonly<{ | ||
name: 'store.restore'; | ||
}> | ||
| Readonly<{ | ||
name: 'store.gc'; | ||
references: Set<DataID>; | ||
}> | ||
| Readonly<{ | ||
name: 'store.notify.start'; | ||
}> | ||
| Readonly<{ | ||
name: 'store.notify.complete'; | ||
updatedRecordIDs: UpdatedRecords; | ||
invalidatedRecordIDs: Set<DataID>; | ||
}> | ||
| Readonly<{ | ||
name: 'entrypoint.root.consume'; | ||
profilerContext: any; | ||
rootModuleID: string; | ||
}>; | ||
@@ -471,0 +489,0 @@ export type LogFunction = (logEvent: LogEvent) => void; |
{ | ||
"name": "@types/relay-runtime", | ||
"version": "10.0.8", | ||
"version": "10.0.9", | ||
"description": "TypeScript definitions for relay-runtime", | ||
@@ -32,4 +32,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "99acbf3c061ca3e030e80e399cac42cad7ffaddd3bfb29d73f5d859c958e35cf", | ||
"typesPublisherContentHash": "de9b09048151a24b0f58cb4c2c8fd153912ab06f420e7f3fa3972e3c1df130a5", | ||
"typeScriptVersion": "3.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 23 Oct 2020 07:40:02 GMT | ||
* Last updated: Fri, 23 Oct 2020 08:22:08 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
102510
2562