Methods
publish
- publish(record: Record): PromiseLike<Record>
- publish(record: Record, resultHandler: ((res: AsyncResult<Record>) => void) | Handler<AsyncResult<Record>>): void
-
Parameters
Returns PromiseLike<Record>
-
Parameters
-
-
resultHandler: ((res: AsyncResult<Record>) => void) | Handler<AsyncResult<Record>>
Returns void
unpublish
- unpublish(id: string): PromiseLike<void>
- unpublish(id: string, resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
-
Parameters
Returns PromiseLike<void>
-
Parameters
-
id: string
-
resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>
Returns void
update
- update(record: Record): PromiseLike<Record>
- update(record: Record, resultHandler: ((res: AsyncResult<Record>) => void) | Handler<AsyncResult<Record>>): void
-
Parameters
Returns PromiseLike<Record>
-
Parameters
-
-
resultHandler: ((res: AsyncResult<Record>) => void) | Handler<AsyncResult<Record>>
Returns void
The publisher is used by the importer to publish or unpublish records.