@riocrypto/common 1.0.1706 → 1.0.1711
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.
- package/build/index.d.ts +1 -11
- package/build/index.js +1 -11
- package/build/types/internal-balances.d.ts +8 -0
- package/build/types/rio-settings-update.d.ts +4 -1
- package/build/types/rio-settings.d.ts +4 -1
- package/package.json +1 -1
- package/build/clients/rio-admin-client.d.ts +0 -351
- package/build/clients/rio-admin-client.js +0 -1113
- package/build/clients/rio-client.d.ts +0 -281
- package/build/clients/rio-client.js +0 -826
- package/build/events/identity-verification-failed-event.d.ts +0 -12
- package/build/events/identity-verification-in-review-event.d.ts +0 -12
- package/build/events/identity-verification-in-review-event.js +0 -2
- package/build/events/identity-verification-passed-event.d.ts +0 -12
- package/build/events/identity-verification-passed-event.js +0 -2
- package/build/helpers/get-user-from-client-helper.d.ts +0 -3
- package/build/helpers/get-user-from-client-helper.js +0 -24
- package/build/types/IdentityVerificationType.d.ts +0 -5
- package/build/types/IdentityVerificationType.js +0 -9
- package/build/types/KYC.d.ts +0 -11
- package/build/types/KYC.js +0 -2
- /package/build/{events/identity-verification-failed-event.js → types/internal-balances.js} +0 -0
|
@@ -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,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,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,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 = {}));
|
package/build/types/KYC.d.ts
DELETED
|
@@ -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
|
-
}
|
package/build/types/KYC.js
DELETED
|
File without changes
|