Manta Developers
GitHub
Menu

@manta-eu/client/shared/datastore-path

Reference for @manta-eu/client/shared/datastore-path as it is on main.

Type Aliases

DatastoreLocation

DatastoreLocation = object

Properties

datastoreId

datastoreId: string | undefined

path

path: string

Variables

datastoreHeaderName

const datastoreHeaderName: "x-manta-datastore" = "x-manta-datastore"


datastoreQueryParam

const datastoreQueryParam: "datastore" = "datastore"


datastoreRoutePrefix

const datastoreRoutePrefix: "/d" = "/d"


fileBytesRoutePath

const fileBytesRoutePath: "/file-bytes" = "/file-bytes"


imageRoutePath

const imageRoutePath: "/image" = "/image"


redirectRoutePath

const redirectRoutePath: "/redirect" = "/redirect"


sparqlRoutePath

const sparqlRoutePath: "/sparql" = "/sparql"


uploadedFileRoutePath

const uploadedFileRoutePath: "/agents/uploads/file" = "/agents/uploads/file"


uploadPartRoutePath

const uploadPartRoutePath: "/agents/uploads/part" = "/agents/uploads/part"

Functions

datastoreBasename()

datastoreBasename(datastoreId): string

Parameters

datastoreId

string

Returns

string


datastoreHeader()

datastoreHeader(datastoreId): Record<string, string>

Parameters

datastoreId

string | undefined

Returns

Record<string, string>


datastoreRelativePath()

datastoreRelativePath(pathname): string

Parameters

pathname

string

Returns

string


datastoreScopedDenylist()

datastoreScopedDenylist(pathWithoutSlash): RegExp

Parameters

pathWithoutSlash

string

Returns

RegExp


datastoreScopedRoutePattern()

datastoreScopedRoutePattern(path): string

Parameters

path

string

Returns

string


datastoreSocketQuery()

datastoreSocketQuery(datastoreId): Record<string, string>

Parameters

datastoreId

string | undefined

Returns

Record<string, string>


isRootRelativePath()

isRootRelativePath(url): boolean

Parameters

url

string

Returns

boolean


parseDatastorePath()

parseDatastorePath(pathname): DatastoreLocation

Parameters

pathname

string

Returns

DatastoreLocation


withDatastorePrefix()

withDatastorePrefix(datastoreId, path): string

Parameters

datastoreId

string

path

string

Returns

string


withDatastoreQueryParam()

withDatastoreQueryParam(href, datastoreId): string

Parameters

href

string

datastoreId

string | undefined

Returns

string