open-index/open-npm huggingface dataset:
npm package: @imaness/bus-azure-service-bus
Description: An Azure Service Bus transport adapter for @node-ts/bus-core.
Latest version: 1.0.0

# @imaness/bus-azure-service-bus

An Azure Service Bus queue adapter for [@node-ts/bus](https://bus.node-ts.com)

🔥 View our docs at [https://bus.node-ts.com](https://bus.node-ts.com) 🔥

🤔 Have a question? [Join our Discord](https://discord.gg/Gg7v4xt82X) 🤔

## Installation

Install packages and their dependencies

```bash
npm i @imaness/bus-azure-service-bus @node-ts/bus-core
```

Once installed, configure Bus to use this transport during initialization:

```typescript
import { Bus } from '@node-ts/bus-core'
import { ServiceBusTransport, ServiceBusTransportConfiguration } from '@imaness/bus-azure-service-bus'

// For Using Service Bus Queue
const sbQueueConfiguration: ServiceBusTransportConfiguration = {
  queueName: {Queue Name},
  serviceBusClient:  new ServiceBusClient(),
}
const sbQueueTransport = new ServiceBusTransport(sbConfiguration)

// For Using Service Bus Topic
const sbTopicSubscriptionConfiguration: ServiceBusTransportConfiguration = {
  topicName: {Topic Name},
  subscriptionName: {Subscription Name},
  serviceBusClient:  new ServiceBusClient()
}
const sbTopicTransport = new ServiceBusTransport(sbConfiguration)

// Configure Bus to use Azure Service Bus Queue as a transport
const run = async () => {
  await Bus
    .configure()
    .withTransport({ sbQueueTransport or sbTopicTransport })
    .initialize()
}
run.catch(console.error)
```

### Mapping of ApplicationProperties to Attributes and StickyAttributes

Azure Service Bus supports [Message Properties](https://docs.microsoft.com/en-us/rest/api/servicebus/message-headers-and-properties#message-properties). 

In order for you to map it to Attributes or StickyAttributes you need to add key prefix of either `attributes` or `stickyAttributes`. Those key that are not have the said prefixes will be considered as `attributes`.
npm package: @imaness/bus-azure-service-bus-queue
Description: An Azure Service Bus Queue transport adapter for @node-ts/bus-core.
Latest version: 1.2.4

# @imaness/bus-azure-service-bus-queue

An Azure Service Bus queue adapter for [@node-ts/bus](https://bus.node-ts.com)

🔥 View our docs at [https://bus.node-ts.com](https://bus.node-ts.com) 🔥

🤔 Have a question? [Join our Discord](https://discord.gg/Gg7v4xt82X) 🤔

## Installation

Install packages and their dependencies

```bash
npm i @imaness/bus-azure-service-bus-queue @node-ts/bus-core
```

Once installed, configure Bus to use this transport during initialization:

```typescript
import { Bus } from '@node-ts/bus-core'
import { SBQTransport, SBQTransportConfiguration } from '@imaness/bus-azure-service-bus-queue'

const sbqConfiguration: SBQTransportConfiguration = {
  queueName: {Queue Name},
  serviceBusClient:  new ServiceBusClient(),
}

const sbqTransport = new SBQTransport(sbqConfiguration)

// Configure Bus to use Azure Service Bus Queue as a transport
const run = async () => {
  await Bus
    .configure()
    .withTransport(sbqTransport)
    .initialize()
}
run.catch(console.error)
```

### Mapping of ApplicationProperties to Attributes and StickyAttributes

Azure Service Bus Queue supports [Message Properties](https://docs.microsoft.com/en-us/rest/api/servicebus/message-headers-and-properties#message-properties). 

In order for you to map it to Attributes or StickyAttributes you need to add key prefix of either `attributes` or `stickyAttributes`. Those key that are not have the said prefixes will be considered as `attributes`.
npm package: @imanro/angular-calendar-week-hours-view
Description: This project aims to provide an alternative view to those already provided on [Angular Calendar](https://github.com/mattlewis92/angular-calendar).
Author: Innqube
Latest version: 1.0.3200

# AngularCalendarWeekHoursView

This project aims to provide an alternative view to those already provided on [Angular Calendar](https://github.com/mattlewis92/angular-calendar).

It probably won't receive much support from me (@diegofsza), so you're encouraged to enhance it in any reasonable way and send pull requests.

## How it looks

![Imgur](https://i.imgur.com/deXyK1Q.jpg)

## Usage

Import the module wherever you want to use the view:

```javascript
@NgModule({
    declarations: [
        ...
    ],
    imports: [
        ...,
        CalendarModule.forRoot(),
        CalendarWeekHoursViewModule,
        ...
    ],   
})
```

Use the view in your html

```html
<iq-calendar-week-hours-view
            *ngSwitchCase="'week'"
            [viewDate]="viewDate"
            [events]="events"
            [hourSegments]="2"
            [dayStartHour]="8"
            [dayEndHour]="20"
            (eventClicked)="eventClicked($event)"
            (hourSegmentClicked)="hourSegmentClicked($event)"
            (eventTimesChanged)="eventTimesChanged($event)"
            [refresh]="refresh">
        </iq-calendar-week-hours-view>
```

You should also include the scss file in your styles array in the .angular-cli.json file

```javascript
"../node_modules/angular-calendar-week-hours-view/angular-calendar-week-hours-view.scss"
```
npm package: @imanro/axon-client
Description: Unofficial NodeJS client for Axon Server
Author: Erik Verweij
Latest version: 0.1.42

# axon-client

[![NPM](https://img.shields.io/npm/v/axon-client.svg)](https://www.npmjs.com/package/axon-client)
[![TYPESCRIPT](https://img.shields.io/badge/%3C%2F%3E-typescript-blue)](http://www.typescriptlang.org/)
[![Weekly downloads](https://badgen.net/npm/dw/axon-client)](https://badgen.net/npm/dw/axon-client)

Unofficial NodeJS client for Axon Server written in TypeScript.
Note: This library has a peer-dependency on `rxjs >= 6`.

## Installation

Via npm

```bash
npm install axon-client
```

or yarn

```bash
yarn add axon-client
```

## Getting started

In order to setup a connection:

```ts
import { AxonClient } from 'axon-client';

async function app() {
  const client = await new AxonClient({
    componentName: 'My-App',
    clientId: '123@hostname', // optional, defaults to process-id + hostname
    host: '0.0.0.0',
    port: 8124, // optional , defaults to 8124
    token: 'my-secret-token', // optional
    certificate: fs.readFileSync('path-to-certificate'), // optional
  }).connect();

  console.log(`Connected to Axon Server on ${client.endpoint}`);

  // do stuff with the client here...

  // optionally disconnect when done
  client.disconnect();
}
```

## Methods

The following methods are available.

### eventBus

```ts
queryEvents(query: string, numberOfPermits?: number): Observable<QueryEvents>;
getFirstToken(): Promise<number>;
getLastToken(): Promise<number>;
getTokenAt(instant: number): Promise<number>;
listAggregateEvents(options: ListAggregateEventsOptions): Promise<AggregateEvent[]>;
listAggregateSnapshots(options: ListAggregateSnapshotsOptions): Promise<any[]>;
listEvents(options: ListEventOptions): Observable<Event>;
appendEvents(event: AggregateEvent | AggregateEvent[]): Promise<Confirmation>;
```

### commandBus

```ts
getPermits(): number;
setPermits(permits: number): void;
subscribe(commandName: string, operation: AnyFunction): Unsubscriber;
unsubscribe(commandName: string): void;
dispatch({ name, payload }: DispatchOptions): Promise<DispatchResponse>;
```

### queryBus

Unfortunately, query-subscription are not (yet) possible.

```ts
getPermits(): number;
setPermits(permits: number): void;
subscribe(queryName: string, operation: AnyFunction): Unsubscriber;
unsubscribe(queryName: string): void;
query(options: QueryOptions): Promise<QueryResult>;
```