@riocrypto/common 1.0.1217 → 1.0.1219
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/clients/rio-admin-client.d.ts +3 -0
- package/build/clients/rio-admin-client.js +6 -0
- package/build/clients/rio-client.d.ts +3 -0
- package/build/clients/rio-client.js +6 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/KYCFileType.d.ts +11 -0
- package/build/types/KYCFileType.js +15 -0
- package/package.json +1 -1
|
@@ -35,6 +35,8 @@ import { ChainedQuote } from "../types/chained-quote";
|
|
|
35
35
|
import { ChainedOrderInput } from "../types/chained-order-input";
|
|
36
36
|
import { InternalSwap } from "../types/internal-swap";
|
|
37
37
|
import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
|
|
38
|
+
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
39
|
+
import { KYCFileType } from "../types/KYCFileType";
|
|
38
40
|
export declare class RioAdminClient {
|
|
39
41
|
private axios;
|
|
40
42
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -51,6 +53,7 @@ export declare class RioAdminClient {
|
|
|
51
53
|
signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
|
|
52
54
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
53
55
|
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
56
|
+
uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
|
|
54
57
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
55
58
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
56
59
|
uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
|
|
@@ -91,6 +91,12 @@ class RioAdminClient {
|
|
|
91
91
|
return data;
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
+
uploadFile(id, country, fileType, formData) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
const { data } = yield this.axios.post(`/api/users/${id}/files/${country}/${fileType}`, formData);
|
|
97
|
+
return data;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
94
100
|
uploadKYCReport(id, formData) {
|
|
95
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
102
|
const { data } = yield this.axios.post(`/api/users/${id}/kyc-report`, formData);
|
|
@@ -31,6 +31,8 @@ import { ChainedOrder } from "../types/chained-order";
|
|
|
31
31
|
import { ChainedOrderQuery } from "../types/chained-order-query";
|
|
32
32
|
import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
|
|
33
33
|
import { SecurityQuestion } from "../types/security-question";
|
|
34
|
+
import { KYCFileType } from "../types/KYCFileType";
|
|
35
|
+
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
34
36
|
export declare class RioClient {
|
|
35
37
|
private axios;
|
|
36
38
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -42,6 +44,7 @@ export declare class RioClient {
|
|
|
42
44
|
getUsers(page: number, limit?: number, query?: UserQuery): Promise<User[]>;
|
|
43
45
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
44
46
|
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
47
|
+
uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
|
|
45
48
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
46
49
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
47
50
|
getRioSettings(): Promise<RioSettings>;
|
|
@@ -82,6 +82,12 @@ class RioClient {
|
|
|
82
82
|
return data;
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
+
uploadFile(id, country, fileType, formData) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
const { data } = yield this.axios.post(`/api/users/${id}/files/${country}/${fileType}`, formData);
|
|
88
|
+
return data;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
85
91
|
uploadKYCReport(id, formData) {
|
|
86
92
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
93
|
const { data } = yield this.axios.post(`/api/users/${id}/kyc-report`, formData);
|
package/build/index.d.ts
CHANGED
|
@@ -198,6 +198,7 @@ export * from "./types/circle-chain";
|
|
|
198
198
|
export * from "./types/circle-payout";
|
|
199
199
|
export * from "./types/risk-tier";
|
|
200
200
|
export * from "./types/market-data";
|
|
201
|
+
export * from "./types/KYCFileType";
|
|
201
202
|
export * from "./classes/Asset";
|
|
202
203
|
export * from "./classes/CountryAsset";
|
|
203
204
|
export * from "./classes/CryptoAsset";
|
package/build/index.js
CHANGED
|
@@ -214,6 +214,7 @@ __exportStar(require("./types/circle-chain"), exports);
|
|
|
214
214
|
__exportStar(require("./types/circle-payout"), exports);
|
|
215
215
|
__exportStar(require("./types/risk-tier"), exports);
|
|
216
216
|
__exportStar(require("./types/market-data"), exports);
|
|
217
|
+
__exportStar(require("./types/KYCFileType"), exports);
|
|
217
218
|
__exportStar(require("./classes/Asset"), exports);
|
|
218
219
|
__exportStar(require("./classes/CountryAsset"), exports);
|
|
219
220
|
__exportStar(require("./classes/CryptoAsset"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum KYCFileType {
|
|
2
|
+
CertificateOfIncorporation = "certificateOfIncorporation",
|
|
3
|
+
KYCReport = "KYCReport",
|
|
4
|
+
TaxTranscript = "taxTranscript",
|
|
5
|
+
ProofOfAddress = "proofOfAddress",
|
|
6
|
+
BusinessRegistration = "businessRegistration",
|
|
7
|
+
TaxIdentificationCertificate = "taxIdentificationCertificate",
|
|
8
|
+
LegalRepresentativeIdPowerOfAttorney = "legalRepresentativeIdPowerOfAttorney",
|
|
9
|
+
PersonalIdentificationCertificate = "personalIdentificationCertificate",
|
|
10
|
+
ExtraFile = "extraFile"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KYCFileType = void 0;
|
|
4
|
+
var KYCFileType;
|
|
5
|
+
(function (KYCFileType) {
|
|
6
|
+
KYCFileType["CertificateOfIncorporation"] = "certificateOfIncorporation";
|
|
7
|
+
KYCFileType["KYCReport"] = "KYCReport";
|
|
8
|
+
KYCFileType["TaxTranscript"] = "taxTranscript";
|
|
9
|
+
KYCFileType["ProofOfAddress"] = "proofOfAddress";
|
|
10
|
+
KYCFileType["BusinessRegistration"] = "businessRegistration";
|
|
11
|
+
KYCFileType["TaxIdentificationCertificate"] = "taxIdentificationCertificate";
|
|
12
|
+
KYCFileType["LegalRepresentativeIdPowerOfAttorney"] = "legalRepresentativeIdPowerOfAttorney";
|
|
13
|
+
KYCFileType["PersonalIdentificationCertificate"] = "personalIdentificationCertificate";
|
|
14
|
+
KYCFileType["ExtraFile"] = "extraFile";
|
|
15
|
+
})(KYCFileType = exports.KYCFileType || (exports.KYCFileType = {}));
|