# @springtree/eva-suite-uri-parser

> An URI parser for the EVA suite web applications

Latest version **2.31.0** (published 2022-09-13) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install @springtree/eva-suite-uri-parser
pnpm add @springtree/eva-suite-uri-parser
yarn add @springtree/eva-suite-uri-parser
bun add @springtree/eva-suite-uri-parser
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.31.0 |
| Published | 2022-09-13 |
| First published | 2020-01-24 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 290.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | SpringTree |
| Maintainers | mdoeswijk, janvandenberg, adebree, appie, springtree_solutions |

## Links

- npm: https://www.npmjs.com/package/@springtree/eva-suite-uri-parser
- Repository: https://github.com/springtreesolutions/eva-suite-uri-parser
- Homepage: https://github.com/springtreesolutions/eva-suite-uri-parser#readme
- Issues: https://github.com/springtreesolutions/eva-suite-uri-parser/issues
- npm.io page: https://npm.io/package/@springtree/eva-suite-uri-parser

## Recent versions

- 2.31.0 (latest) — 2022-09-13
- 2.30.0 — 2022-07-26
- 2.29.0 — 2022-06-23
- 2.28.0 — 2022-06-23
- 2.27.0 — 2022-06-20
- 2.26.0 — 2022-06-14
- 2.25.0 — 2022-06-03
- 2.24.1 — 2022-05-30
- 2.24.0 — 2022-05-30
- 2.23.0 — 2022-05-30
- 2.22.0 — 2022-05-28
- 2.21.1 — 2022-05-27
- 2.21.0 — 2022-05-25
- 2.20.0 — 2022-05-23
- 2.19.0 — 2022-05-23
- … 32 more at https://npm.io/package/@springtree/eva-suite-uri-parser/versions

## README

# EVA Suite URI parser

A Node.js module that supports URI handling for EVA suite web applications.
These URIs are used for inter-application communication and authentication.

## Installation

```bash
npm install @springtree/eva-suite-uri-parser --save
```

## Usage

### Javascript

```javascript
var { EvaIntentBuilder, EvaIntentParser, Order } = require('@springtree/eva-suite-uri-parser');

const intentBuilder = new EvaIntentBuilder();
const intentUrl = intentBuilder.buildUrl(Order.Create, {
  type: 0,
  organizationUnitID: 27,
  customerID: 1101,
  currencyID: 'USD'
});

const intentParser = new EvaIntentParser();
const intent = intentParser.parseUrl(`https://localhost:8080/admin?ou=1&i=listUsers`);
```

### TypeScript

```typescript
import { EvaIntentBuilder, EvaIntentParser, Order } from '@springtree/eva-suite-uri-parser';

const intentBuilder = new EvaIntentBuilder();
const intentUrl = intentBuilder.buildUrl(Order.Create, {
  type: 0,
  organizationUnitID: 27,
  customerID: 1101,
  currencyID: 'USD'
});

const intentParser = new EvaIntentParser();
const intent = intentParser.parseUrl(`https://localhost:8080/admin?ou=1&i=listUsers`);
```

## Test

```bash
npm run test
```

## Discount intents

| Action | Export | Description|
| ------ | ------ | ---------- |
| createDiscount | Discount.Create | Start creating a new discount. Payload can contain information to get started and target OrganizationUnitID |
| viewDiscount | Discount.View | Navigate to a discounts details |
| listDiscount | Discount.List | Navigate to the discount list for an OrganizationUnitID |

## Order intents

| Action | Export | Description|
| ------ | ------ | ---------- |
| createOrder | Order.Create | Start creating a new order. Payload can contain an existing OrderID to copy |
| viewOrder | Order.View | Navigate to an orders details |
| listOrder | Order.List | Navigate to the order list for an OrganizationUnitID |

## OrganizationUnit intents

| Action | Export | Description|
| ------ | ------ | ---------- |
| viewOrganizationUnit | OrganizationUnit.View | Navigate to an organization units details |
| listOrganizationUnit | OrganizationUnit.List | Navigate to the list of organization units |
| viewOpeningHours | OrganizationUnit.ViewOpeningHours | Navigate to the opening hours of an organization unit |

## User tasks intents

| Action | Export | Description|
| ------ | ------ | ---------- |
| listUserTasks | UserTask.List | Show list of all the user taks for the selected organisation unit |

## Cycle counts intents

| Action | Export | Description|
| ------ | ------ | ---------- |
| listCycleCountZones | CycleCount.List | Show list of all the cycle counts for the selected organisation unit |

## Settings intents

| Action | Export | Description|
| ------ | ------ | ---------- |
| listSettings | Settings.List | Show list of all the settings at root level or for the selected organisation unit |

## Return to supplier intents

| Action | Export | Description|
| ------ | ------ | ---------- |
| createReturnToSupplierRequest | ReturnToSupplier.Create | Creates a new RTS request |
| viewReturnToSupplierRequest | ReturnToSupplier.View | Navigate to an RTS request |
| listReturnToSupplierRequests | ReturnToSupplier.List | Navigate to the RTS request list for an OrganizationUnitID (optionally) |

## Product bundle intents

| Action | Export | Description|
| ------ | ------ | ---------- |
| createProductBundle | ProductBundle.Create | Creates a new product bundle |
| viewProductBundle | ProductBundle.View | Navigate to an product bundle |
| listProductBundles | ProductBundle.List | Navigate to the product bundle list for an OrganizationUnitID (optionally) |
| searchProductBundle | ProductBundle.Search | Navigate to the search results page for product bundles |

## Role

| Action | Export | Description|
| ------ | ------ | ---------- |
| createRole | Role.Create | Creates a new role |
| viewRole | Role.View | Navigate to a role |
| listRole | Role.List | Navigate to the role list |
| searchRole | Role.Search | Navigate to the search results page for roles |

## Financial Period Export

| Action | Export | Description|
| ------ | ------ | ---------- |
| createFinancialPeriodExport | FinancialPeriodExport.Create | Creates a new financial period export |
| viewFinancialPeriodExport | FinancialPeriodExport.View | Navigate to a financial period export |
| listFinancialPeriodExports | FinancialPeriodExport.List | Navigate to the financial period export list |

## Tax Rate

| Action | Export | Description|
| ------ | ------ | ---------- |
| createTaxRate | TaxRate.Create | Creates a new tax rate |
| viewTaxRate | TaxRate.View | Navigate to a tax rate |
| listTaxRate | TaxRate.List | Navigate to the tax rate list |

---
_Source: https://npm.io/package/@springtree/eva-suite-uri-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
