@ekyc_qoobiss/qbs-ect-cmp 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +0 -51
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,51 +0,0 @@
1
- ![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)
2
-
3
- # Evidence Collection Tool
4
-
5
- This is a web component that can be used for user identification
6
-
7
- ## Getting Started
8
-
9
- To start using this component install it via npm:
10
-
11
- ```bash
12
- npm i @ekyc_qoobiss/qbs-ect-cmp
13
- ```
14
-
15
- The wev compoment has to be included in the html markup like this:
16
-
17
- \*.html
18
-
19
- ```sh
20
- <identification-component token="{{ token }}" order_id="{{ orderId }}" api_url="{{ apiUrl }}"></identification-component>
21
- ```
22
-
23
- ### There are two parameters:
24
-
25
- - token - which is the token that was obtained using the API Key on the server side;
26
- - order_id - is a unique ID that will be used for the current identification request when obtaining the processed data from the REST API Service;
27
- - api_url - is the base api url that we have provided for you.
28
- - phone_number - the preffered phone number for the OTP validation.
29
-
30
- ### Obtaining the token
31
-
32
- To get the token you have to make a server-side GET request to this url: [apiUrl]/token
33
- The authentication is done using the API Key that you received from us.
34
-
35
- ### The component will raise these events:
36
-
37
- - 'ect-started' - when the component was loaded and initialted
38
- - 'ect-error' - when a critical error has ocurred and the flow cannot continue
39
- - 'ect-session-expired' - when the token has expired
40
- - 'ect-completed' - when the flow has ended.
41
- - 'ect-aborted' - when the flow was aborted by the user.
42
-
43
- ### Obtaining the result
44
-
45
- To get the result of the collection process, you have to make a GET call to the endpoint [apiUrl]/validation/identity/result?orderId=[orderId]. The result will be a json with the details we have processesd. The result is encrypted using AES with a symmetrical key that you will be provided with. To be able to call the endpoint you have to use either a valid token or the API Key.
46
- If the request is not yet processes, the response will be a json of this type:
47
- {
48
- "OrderID": "the id",
49
- "Status": "[Incomplete|NotStarted|Running]"
50
- }
51
- When the processing has finished the response will return the encrypted data.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekyc_qoobiss/qbs-ect-cmp",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Person Identification Component",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.js",