Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@axa-ch/aletheia

Package Overview
Dependencies
Maintainers
52
Versions
315
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axa-ch/aletheia

AXA UI Renderer

  • 1.55.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
increased by702.7%
Maintainers
52
Weekly downloads
 
Created
Source

Aletheia

Build Status npm

Table of Contents

Requirements

  • node ^10.16.0
  • npm ^6.9.0

Installation

When that's done, install the project dependencies.

$ npm install  # Install project dependencies

Running the Project

After completing the installation step, you're ready to start the project!

$ npm run dev  # Start the development server
$ npm run start-local  # Start the development server with mocked api and emulates the production behaviour

While developing, you will probably rely mostly on npm run dev or npm run start-local; however, there are additional scripts at your disposal:

npm <script>Description
cleanDelete ./dist
clean-docsDelete ./docs
clean-libDelete ./lib
devServes your app at localhost:3000
compileBuilds the application to ./dist
buildRuns compile and build-lib
build-libBuilds the application to ./lib for ES Modules consumption
testBuilds the application to ./dist
test-jsRuns unit tests and lints
coverageRuns unit tests and collects code coverage
test-js:watchRuns test-js in watch mode to re-run tests when changed
lintLints the project for potential errors
lint:fixLints the project and fixes all correctable errors
lint-cssLint the project for potential CSS errors
lint-css:fixLint the CSS and fixes all correctable errors
lint:schemasLints the JSON schemas with ajv
lint:schemashelpDisplays help for the CLI with ajv help
docsBuild API docs from JSON Schemas with jsonschema2md
tocGenerate Table of Contents for README.md, CONTRIBUTING.md and ONBOARDING.md
statProfiles build and outputs stat.json
stat-prodProfiles build and outputs stat-prod.json

Environment Variables

All environment variables are mainly used for development, to fill out the data attributes.

NameDescriptionDefault
NODE_ENVUsed to optimize the build for production, development or test."development"
PROCESS_INSTANCE_IDUnique ID for a running process. This has a higher priority than the PROCESS_NAME.
PROCESS_NAMEName of the process which should be started automatically. This has a lower priority than the PROCESS_INSTANCE_ID.
END_USER_KEYUser who started the process. If OAUTH_TOKEN is set, END_USER_KEY is ignored.
STAGEThe current stage at which aletheia is running, i.e. production, acc, dev or local.
API_TEST_KEYAPI Key for local testing.
X_AXA_APIKEYAPI keys should only be used for public unauthorized API’s. An API key is unique per client application and will be used solely for client identification (for details, please consult the official documentation at confluence).
OAUTH_TOKENOAuth token of type Bearer.
FALLBACK_URLThe url to fall back to if the process cannot be started.

Environment Variables as Name-Value-Pairs

Each process may or may not have custom Name-Value-Pairs (NVP):

NameDescriptionNVP-Name
APP_IDID of the invoking application.APPL-ID-CLIENT
PARTNER_NUMBERPartner number.PART-NR
POLICY_NUMBERPolicy number.POL-NR
LICENSE_PLATELicense plate.KSCHILD-KOMPL
URL_HAILURL for hail jump (NVP value).URL-SC-FORMLR-HAGEL
URL_DATA_PROTECTIONURL for data protection jump (NVP value).URL-DATEN-SCHUTZ-ERKLRG
URL_COLLISION_RENTEDURL for collision rented jump (NVP value).URL-SC-FORMLR-KOLSN-FZ-GLIEH
URL_DAMAGE_MARTENURL for damage marten jump (NVP value).URL-SC-FORMLR-MARDER
URL_GLASS_BOTURL for glass bot jump (NVP value).URL-SC-FORMLR-GLSBRU
URL_EFORM_CARURL for eform car jump (NVP value).URL-SC-FORMLR-MFZ
URL_CAR_CARELESS_WARRANTYURL for car careless warranty jump (NVP value).URL-SC-FORMLR-GRT-EREIG

Data Attributes

NameDescriptionDefault
data-stageONLY on axa.ch! Will be mapped to data-aletheia-stage.
data-aletheia-stageThe current stage at which aletheia is running, i.e. production, acc, dev or local.
data-aletheia-is-from-my-axaWhether or not myAXA native Android or iOS App is used.false
data-aletheia-api-test-keyAPI Key for local testing.
data-aletheia-x-axa-apikeyAPI keys should only be used for public unauthorized API’s. An API key is unique per client application and will be used solely for client identification (for details, please consult the official documentation at confluence).
data-aletheia-oauth-tokenOAuth token of type Bearer.
data-aletheia-fallback-urlThe url to fall back to if the process cannot be started.
data-aletheia-apiAPI URL to BPM.
data-aletheia-refresh-urlURL for refreshing the oAuth Access Token.
data-aletheia-redirect-urlURL for refreshing the oAuth Access Token by redirect.
data-aletheia-sat-cookie-nameName of the Secure-Access-Token-Cookie.
data-aletheia-process-instance-idUnique ID for a running process (mainly used for development).
data-aletheia-process-nameName of the process which should be started automatically (mainly used for production).
data-aletheia-end-user-keyUser who started the process.
data-aletheia-ulsWhether or not to use the User Login Servlet, which offers authentication by user-id and password (for details, please consult the official documentation at confluence).false
data-aletheia-on-process-endedFunction to be called upon process end (search for in the global window object)."onTestEnded"
data-aletheia-on-process-errorFunction to be called upon process error (search for in the global window object)."onTestError"
data-aletheia-on-process-abortedFunction to be called upon process abortion (search for in the global window object)."onTestAborted"

Data Attributes as Name-Value-Pairs

Each process may or may not have custom Name-Value-Pairs (NVP):

NameDescriptionNVP-NameDefault
data-aletheia-app-id ID of the invoking application. APPL-ID-CLIENT
data-languageONLY on axa.ch! Will be mapped to data-aletheia-localeSPRA-CDI"de-CH"
data-aletheia-localeLocale of the application - country and language code allowed.SPRA-CDI"de-CH"
data-aletheia-referrer URL of the invoking application.URL-SOURCE-APPL
data-aletheia-nvp An array of NVP objects.
data-aletheia-nvp-names-mapA map to rename NVP-names.

Name-Value-Pairs

Each process may or may not have custom Name-Value-Pairs (NVP):

NameDescriptionDefault
SPRA-CDI User's langauge - attention only language codes are allowed'de'
PART-NR Partner number.
POL-NRPolicy number.
APPL-ID-CLIENTID of the invoking application.
KSCHILD-KOMPLLicense plate 
KSCHILD-FARB-CDU License plate's color
URL-SOURCE-APPL URL of the invoking application.
URL-SC-FORMLR-HAGELURL for hail jump (NVP value). 
URL-DATEN-SCHUTZ-ERKLRG URL for data protection jump (NVP value).
URL-SC-FORMLR-KOLSN-FZ-GLIEH URL for collision rented jump (NVP value).
URL-SC-FORMLR-MARDER URL for damage marten jump (NVP value).
URL-SC-FORMLR-GLSBRUURL for glass bot jump (NVP value).
URL-SC-FORMLR-MFZURL for eform car jump (NVP value).
URL-SC-FORMLR-GRT-EREIGURL for car careless warranty jump (NVP value).
IS-START-FROM-APPPassthrough attribute to tell process it has been started from myaxa app

Query Params

The UI-Renderer reads the current window.location and looks for following query params:

Name | Description | Default forceNewProcess|Force to start a new process, must be set to 1. | none

FAQs

Package last updated on 06 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc