static-assets/data/static-assets.service.ts
Properties |
|
Methods |
|
constructor(appstate: AppStateService, appService: ApplicationService, fetchClient: FetchClient, fileService: FilesService, zip: ZipService)
|
||||||||||||||||||
Parameters :
|
Async addFilesToStaticAssets | ||||||||||||||||||||
addFilesToStaticAssets(type: T, files: DroppedFile[] | File[], existingFiles: StaticAsset[], throwErrorOnExistingFiles)
|
||||||||||||||||||||
Type parameters :
|
||||||||||||||||||||
Adds the given files to the static assets of the given type.
Parameters :
Returns :
unknown
|
Async getAppForTenant | ||||||
getAppForTenant(type: T)
|
||||||
Type parameters :
|
||||||
Gets the static assets app for the given type.
Parameters :
Returns :
Promise<IApplication>
|
Async listFiles | ||||||
listFiles(type: T)
|
||||||
Type parameters :
|
||||||
Lists all files of the given type. Forces a cache renewal.
Parameters :
Returns :
Promise<StaticAsset[]>
|
Async listFilesCached | ||||||||||||
listFilesCached(type: T, forceCacheRenewal)
|
||||||||||||
Type parameters :
|
||||||||||||
Lists all files of the given type. Uses a cache.
Parameters :
Returns :
Promise<StaticAsset[]>
|
Readonly fileNames |
Default value : {
contents: 'contents.json',
manifest: 'cumulocity.json',
exportZipName: 'static-assets.zip'
} as const
|