2.31.0 • Published 2 years ago

@springtree/eva-suite-uri-parser v2.31.0

Weekly downloads
77
License
UNLICENSED
Repository
github
Last release
2 years ago

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

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

Usage

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

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

npm run test

Discount intents

ActionExportDescription
createDiscountDiscount.CreateStart creating a new discount. Payload can contain information to get started and target OrganizationUnitID
viewDiscountDiscount.ViewNavigate to a discounts details
listDiscountDiscount.ListNavigate to the discount list for an OrganizationUnitID

Order intents

ActionExportDescription
createOrderOrder.CreateStart creating a new order. Payload can contain an existing OrderID to copy
viewOrderOrder.ViewNavigate to an orders details
listOrderOrder.ListNavigate to the order list for an OrganizationUnitID

OrganizationUnit intents

ActionExportDescription
viewOrganizationUnitOrganizationUnit.ViewNavigate to an organization units details
listOrganizationUnitOrganizationUnit.ListNavigate to the list of organization units
viewOpeningHoursOrganizationUnit.ViewOpeningHoursNavigate to the opening hours of an organization unit

User tasks intents

ActionExportDescription
listUserTasksUserTask.ListShow list of all the user taks for the selected organisation unit

Cycle counts intents

ActionExportDescription
listCycleCountZonesCycleCount.ListShow list of all the cycle counts for the selected organisation unit

Settings intents

ActionExportDescription
listSettingsSettings.ListShow list of all the settings at root level or for the selected organisation unit

Return to supplier intents

ActionExportDescription
createReturnToSupplierRequestReturnToSupplier.CreateCreates a new RTS request
viewReturnToSupplierRequestReturnToSupplier.ViewNavigate to an RTS request
listReturnToSupplierRequestsReturnToSupplier.ListNavigate to the RTS request list for an OrganizationUnitID (optionally)

Product bundle intents

ActionExportDescription
createProductBundleProductBundle.CreateCreates a new product bundle
viewProductBundleProductBundle.ViewNavigate to an product bundle
listProductBundlesProductBundle.ListNavigate to the product bundle list for an OrganizationUnitID (optionally)
searchProductBundleProductBundle.SearchNavigate to the search results page for product bundles

Role

ActionExportDescription
createRoleRole.CreateCreates a new role
viewRoleRole.ViewNavigate to a role
listRoleRole.ListNavigate to the role list
searchRoleRole.SearchNavigate to the search results page for roles

Financial Period Export

ActionExportDescription
createFinancialPeriodExportFinancialPeriodExport.CreateCreates a new financial period export
viewFinancialPeriodExportFinancialPeriodExport.ViewNavigate to a financial period export
listFinancialPeriodExportsFinancialPeriodExport.ListNavigate to the financial period export list

Tax Rate

ActionExportDescription
createTaxRateTaxRate.CreateCreates a new tax rate
viewTaxRateTaxRate.ViewNavigate to a tax rate
listTaxRateTaxRate.ListNavigate to the tax rate list
2.31.0

2 years ago

2.29.0

2 years ago

2.28.0

2 years ago

2.27.0

2 years ago

2.26.0

2 years ago

2.30.0

2 years ago

2.25.0

2 years ago

2.24.1

2 years ago

2.24.0

2 years ago

2.12.0

2 years ago

2.19.0

2 years ago

2.17.0

2 years ago

2.18.0

2 years ago

2.15.0

2 years ago

2.16.0

2 years ago

2.13.0

2 years ago

2.14.0

2 years ago

2.13.1

2 years ago

2.21.0

2 years ago

2.23.0

2 years ago

2.20.0

2 years ago

2.22.0

2 years ago

2.21.1

2 years ago

2.11.0

2 years ago

2.10.0

2 years ago

2.7.0

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago