1.55.0 • Published 1 year ago

@axa-ch/aletheia v1.55.0

Weekly downloads
289
License
MIT
Repository
github
Last release
1 year ago

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

1.55.0

1 year ago

1.54.0

1 year ago

1.53.1

2 years ago

1.52.0

2 years ago

1.53.0

2 years ago

1.51.0

2 years ago

1.50.1

2 years ago

1.50.0

2 years ago

1.50.2

2 years ago

1.47.0

2 years ago

1.48.0

2 years ago

1.48.1

2 years ago

1.49.0

2 years ago

1.44.0

2 years ago

1.44.2

2 years ago

1.44.1

2 years ago

1.45.0

2 years ago

1.46.0

2 years ago

1.43.0

3 years ago

1.42.3

3 years ago

1.42.2

3 years ago

1.42.1

3 years ago

1.42.0

3 years ago

1.41.1

3 years ago

1.41.3

3 years ago

1.41.2

3 years ago

1.41.0

3 years ago

1.40.0

3 years ago

1.39.0

3 years ago

1.38.0

3 years ago

1.37.1

3 years ago

1.36.1-0

3 years ago

1.36.0

3 years ago

1.35.3-beta.2

3 years ago

1.35.3-beta.1

3 years ago

1.35.3-beta.0

3 years ago

1.35.4

3 years ago

1.35.3

3 years ago

1.35.2

3 years ago

1.35.1

3 years ago

1.35.0

3 years ago

1.34.9

4 years ago

1.34.8

4 years ago

1.34.7

4 years ago

1.34.6

4 years ago

1.34.5

4 years ago

1.34.4

4 years ago

1.34.3

4 years ago

1.34.2

4 years ago

1.34.1

4 years ago

1.34.0

4 years ago

1.33.5

4 years ago

1.33.4

4 years ago

1.33.3

4 years ago

1.33.2

4 years ago

1.33.1

4 years ago

1.33.0

4 years ago

1.32.2

4 years ago

1.32.1

4 years ago

1.32.0

4 years ago

1.31.0

4 years ago

1.30.1

4 years ago

1.29.0

4 years ago

1.28.2

4 years ago

1.28.1

4 years ago

1.28.0

4 years ago

1.27.0

4 years ago

1.26.1

4 years ago

1.26.0

4 years ago

1.25.0

4 years ago

1.24.0

4 years ago

1.23.21

4 years ago

1.23.20

4 years ago

1.23.20-beta.7

4 years ago

1.23.20-beta.8

4 years ago

1.23.20-beta.6

4 years ago

1.23.20-beta.5

4 years ago

1.23.20-beta.4

4 years ago

1.23.20-beta.3

4 years ago

1.23.20-beta.2

4 years ago

1.23.20-beta.1

4 years ago

1.23.20-beta.0

4 years ago

1.23.19

4 years ago

1.23.18

4 years ago

1.23.17

4 years ago

1.23.16

4 years ago

1.23.15

4 years ago

1.23.14

4 years ago

1.23.13

4 years ago

1.23.12

4 years ago

1.23.11

4 years ago

1.23.10

4 years ago

1.23.9

4 years ago

1.23.7

4 years ago

1.23.8

4 years ago

1.23.6

4 years ago

1.23.5

4 years ago

1.23.4

4 years ago

1.23.3

4 years ago

1.23.2

4 years ago

1.23.1

4 years ago

1.23.0

4 years ago

1.22.1-beta.8

4 years ago

1.22.2

4 years ago

1.22.1-beta.7

4 years ago

1.22.1-beta.6

4 years ago

1.22.1-beta.5

4 years ago

1.22.1-beta.4

4 years ago

1.22.1-beta.3

4 years ago

1.22.1-beta.2

4 years ago

1.22.1-beta.1

4 years ago

1.22.1-beta.0

4 years ago

1.22.1

4 years ago

1.22.0

4 years ago

1.21.9

4 years ago

1.21.8

4 years ago

1.21.7

4 years ago

1.21.6

4 years ago

1.21.5

4 years ago

1.21.4

4 years ago

1.21.3

5 years ago

1.21.2

5 years ago

1.21.1

5 years ago

1.21.0

5 years ago

1.20.5

5 years ago

1.15.2-beta.0

5 years ago

1.20.4

5 years ago

1.20.3

5 years ago

1.20.2

5 years ago

1.20.1

5 years ago

1.20.1-beta.0

5 years ago

1.20.0

5 years ago

1.19.1

5 years ago

1.19.0

5 years ago

1.18.0

5 years ago

1.17.2

5 years ago

1.17.1

5 years ago

1.17.0

5 years ago

1.16.1

5 years ago

1.16.0

5 years ago

1.15.1

5 years ago

1.15.0

5 years ago

1.14.1

5 years ago

1.14.0

5 years ago

1.13.4

5 years ago

1.13.3

5 years ago

1.13.2

5 years ago

1.13.1

5 years ago

1.13.0

5 years ago

1.12.6

5 years ago

1.12.5

5 years ago

1.12.4

5 years ago

1.12.3

5 years ago

1.12.2

5 years ago

1.12.1

5 years ago

1.12.0

5 years ago

1.11.1

5 years ago

1.11.0

5 years ago

1.10.29

5 years ago

1.10.28

5 years ago

1.10.27

5 years ago

1.10.26

5 years ago

1.10.25

5 years ago

1.10.24

5 years ago

1.10.23

5 years ago

1.10.22

5 years ago

1.10.21

5 years ago

1.10.20

5 years ago

1.10.19

5 years ago

1.10.18

5 years ago

1.10.17

5 years ago

1.10.16

5 years ago

1.10.15

5 years ago

1.10.14

5 years ago

1.10.13

5 years ago

1.10.12

5 years ago

1.10.11

5 years ago

1.10.10

5 years ago

1.10.9

5 years ago

1.10.8

5 years ago

1.10.7

5 years ago

1.10.6

5 years ago

1.10.5

5 years ago

1.10.4

5 years ago

1.10.3

5 years ago

1.10.2

5 years ago

1.10.1

5 years ago

1.10.0

5 years ago

1.9.0

5 years ago

1.8.4

5 years ago

1.8.3

5 years ago

1.8.2

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.13

5 years ago

1.5.12

5 years ago

1.5.11

5 years ago

1.5.10

5 years ago

1.5.9

5 years ago

1.5.8

5 years ago

1.5.7

5 years ago

1.5.6

5 years ago

1.5.5

5 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.4

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.18

5 years ago

1.2.17

5 years ago

1.2.16

5 years ago

1.2.15

5 years ago

1.2.14

5 years ago

1.2.13

5 years ago

1.2.12

5 years ago

1.2.11

5 years ago

1.2.10

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago

0.0.2-beta.42

6 years ago

0.0.2-beta.41

6 years ago

0.0.2-beta.40

6 years ago

0.0.2-beta.39

6 years ago

0.0.2-beta.38

6 years ago

0.0.2-beta.37

6 years ago

0.0.2-beta.36

6 years ago

0.0.2-beta.35

6 years ago

0.0.2-beta.34

6 years ago

0.0.2-beta.33

6 years ago

0.0.2-beta.32

6 years ago

0.0.2-beta.31

6 years ago

0.0.2-beta.30

6 years ago

0.0.2-beta.29

6 years ago

0.0.2-beta.28

6 years ago

0.0.2-beta.27

6 years ago

0.0.2-beta.26

6 years ago

0.0.2-beta.25

6 years ago

0.0.2-beta.24

6 years ago

0.0.2-beta.23

6 years ago

0.0.2-beta.22

6 years ago

0.0.2-beta.21

6 years ago

0.0.2-beta.20

6 years ago

0.0.2-beta.19

6 years ago

0.0.2-beta.18

6 years ago

0.0.2-beta.17

6 years ago

0.0.2-beta.16

6 years ago

0.0.2-beta.15

6 years ago

0.0.2-beta.14

6 years ago

0.0.2-beta.13

6 years ago

0.0.2-beta.12

6 years ago

0.0.2-beta.11

6 years ago

0.0.2-beta.10

6 years ago

0.0.2-beta.9

6 years ago

0.0.2-beta.8

6 years ago

0.0.2-beta.7

6 years ago

0.0.2-beta.6

6 years ago

0.0.2-beta.5

6 years ago

0.0.2-beta.4

6 years ago

0.0.2-beta.3

6 years ago

0.0.2-beta.2

6 years ago

0.0.2-beta.1

6 years ago

0.0.2-beta.0

6 years ago

0.0.1

6 years ago