chore(docs): Generated JS Client Reference (#5334)

Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-10-10 17:47:07 +00:00
committed by GitHub
parent 378ca1b36e
commit daea35fe73
1091 changed files with 140791 additions and 25954 deletions

View File

@@ -0,0 +1,113 @@
---
displayed_sidebar: jsClientSidebar
---
# Interface: IEventBusService
[internal](../modules/internal-8.md).IEventBusService
## Hierarchy
- [`ITransactionBaseService`](internal-8.ITransactionBaseService.md)
**`IEventBusService`**
## Implemented by
- [`EventBusService`](../classes/internal-8.internal.EventBusService.md)
## Methods
### emit
**emit**<`T`\>(`event`, `data`, `options?`): `Promise`<`unknown`\>
#### Type parameters
| Name |
| :------ |
| `T` |
#### Parameters
| Name | Type |
| :------ | :------ |
| `event` | `string` |
| `data` | `T` |
| `options?` | `unknown` |
#### Returns
`Promise`<`unknown`\>
#### Defined in
packages/types/dist/event-bus/event-bus.d.ts:6
___
### subscribe
**subscribe**(`eventName`, `subscriber`, `context?`): [`IEventBusService`](internal-8.IEventBusService.md)
#### Parameters
| Name | Type |
| :------ | :------ |
| `eventName` | `string` \| `symbol` |
| `subscriber` | [`Subscriber`](../modules/internal-8.md#subscriber) |
| `context?` | [`SubscriberContext`](../modules/internal-8.md#subscribercontext) |
#### Returns
[`IEventBusService`](internal-8.IEventBusService.md)
#### Defined in
packages/types/dist/event-bus/event-bus.d.ts:4
___
### unsubscribe
**unsubscribe**(`eventName`, `subscriber`, `context?`): [`IEventBusService`](internal-8.IEventBusService.md)
#### Parameters
| Name | Type |
| :------ | :------ |
| `eventName` | `string` \| `symbol` |
| `subscriber` | [`Subscriber`](../modules/internal-8.md#subscriber) |
| `context?` | [`SubscriberContext`](../modules/internal-8.md#subscribercontext) |
#### Returns
[`IEventBusService`](internal-8.IEventBusService.md)
#### Defined in
packages/types/dist/event-bus/event-bus.d.ts:5
___
### withTransaction
**withTransaction**(`transactionManager?`): [`IEventBusService`](internal-8.IEventBusService.md)
#### Parameters
| Name | Type |
| :------ | :------ |
| `transactionManager?` | `EntityManager` |
#### Returns
[`IEventBusService`](internal-8.IEventBusService.md)
#### Inherited from
[ITransactionBaseService](internal-8.ITransactionBaseService.md).[withTransaction](internal-8.ITransactionBaseService.md#withtransaction)
#### Defined in
packages/types/dist/transaction-base/transaction-base.d.ts:3