open-index/open-npm huggingface dataset:
npm package: @santaz/nestjs-aws-sqs
Description: ## Installation
Author: Vyacheslav Zheltukhin
Latest version: 1.0.2

# nestjs-sqs

## Installation

```shell script
$ npm i --save @santaz/nestjs-aws-sqs
```

## Quick Start

### Register module

Just register this module:

```ts
@Module({
  imports: [
    SqsModule.register({
      consumers: [],
      producers: [],
    }),
  ],
})
class AppModule {}
```

### Decorate methods

You need to decorate methods in your NestJS providers in order to have them be automatically attached as event handlers for incoming SQS messages:

```ts
@Injectable()
export class AppMessageHandler {
  @SqsMessageHandler('queueName', /** batch: */ false)
  public async handleMessage(message: AWS.SQS.Message) {
  }
  
  @SqsConsumerEventHandler('queueName', 'processing_error')
  public onProcessingError(error: Error, message: AWS.SQS.Message) {
    // report errors here
  }
}
```

### Produce messages

```ts
export class AppService {
  public constructor(
    private readonly sqsService: SqsService,
  ) { }
  
  public async dispatchSomething() {
    await this.sqsService.send('queueName', {
      id: 'id',
      body: { ... },
      groupId: 'groupId',
      deduplicationId: 'deduplicationId',
      messageAttributes: { ... },
      delaySeconds: 0,
    });
  }
}
```

## License

This project is licensed under the terms of the MIT license.
npm package: @santech/analytics-core
Description: santech analytics core bundle
Author: Paul Souche
Latest version: 7.0.0-beta.4

@santech/analytics-core
[![Dependency Status](https://david-dm.org/santech-org/studio/status.svg?path=%40santech%2Fanalytics-core)](https://david-dm.org/santech-org/studio?path=%40santech%2Fanalytics-core)
[![devDependency Status](https://david-dm.org/santech-org/studio/dev-status.svg?path=%40santech%2Fanalytics-core)](https://david-dm.org/santech-org/studio?path=%40santech%2Fanalytics-core&type=dev)
========

@santech/analytics-core is a npm module that exports segment core bundle of the santech studio

## Prerequisites

You need to have globally installed:

* node 9.x.x
* npm 5.x.x
* yarn 1.x.x

## Development

Install all the dependencies

```
yarn
```

Build the package

```
yarn build
```

Publish the package

```
npm publish
```

## Require package in your project

```
npm i @santech/analytics-core -S
```

Import module

```javascript
import { analytics } from '@santech/analytics-core';
// or
var analytics = require('@santech/analytics-core').analytics;
// or
var analytics = Santech.AnalyticsCore.analytics;
```

## Examples

Angular 1

```html
<script type="text/javascript" src="./node_modules/@santech/analytics-core/dist/umd/index.js"></script>
```

```javascript
Santech.AnalyticsCore.analytics.page();
```

Angular 2

```typescript
import { analytics } from '@santech/analytics-core';

analytics.page();
```
npm package: @santech/angular-analytics
Description: santech angular analytics module
Author: Paul Souche
Latest version: 7.0.0-beta.4

@santech/angular-analytics
[![Dependency Status](https://david-dm.org/santech-org/studio/peer-status.svg?path=%40santech%2Fangular-analytics)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-analytics&type=peer)
[![devDependency Status](https://david-dm.org/santech-org/studio/dev-status.svg?path=%40santech%2Fangular-analytics)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-analytics&type=dev)
========

@santech/angular-analytics is a npm module that exports santech analytics module for angular

## Prerequisites

You need to have globally installed:

* node 9.x.x
* npm 5.x.x
* yarn 1.x.x

## Development

Install all the dependencies

```
yarn
```

Launch tests

```
yarn test
```

Build the package

```
yarn build
```

Publish the package

```
npm publish
```

## Require package in your project

```
npm i @santech/angular-analytics -S
```

Import module

```javascript
import { SantechAnalyticsModule } from '@santech/angular-analytics';
// or
var SantechAnalyticsModule = require('@santech/angular-analytics').SantechAnalyticsModule;
// or
var SantechAnalyticsModule = santech.AngularAnalytics.SantechAnalyticsModule;
```

## Examples

Angular 2

```typescript
import { Component, Inject, NgModule } from '@angular/core';
import { IAnalyticsJS } from '@santech/analytics-core';
import { ANALYTICS, SantechAnalyticsModule } from '@santech/angular-analytics';
import { CONFIG_END_POINTS, SantechCommonModule } from '@santech/angular-common';
import { SantechPlatformModule } from '@santech/angular-platform';

@NgModule({
  imports: [
    SantechPlatformModule.forRoot(),
    SantechCommonModule.forRoot({
      endPointsProvider: {
        provide: CONFIG_END_POINTS,
        useValue: {
          endPoint: 'endpoint/to/gateway',
          wsEndPoint: 'ws://host:port',
        },
      },
    }),
  ],
  declarations: [AppComponent]
})
export class AppModule {}

@Component({
  selector: 'app',
  template: 'template',
})
export class AppComponent {
  constructor(@Inject(ANALYTICS) analytics: IAnalyticsJS) {
    analytics.page();
  }
}
```
npm package: @santech/angular-common
Description: santech angular common module
Author: Paul Souche
Latest version: 7.0.0-beta.4

@santech/angular-common
[![Dependency Status](https://david-dm.org/santech-org/studio/peer-status.svg?path=%40santech%2Fangular-common)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-common&type=peer)
[![devDependency Status](https://david-dm.org/santech-org/studio/dev-status.svg?path=%40santech%2Fangular-common)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-common&type=dev)
========

@santech/angular-common is a npm module that exports santech common module for angular

## Prerequisites

You need to have globally installed:

* node 9.x.x
* npm 5.x.x
* yarn 1.x.x

## Development

Install all the dependencies

```
yarn
```

Launch tests

```
yarn test
```

Build the package

```
yarn build
```

Publish the package

```
npm publish
```

## Require package in your project

```
npm i @santech/angular-common -S
```

Import module

```javascript
import { SantechCommonModule } from '@santech/angular-common';
// or
var SantechCommonModule = require('@santech/angular-common').SantechCommonModule;
// or
var SantechCommonModule = santech.AngularCommon.SantechCommonModule;
```

## Examples

Angular 2

```typescript
import { Component, Inject, NgModule } from '@angular/core';
import { CONFIG_END_POINTS, SantechCommonModule } from '@santech/angular-common';
import { SantechPlatformModule } from '@santech/angular-platform';
import { Authenticator } from '@santech/common';

@NgModule({
  imports: [
    SantechPlatformModule.forRoot(),
    SantechCommonModule.forRoot({
      endPointsProvider: {
        provide: CONFIG_END_POINTS,
        useValue: {
          endPoint: 'endpoint/to/gateway',
          wsEndPoint: 'ws://host:port',
        },
      },
    }),
  ],
  declarations: [AppComponent]
})
export class AppModule {}

@Component({
  selector: 'app',
  template: 'template',
})
export class AppComponent {
  constructor(auth: Authenticator) {
    // You get an Authenticator
  }
}
```
npm package: @santech/angular-cropper
Description: Angular cropper module for santech studio
Author: Endika Esteban
Latest version: 7.0.0-beta.4

@santech/angular-cropper
[![Dependency Status](https://david-dm.org/santech-org/studio/peer-status.svg?path=%40santech%2Fangular-cropper)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-cropper&type=peer)
[![devDependency Status](https://david-dm.org/santech-org/studio/dev-status.svg?path=%40santech%2Fangular-cropper)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-cropper&type=dev)
========

@santech/angular-cropper is a npm module that exports cropper components for santech assets.

## Prerequisites

You need to have globally installed:

* node 9.x.x
* npm 5.x.x
* yarn 1.x.x

## Development

Install all the dependencies

```
yarn
```

Launch tests

```
yarn test
```

Build the package

```
yarn build
```

Publish the package

```
npm publish dist.tgz
```

## Require package in your project

```
npm i @santech/angular-cropper -S
```

Import module

```javascript
import { SantechCropperModule } from '@santech/angular-cropper';

@NgModule({
  imports: [
    SantechCropperModule.forRoot(),
  ],
})
export class AppModule { }
```
npm package: @santech/angular-i18n
Description: santech angular i18n module
Author: Paul Souche
Latest version: 7.0.0-beta.4

@santech/angular-i18n
[![Dependency Status](https://david-dm.org/santech-org/studio/peer-status.svg?path=%40santech%2Fangular-i18n)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-i18n&type=peer)
[![devDependency Status](https://david-dm.org/santech-org/studio/dev-status.svg?path=%40santech%2Fangular-i18n)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-i18n&type=dev)
========

@santech/angular-i18n is a npm module that exports santech i18n module for angular

## Prerequisites

You need to have globally installed:

* node 9.x.x
* npm 5.x.x
* yarn 1.x.x

## Development

Install all the dependencies

```
yarn
```

Launch tests

```
yarn test
```

Build the package

```
yarn build
```

Publish the package

```
npm publish
```

## Require package in your project

```
npm i @santech/angular-i18n -S
```

Import module

```javascript
import { SantechI18nModule } from '@santech/angular-i18n';
// or
var SantechI18nModule = require('@santech/angular-i18n').SantechI18nModule;
// or
var SantechI18nModule = santech.AngularI18n.SantechI18nModule;
```

## Examples

Angular 2

```typescript
import { Inject, NgModule } from '@angular/core';
import { TranslateModule } from '@ngx-translate/core';
import { LOCALES, LocalesService, SantechI18nModule } from '@santech/angular-i18n';
import { SantechPlatformModule } from '@santech/angular-platform';
import * as en from './locales/en.json';
import * as fr from './locales/fr.json';
import { LABELS } from './tokens/labels';

@NgModule({
  imports: [
    SantechPlatformModule.forRoot(),
    SantechI18nModule.forRoot({
      localesProvider: {
        provide: LOCALES,
        useValue: {
          en: { ...en },
          fr: { ...fr },
        },
      },
    }),
    TranslateModule.forRoot(),
  ],
  providers: [
    {
      provide: LABELS,
      useValue: [
        'alert.lockedAccount.text',
        'alert.lockedAccount.title',
        'alert.sessionExpired.text',
        'alert.sessionExpired.title',
        'alert.tryAgain',
        'alert.wrongLogin',
      ],
    },
  ],
})
export class AppModule {
  constructor(localesService: LocalesService, @Inject(LABELS) labels: string[]) {
    localesService.init(labels);
  }
}
```
npm package: @santech/angular-ionic
Description: Ionic module for santech studio
Author: Paul Souche
Latest version: 7.0.0-beta.4

# @santech/angular-ionic

@santech/angular-ionic is a npm module that exports common ionic directives of the santech assets

## Prerequisites

You need to have globally installed:

* node 9.x.x
* npm 5.x.x
* yarn 1.x.x

## Development

Install all the dependencies

```
yarn
```

Launch tests

```
yarn test
```

Build the package

```
yarn build
```

Publish the package

```
npm publish dist.tgz
```

## Require package in your project

```
npm i @santech/angular-ionic -S
```

Import module

```typescript
import { SantechIonicModule } from '@santech/angular-ionic';

@NgModule({
  imports: [
    SantechIonicModule,
  ],
})
export class AppModule { }
```
npm package: @santech/angular-pica
Description: santech angular pica module
Author: Paul Souche
Latest version: 7.0.0-beta.4

@santech/angular-pica
[![Dependency Status](https://david-dm.org/santech-org/studio/peer-status.svg?path=%40santech%2Fangular-pica)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-pica&type=peer)
[![devDependency Status](https://david-dm.org/santech-org/studio/dev-status.svg?path=%40santech%2Fangular-pica)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-pica&type=dev)
========

@santech/angular-pica is a npm module that exports pica module for angular

## Prerequisites

You need to have globally installed:

* node 9.x.x
* npm 5.x.x
* yarn 1.x.x

## Development

Install all the dependencies

```
yarn
```

Launch tests

```
yarn test
```

Build the package

```
yarn build
```

Publish the package

```
npm publish
```

## Require package in your project

```
npm i @santech/angular-pica -S
```

Import module

```javascript
import { SantechPicaModule } from '@santech/angular-pica';
// or
var SantechPicaModule = require('@santech/angular-pica').SantechPicaModule;
// or
var SantechPicaModule = santech.AngularPica.SantechPicaModule;
```

## Examples

Angular 2

```typescript
import { Component, NgModule } from '@angular/core';
import { SantechCommonModule } from '@santech/angular-common';
import { SantechPlatformModule } from '@santech/angular-platform';
import { PicaService, SantechPicaModule } from '@santech/angular-pica';

@NgModule({
  imports: [
    SantechPlatformModule.forRoot(),
    SantechCommonModule.forRoot(),
    SantechPicaModule.forRoot(),
  ],
  declarations: [AppComponent]
})
export class AppModule {}

@Component({
  selector: 'app',
  template: 'template',
})
export class AppComponent {
  constructor(private picaService: PicaService) {
    // You get pica service
  }

  public resize(input: File | string) {
    return this.picaService.resizeImage({
      data: input,
      height: 768,
      width: 1024,
    }).then((output) => {
      // output is a File if you gave a File / a string otherwise
    });
  }
}
```
npm package: @santech/angular-platform
Description: santech angular platform module
Author: Paul Souche
Latest version: 7.0.0-beta.4

@santech/angular-platform
[![Dependency Status](https://david-dm.org/santech-org/studio/peer-status.svg?path=%40santech%2Fangular-platform)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-platform&type=peer)
[![devDependency Status](https://david-dm.org/santech-org/studio/dev-status.svg?path=%40santech%2Fangular-platform)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-platform&type=dev)
========

@santech/angular-platform is a npm module that exports platform global variables & constructors for angular

## Prerequisites

You need to have globally installed:

* node 9.x.x
* npm 5.x.x
* yarn 1.x.x

## Development

Install all the dependencies

```
yarn
```

Launch tests

```
yarn test
```

Build the package

```
yarn build
```

Publish the package

```
npm publish
```

## Require package in your project

```
npm i @santech/angular-platform -S
```

Import module

```javascript
import { SantechPlatformModule } from '@santech/angular-platform';
// or
var SantechPlatformModule = require('@santech/angular-platform').SantechPlatformModule;
// or
var SantechPlatformModule = santech.AngularPlatform.SantechPlatformModule;
```

## Examples

Angular 2

```typescript
import { Component, Inject, NgModule } from '@angular/core';
import { PLATFORM_LOCATION, SantechPlatformModule } from '@santech/angular-platform';

@NgModule({
  imports: [
    SantechPlatformModule.forRoot(),
  ],
  declarations: [AppComponent]
})
export class AppModule {}

@Component({
  selector: 'app',
  template: 'template',
})
export class AppComponent {
  constructor(@Inject(PLATFORM_LOCATION) location: Location) {
    // You get window.location in browser
  }
}
```
npm package: @santech/angular-websocket
Description: santech angular websocket module
Author: Paul Souche
Latest version: 7.0.0-beta.4

@santech/angular-websocket
[![Dependency Status](https://david-dm.org/santech-org/studio/peer-status.svg?path=%40santech%2Fangular-websocket)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-websocket&type=peer)
[![devDependency Status](https://david-dm.org/santech-org/studio/dev-status.svg?path=%40santech%2Fangular-websocket)](https://david-dm.org/santech-org/studio?path=%40santech%2Fangular-websocket&type=dev)
========

@santech/angular-websocket is a npm module that exports santech websocket client module for angular

## Prerequisites

You need to have globally installed:

* node 9.x.x
* npm 5.x.x
* yarn 1.x.x

## Development

Install all the dependencies

```
yarn
```

Launch tests

```
yarn test
```

Build the package

```
yarn build
```

Publish the package
```
npm publish
```

## Require package in your project

```
npm i @santech/angular-websocket -S
```

Import module

```javascript
import { SantechWebSocketModule } from '@santech/angular-websocket';
// or
var SantechWebSocketModule = require('@santech/angular-websocket').SantechWebSocketModule;
// or
var SantechWebSocketModule = santech.AngularWebsocket.SantechWebSocketModule;
```

## Examples

Angular 2

```typescript
import { Component, NgModule } from '@angular/core';
import { CONFIG_END_POINTS, SantechCommonModule } from '@santech/angular-common';
import { PLATFORM_GLOBAL_CONTEXT, SantechPlatformModule } from '@santech/angular-platform';
import { SantechWebSocketModule, stompjsFactory } from '@santech/angular-websocket';
import { WebSocketClient } from '@santech/websocket';
import '@stomp/stompjs';
import sockjs = require('sockjs-client');

@NgModule({
  imports: [
    SantechPlatformModule.forRoot(),
    SantechCommonModule.forRoot({
      endPointsProvider: {
        provide: CONFIG_END_POINTS,
        useValue: {
          endPoint: 'endpoint/to/gateway',
          wsEndPoint: 'ws://host:port',
        },
      },
    }),
    SantechWebSocketModule.forRoot({
      sockjsProvider: {
        provide: SOCKJS_CLIENT,
        useValue: sockjs,
      },
      stompjsProvider: {
        provide: STOMPJS,
        useFactory: stompjsFactory,
        deps: [PLATFORM_GLOBAL_CONTEXT],
      },
    }),
  ],
  declarations: [AppComponent]
})
export class AppModule {}

@Component({
  selector: 'app',
  template: 'template',
})
export class AppComponent {
  constructor(client: WebSocketClient) {
    // You get websocket client
  }
}
```
npm package: @santech/core
Description: Core module for santech studio
Author: Paul Souche
Latest version: 7.0.0-beta.4

@santech/core
[![Dependency Status](https://david-dm.org/santech-org/studio/status.svg?path=%40santech%2Fcore)](https://david-dm.org/santech-org/studio?path=%40santech%2Fcore)
[![devDependency Status](https://david-dm.org/santech-org/studio/dev-status.svg?path=%40santech%2Fcore)](https://david-dm.org/santech-org/studio?path=%40santech%2Fcore&type=dev)
========

@santech/core is a npm module that exports core models of the santech studio

## Prerequisites

You need to have globally installed:

* node 9.x.x
* npm 5.x.x
* yarn 1.x.x

## Development

Install all the dependencies

```
yarn
```

Launch tests

```
npm test
```

Build the package

```
yarn build
```

Publish the package

```
npm publish
```

## Require package in your project

```
npm i @santech/core -S
```

Import module

```javascript
import { Http } from '@santech/core';
// or
var Http = require('@santech/core').Http;
// or
var Http = Santech.Core.Http;
```

## Examples

Angular 1

```html
<script type="text/javascript" src="./node_modules/@santech/core/dist/umd/index.js"></script>
```

```javascript
class MyCtrl {
  constructor(http) {
    http.get('some/url')
      .then((res => {
        console.log(res.data.foo);
      });
  }
}

angular.module('santech', [])
  .factory('santech-http', () => new Santech.Core.Http(fetch, Headers))
  .controller('MyCtrl', ['santech-http', MyCtrl])
  .run(['santech-http', '$rootScope', function (http, $rootScope) {
    http.addInterceptor({
      response: (res) => {
        $rootScope.$applyAsync();
        return res;
      }
    })
  }]);
```

Angular 2

```typescript
import { Component, Optional } from '@angular/core';
import { Http } from '@santech/core';

interface FooBar {
  foo: string;
}

@Component({
  providers: [{
    provide: Http,
    useFactory: () => new Http(fetch, Headers),
  }],
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  constructor(http: Http) {
    http.get<FooBar>('some/url')
      .then((res => {
        console.log(res.data.foo);
      });
  }
}
```