@riocrypto/common 1.0.1498 → 1.0.1499

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.
@@ -51,6 +51,7 @@ import { AddressVerification } from "../types/address-verification";
51
51
  import { BankAccountVerification } from "../types/bank-account-verification";
52
52
  import { MultipartLiquidityOrder } from "../types/multipart-liquidity-order";
53
53
  import { LiquidityOrderRecipe } from "../types/liquidity-order-recipe";
54
+ import { Onboarding } from "../types/onboarding";
54
55
  export declare class RioAdminClient {
55
56
  private axios;
56
57
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -127,6 +128,7 @@ export declare class RioAdminClient {
127
128
  id: string;
128
129
  link: string;
129
130
  }>;
131
+ getOnboarding(id: string): Promise<Onboarding>;
130
132
  sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
131
133
  sendBridgeOnboardingEmail(userId: string): Promise<void>;
132
134
  createUBO(user: UBOInput): Promise<UBO>;
@@ -284,6 +284,12 @@ class RioAdminClient {
284
284
  return data;
285
285
  });
286
286
  }
287
+ getOnboarding(id) {
288
+ return __awaiter(this, void 0, void 0, function* () {
289
+ const { data } = yield this.axios.get(`/api/onboardings/${id}`);
290
+ return data;
291
+ });
292
+ }
287
293
  sendVerificationEmail(type, id, country) {
288
294
  return __awaiter(this, void 0, void 0, function* () {
289
295
  yield this.axios.post("/api/kyc/email", {
@@ -41,6 +41,7 @@ import { IdentityVerificationType } from "../types/IdentityVerificationType";
41
41
  import { BidInput } from "../types/bid-input";
42
42
  import { AddressVerification } from "../types/address-verification";
43
43
  import { BankAccountVerification } from "../types/bank-account-verification";
44
+ import { Onboarding } from "../types/onboarding";
44
45
  export declare class RioClient {
45
46
  private axios;
46
47
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -212,4 +213,5 @@ export declare class RioClient {
212
213
  id: string;
213
214
  link: string;
214
215
  }>;
216
+ getOnboarding(id: string): Promise<Onboarding>;
215
217
  }
@@ -765,5 +765,11 @@ class RioClient {
765
765
  return data;
766
766
  });
767
767
  }
768
+ getOnboarding(id) {
769
+ return __awaiter(this, void 0, void 0, function* () {
770
+ const { data } = yield this.axios.get(`/api/onboardings/${id}`);
771
+ return data;
772
+ });
773
+ }
768
774
  }
769
775
  exports.RioClient = RioClient;
package/build/index.d.ts CHANGED
@@ -238,6 +238,7 @@ export * from "./types/address-verification";
238
238
  export * from "./types/bank-account-verification";
239
239
  export * from "./types/multipart-liquidity-order";
240
240
  export * from "./types/liquidity-order-recipe";
241
+ export * from "./types/onboarding";
241
242
  export * from "./classes/Asset";
242
243
  export * from "./classes/KYCFieldClass";
243
244
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -254,6 +254,7 @@ __exportStar(require("./types/address-verification"), exports);
254
254
  __exportStar(require("./types/bank-account-verification"), exports);
255
255
  __exportStar(require("./types/multipart-liquidity-order"), exports);
256
256
  __exportStar(require("./types/liquidity-order-recipe"), exports);
257
+ __exportStar(require("./types/onboarding"), exports);
257
258
  __exportStar(require("./classes/Asset"), exports);
258
259
  __exportStar(require("./classes/KYCFieldClass"), exports);
259
260
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -0,0 +1,15 @@
1
+ import { Country } from "./country";
2
+ import { UserType } from "./user-type";
3
+ export interface Onboarding {
4
+ id: string;
5
+ userType: UserType;
6
+ country: Country;
7
+ status: "approved" | "declined" | "pending" | "review" | "error" | "bridgeToSCompleted" | "bridgeKYCCompleted";
8
+ isIncremental: boolean;
9
+ userId?: string;
10
+ brokerId?: string;
11
+ authId?: string;
12
+ aiPriseId?: string;
13
+ bridgeId?: string;
14
+ email?: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1498",
3
+ "version": "1.0.1499",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",