File

platform-components-ng/projects/platform-components-lib/src/lib/services/docurated.service.ts

Index

Properties
Methods

Constructor

constructor(http: HttpClient, applicationConfigService: ApplicationConfigService, userService: UserService, backgroundService: BackgroundTasksService, errorMessageService: QppErrorMessageService, assetService: AssetService)
Parameters :
Name Type Optional
http HttpClient No
applicationConfigService ApplicationConfigService No
userService UserService No
backgroundService BackgroundTasksService No
errorMessageService QppErrorMessageService No
assetService AssetService No

Methods

getPushEnabledCollections
getPushEnabledCollections()

Get push enabled collections

Returns : Observable<any>

Observable

Async isDocuratedAccessible
isDocuratedAccessible()

Check Is Docurated Accessible

Returns : {}

boolean

notifyServiceAvailable
notifyServiceAvailable()

Notify if Service is Available

Returns : void

boolean

pushCollectionByPath
pushCollectionByPath(collectionsToBeSynced: string)

Push collections by path

Parameters :
Name Type Optional Description
collectionsToBeSynced string No

Collections to be synced

Returns : Observable<any>

Promise

pushDocumentToDocuratedById
pushDocumentToDocuratedById(data)

Push document to docurated by id

Parameters :
Name Optional Description
data No

Data

Returns : Observable<any>

Promise

pushToDocuratedAction
pushToDocuratedAction(entity)

Push To Docurated Action

Parameters :
Name Optional Description
entity No

Entity

Returns : void
Async setCollections
setCollections()

Set Push Enabled Collections

Returns : any

Promise

setPushToDocuratedForEntities
setPushToDocuratedForEntities(entities)

Check Push To Docurated Enabled for entities

Parameters :
Name Optional Description
entities No

entities

Returns : any

Entity[]

setPushToDocuratedForEntity
setPushToDocuratedForEntity(entity, pushEnabledCollections)

Check Push To Docurated Enabled for entity

Parameters :
Name Optional Description
entity No

entity

pushEnabledCollections No

Push Enabled Collections

Returns : any

Entity

Properties

docuratedAccessible
Type : boolean
pushEnabledCollections$
Default value : new BehaviorSubject<any>(null)
serviceAvailableNotified
Default value : false
serviceUnavailableNotified
Default value : false

result-matching ""

    No results matching ""