@riocrypto/common 1.0.1707 → 1.0.1712

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.
@@ -1,12 +0,0 @@
1
- import { IdentityVerificationType } from "../types/IdentityVerificationType";
2
- import { CountryOfOrigin } from "../types/country-of-origin";
3
- import { Subjects } from "./subjects";
4
- export interface IdentityVerificationFailedEvent {
5
- subject: Subjects.IdentityVerificationFailed;
6
- data: {
7
- userId?: string;
8
- uboId?: string;
9
- type: IdentityVerificationType;
10
- country: CountryOfOrigin;
11
- };
12
- }
@@ -1,12 +0,0 @@
1
- import { IdentityVerificationType } from "../types/IdentityVerificationType";
2
- import { CountryOfOrigin } from "../types/country-of-origin";
3
- import { Subjects } from "./subjects";
4
- export interface IdentityVerificationInReviewEvent {
5
- subject: Subjects.IdentityVerificationInReview;
6
- data: {
7
- userId?: string;
8
- uboId?: string;
9
- type: IdentityVerificationType;
10
- country: CountryOfOrigin;
11
- };
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { IdentityVerificationType } from "../types/IdentityVerificationType";
2
- import { CountryOfOrigin } from "../types/country-of-origin";
3
- import { Subjects } from "./subjects";
4
- export interface IdentityVerificationPassedEvent {
5
- subject: Subjects.IdentityVerificationPassed;
6
- data: {
7
- userId?: string;
8
- uboId?: string;
9
- type: IdentityVerificationType;
10
- country: CountryOfOrigin;
11
- };
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { AxiosInstance } from "axios";
2
- import { User } from "../types/user";
3
- export declare const getUserFromClientHelper: (client: AxiosInstance) => Promise<User | null>;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getUserFromClientHelper = void 0;
13
- const rio_client_1 = require("../clients/rio-client");
14
- const getUserFromClientHelper = (client) => __awaiter(void 0, void 0, void 0, function* () {
15
- let user;
16
- try {
17
- user = yield new rio_client_1.RioClient(client).getUser();
18
- }
19
- catch (error) {
20
- user = null;
21
- }
22
- return user;
23
- });
24
- exports.getUserFromClientHelper = getUserFromClientHelper;
@@ -1,5 +0,0 @@
1
- export declare enum IdentityVerificationType {
2
- user = "user",
3
- legalRepresentative = "legalRepresentative",
4
- UBO = "UBO"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IdentityVerificationType = void 0;
4
- var IdentityVerificationType;
5
- (function (IdentityVerificationType) {
6
- IdentityVerificationType["user"] = "user";
7
- IdentityVerificationType["legalRepresentative"] = "legalRepresentative";
8
- IdentityVerificationType["UBO"] = "UBO";
9
- })(IdentityVerificationType = exports.IdentityVerificationType || (exports.IdentityVerificationType = {}));
@@ -1,11 +0,0 @@
1
- import { IdentityVerificationType } from "./IdentityVerificationType";
2
- export interface KYC {
3
- id: string;
4
- type: IdentityVerificationType;
5
- userId?: string;
6
- uboId?: string;
7
- provider: string;
8
- providerId: string;
9
- result: string;
10
- lastChecked: Date;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });