Skip to content

@graphty/graphty-element / index / SourceIssueParams

Interface: SourceIssueParams ​

Defined in: graph-io/dist/src/sources/codes.d.ts:71

The params of each source issue code. Every URL is origin and path only. Experimental.

Properties ​

E_FETCH ​

readonly E_FETCH: object

Defined in: graph-io/dist/src/sources/codes.d.ts:73

Another status, or an unreachable host.

status ​

readonly status: number | null

The HTTP status, or null when there was none.

url ​

readonly url: string

The address, origin and path only.


E_SOURCE_AUTH ​

readonly E_SOURCE_AUTH: object

Defined in: graph-io/dist/src/sources/codes.d.ts:87

A credential is needed or was refused.

origin ​

readonly origin: string

The origin that asked for a credential.

scheme ​

readonly scheme: string | null

The authentication scheme the server named, or null.

serverCode ​

readonly serverCode: string | null

The service's own code, passed through, or null.

status ​

readonly status: number | null

The HTTP status, or null when there was none.

stored? ​

readonly optional stored?: boolean

Set by graphty-element when the credential came from its store.


E_SOURCE_BLOCKED ​

readonly E_SOURCE_BLOCKED: object

Defined in: graph-io/dist/src/sources/codes.d.ts:80

Refused by the browser.

cause ​

readonly cause: SourceBlockedCause

Why, as far as the page can tell.

url ​

readonly url: string

The address, origin and path only.


E_SOURCE_FORBIDDEN ​

readonly E_SOURCE_FORBIDDEN: object

Defined in: graph-io/dist/src/sources/codes.d.ts:100

Not allowed.

serverCode ​

readonly serverCode: string | null

The service's own code, passed through, or null.

status ​

readonly status: number | null

The HTTP status, or null when there was none.


E_SOURCE_INVALID ​

readonly E_SOURCE_INVALID: object

Defined in: graph-io/dist/src/sources/codes.d.ts:193

A malformed source.

id ​

readonly id: string

The source id.

reason ​

readonly reason: string

Why, as a code.


E_SOURCE_LIMIT ​

readonly E_SOURCE_LIMIT: object

Defined in: graph-io/dist/src/sources/codes.d.ts:172

A cap under onLimit "error".

limit ​

readonly limit: string

The cap's option name (maxNodes, maxBytes, ...).

value ​

readonly value: number

The value that reached the cap, or what was looked up.


E_SOURCE_NOT_A_GRAPH ​

readonly E_SOURCE_NOT_A_GRAPH: object

Defined in: graph-io/dist/src/sources/codes.d.ts:137

Scalars only.

columns ​

readonly columns: readonly string[]

The result's column names.


E_SOURCE_NOT_FOUND ​

readonly E_SOURCE_NOT_FOUND: object

Defined in: graph-io/dist/src/sources/codes.d.ts:107

No such item.

value ​

readonly value: string

The value that reached the cap, or what was looked up.

what ​

readonly what: string

What was looked up (url, network, node).


E_SOURCE_PARAM ​

readonly E_SOURCE_PARAM: object

Defined in: graph-io/dist/src/sources/codes.d.ts:165

A bad parameter or option.

name ​

readonly name: string

The parameter or option's name.

reason ​

readonly reason: string

Why, as a code.


E_SOURCE_QUERY ​

readonly E_SOURCE_QUERY: object

Defined in: graph-io/dist/src/sources/codes.d.ts:126

The query was refused.

column ​

readonly column: number | null

The query column the server named, or null.

line ​

readonly line: number | null

The query line the server named, or null.

serverCode ​

readonly serverCode: string | null

The service's own code, passed through, or null.

serverMessage ​

readonly serverMessage: string | null

The server's message from a JSON 4xx body, at most 500 characters, or null.


E_SOURCE_QUOTA ​

readonly E_SOURCE_QUOTA: object

Defined in: graph-io/dist/src/sources/codes.d.ts:114

Out of quota.

retryAfterMs ​

readonly retryAfterMs: number | null

How long the service asked to wait, when readable.


E_SOURCE_REDIRECT ​

readonly E_SOURCE_REDIRECT: object

Defined in: graph-io/dist/src/sources/codes.d.ts:149

A redirect with a credential; to is null in a browser, which hides it.

from ​

readonly from: string

Where the request was going, origin and path.

to ​

readonly to: string | null

Where it was sent instead, or null when the browser hides it.


E_SOURCE_RESPONSE ​

readonly E_SOURCE_RESPONSE: object

Defined in: graph-io/dist/src/sources/codes.d.ts:142

Wrong body.

contentType ​

readonly contentType: string | null

The response's Content-Type, or null.

expected ​

readonly expected: string

What shape was expected (json, graph-file, link-header).


E_SOURCE_RUNTIME ​

readonly E_SOURCE_RUNTIME: object

Defined in: graph-io/dist/src/sources/codes.d.ts:156

Cannot run here.

package? ​

readonly optional package?: string

The optional package that is missing.

reason ​

readonly reason: string

Why, as a code.

runtime ​

readonly runtime: string

The runtime it ran in.


E_SOURCE_TIMEOUT ​

readonly E_SOURCE_TIMEOUT: object

Defined in: graph-io/dist/src/sources/codes.d.ts:119

Took too long.

serverSide ​

readonly serverSide: boolean

Whether the server timed the query out.

timeoutMs ​

readonly timeoutMs: number | null

The time limit, or null for the server's own.


E_SOURCE_UNKNOWN ​

readonly E_SOURCE_UNKNOWN: object

Defined in: graph-io/dist/src/sources/codes.d.ts:179

No such source.

id ​

readonly id: string

The source id.

known ​

readonly known: readonly string[]

The ids that are registered.


E_SOURCE_UNSUPPORTED ​

readonly E_SOURCE_UNSUPPORTED: object

Defined in: graph-io/dist/src/sources/codes.d.ts:186

The source lacks the feature.

feature ​

readonly feature: string

The feature asked for.

needs? ​

readonly optional needs?: string

What it needs, when known.


W_SOURCE_AUTH ​

readonly W_SOURCE_AUTH: object

Defined in: graph-io/dist/src/sources/codes.d.ts:207

A later page needs a credential.

origin ​

readonly origin: string

The origin that asked for a credential.

status ​

readonly status: number | null

The HTTP status, or null when there was none.


W_SOURCE_LIMIT ​

readonly W_SOURCE_LIMIT: object

Defined in: graph-io/dist/src/sources/codes.d.ts:200

A cap stopped the load.

limit ​

readonly limit: string

The cap's option name (maxNodes, maxBytes, ...).

value ​

readonly value: number

The value that reached the cap, or what was looked up.


W_SOURCE_RETRIED ​

readonly W_SOURCE_RETRIED: object

Defined in: graph-io/dist/src/sources/codes.d.ts:214

Retried.

attempts ​

readonly attempts: number

How many attempts were made.

statuses ​

readonly statuses: readonly (number | null)[]

The status of each failed attempt, null for a network failure.


W_SOURCE_VALUE ​

readonly W_SOURCE_VALUE: object

Defined in: graph-io/dist/src/sources/codes.d.ts:221

A value with no dtype.

as ​

readonly as: string

What the value was kept as.

column ​

readonly column: string

The column (of the query, or of the graph) involved.

type ​

readonly type: string

The server's value type.