File

static-assets/data/static-assets.service.ts

Index

Properties
Methods

Constructor

constructor(appstate: AppStateService, appService: ApplicationService, fetchClient: FetchClient, fileService: FilesService, zip: ZipService)
Parameters :
Name Type Optional
appstate AppStateService No
appService ApplicationService No
fetchClient FetchClient No
fileService FilesService No
zip ZipService No

Methods

Async addFilesToStaticAssets
addFilesToStaticAssets(type: T, files: DroppedFile[] | File[], existingFiles: StaticAsset[], throwErrorOnExistingFiles)
Type parameters :
  • T

Adds the given files to the static assets of the given type.

Parameters :
Name Type Optional Default value
type T No
files DroppedFile[] | File[] No
existingFiles StaticAsset[] No
throwErrorOnExistingFiles No true
Returns : unknown
Async cloneAssetsIntoTenant
cloneAssetsIntoTenant(type: T)
Type parameters :
  • T

Clones all assets of the given type from parent tenants into the current tenant.

Parameters :
Name Type Optional
type T No
Returns : unknown
Async getAppForTenant
getAppForTenant(type: T)
Type parameters :
  • T

Gets the static assets app for the given type.

Parameters :
Name Type Optional
type T No
Async listFiles
listFiles(type: T)
Type parameters :
  • T

Lists all files of the given type. Forces a cache renewal.

Parameters :
Name Type Optional
type T No
Async listFilesCached
listFilesCached(type: T, forceCacheRenewal)
Type parameters :
  • T

Lists all files of the given type. Uses a cache.

Parameters :
Name Type Optional Default value
type T No
forceCacheRenewal No false

Properties

Readonly fileNames
Default value : { contents: 'contents.json', manifest: 'cumulocity.json', exportZipName: 'static-assets.zip' } as const

results matching ""

    No results matching ""