FilesClientOptions
Defined in: libs/ccs-files-user-client/src/core/types.ts:782
Properties
Section titled “Properties”apiUrl?
Section titled “apiUrl?”
optionalapiUrl?:string
Defined in: libs/ccs-files-user-client/src/core/types.ts:789
The File Service API base, e.g. https://files.centralcodestation.com/api/v1. Omitted: the production API,
https://files.centralcodestation.com/api/v1 (DEFAULT_API_URL). A browser has no
environment to read: for another environment pass it, or let your backend’s token route send api_url
(FilesClient.fromTokenRoute).
tenantId
Section titled “tenantId”tenantId:
string
Defined in: libs/ccs-files-user-client/src/core/types.ts:790
applicationId
Section titled “applicationId”applicationId:
string
Defined in: libs/ccs-files-user-client/src/core/types.ts:791
getAccessToken
Section titled “getAccessToken”getAccessToken:
GetAccessToken
Defined in: libs/ccs-files-user-client/src/core/types.ts:793
The user’s files-api token (files:access): tokens.getAccessToken of createTokenProvider.
fetch?
Section titled “fetch?”
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: libs/ccs-files-user-client/src/core/types.ts:795
Override fetch (tests, SSR). Also the upload transport where no XMLHttpRequest exists (Node).
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
xhrFactory?
Section titled “xhrFactory?”
optionalxhrFactory?: () =>XhrLike
Defined in: libs/ccs-files-user-client/src/core/types.ts:797
Builds the XMLHttpRequest of each store PUT (upload progress events). Default new XMLHttpRequest().
Returns
Section titled “Returns”concurrency?
Section titled “concurrency?”
optionalconcurrency?:number
Defined in: libs/ccs-files-user-client/src/core/types.ts:799
Parts in flight per multipart upload. Default 4.
checksum?
Section titled “checksum?”
optionalchecksum?:boolean
Defined in: libs/ccs-files-user-client/src/core/types.ts:801
Send content_sha256 (SHA-256 through Web Crypto) for files up to 256 MiB. Default false: it reads the file twice.
debug?
Section titled “debug?”
optionaldebug?:boolean
Defined in: libs/ccs-files-user-client/src/core/types.ts:803
Log to the console. Default false.
maxRetries?
Section titled “maxRetries?”
optionalmaxRetries?:number
Defined in: libs/ccs-files-user-client/src/core/types.ts:805
Retries of an API request after the first attempt, for 5xx and network errors on reads and idempotent writes. Default 3.
tokenProvider?
Section titled “tokenProvider?”
optionaltokenProvider?:TokenProvider
Defined in: libs/ccs-files-user-client/src/core/types.ts:807
Set by fromTokenRoute: signOut() clears it.
routeConfig?
Section titled “routeConfig?”
optionalrouteConfig?:TokenRouteConfig
Defined in: libs/ccs-files-user-client/src/core/types.ts:809
Set by fromTokenRoute: the route’s configuration, exposed as client.routeConfig.
optionalnow?: () =>number
Defined in: libs/ccs-files-user-client/src/core/types.ts:811
Clock override for tests (URL cache expiry).
Returns
Section titled “Returns”number