@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
constdatastoreHeaderName:"x-manta-datastore"="x-manta-datastore"
datastoreQueryParam
constdatastoreQueryParam:"datastore"="datastore"
datastoreRoutePrefix
constdatastoreRoutePrefix:"/d"="/d"
fileBytesRoutePath
constfileBytesRoutePath:"/file-bytes"="/file-bytes"
imageRoutePath
constimageRoutePath:"/image"="/image"
redirectRoutePath
constredirectRoutePath:"/redirect"="/redirect"
sparqlRoutePath
constsparqlRoutePath:"/sparql"="/sparql"
uploadedFileRoutePath
constuploadedFileRoutePath:"/agents/uploads/file"="/agents/uploads/file"
uploadPartRoutePath
constuploadPartRoutePath:"/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
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