open-index/open-npm huggingface dataset:
npm package: @pmcretail/mapper-library
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.
Latest version: 0.0.56

# MapperLibrary

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.

## Code scaffolding

Run `ng generate component component-name --project mapper-library` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project mapper-library`.
> Note: Don't forget to add `--project mapper-library` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build mapper-library` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build mapper-library`, go to the dist folder `cd dist/mapper-library` and run `npm publish`.

## Running unit tests

Run `ng test mapper-library` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @pmcretail/ng-connection-service
Description: Detects active internet connection in Angular application.
Author: PMC
Latest version: 1.0.6

# Internet Connection Monitoring Service (Angular v8)

> Detects whether browser has an active internet connection or not in Angular application.

## Install

You can get it on npm.

```
npm install @pmcretail/ng-connection-service --save
```
npm package: @pmcretail/ngx-common-ui-lib
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.
Latest version: 1.0.29

# NgxCommonUiLib

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.

## Code scaffolding

Run `ng generate component component-name --project ngx-common-ui-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-common-ui-lib`.
> Note: Don't forget to add `--project ngx-common-ui-lib` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build ngx-common-ui-lib` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build ngx-common-ui-lib`, go to the dist folder `cd dist/ngx-common-ui-lib` and run `npm publish`.

## Running unit tests

Run `ng test ngx-common-ui-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
npm package: @pmcretail/ngx-tmc-lib
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.
Author: Manoj
Latest version: 1.0.6

# NgxTmcLib

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.

## Code scaffolding

Run `ng generate component component-name --project ngx-tmc-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-tmc-lib`.
> Note: Don't forget to add `--project ngx-tmc-lib` or else it will be added to the default project in your `angular.json` file. 


## Install

```bash
npm i @pmcretail/ngx-tmc-lib
```

## Gift Card Usage

TMC request for gift card 

```js

let tmcRequest:any = {
        paymentprocessor: PAYMENT_PROCESSOR.GIFTCARD, 
        action: TMC_ACTION.ADD_CARD,
        transactionRef: "123456",
        provider : GC_PROVIDER.GIVEX,
        cardNumber : "60362834875161611880",
        giftCardExpiryDate:"2023-07-24", 
        amount: 20.00,
        currencycode: "GBP",
        hmacsha1: "cjkcbasjkbcaskckasnlck"
       } 

```

TMC-Lib request as per following

```js

let request = {} as GCRequest ;
        request.requestData =  tmcRequest; 
        request.settings = {}  // either GCGivexSetting or GCNetsuiteSetting  portal settings    

```

Get provider for perfoming operation

```js

let provider:IGCProdiver = this.gcProviderFactory.getGCProvider(tmcRequest.provider)
      provider.checkBalance(request).then(response => {
        console.info("Response ===>",response)
      }).catch(error=>{
        console.info("Error ===>",error)
      })

```

Supported operation

```js

checkBalance(request: GCRequest): Promise<any>

activateCard(request: GCRequest): Promise<any>

doRedemption(request:GCRequest):Promise<any>

doRefund(request: GCRequest): Promise<any>

doTopup(request: GCRequest): Promise<any>

cancel(request: GCRequest): Promise<any>

```


## Build

Run `ng build ngx-tmc-lib` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build ngx-tmc-lib`, go to the dist folder `cd dist/ngx-tmc-lib` and run `npm publish`.

## Running unit tests

Run `ng test ngx-tmc-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).