@riocrypto/common 1.0.1250 → 1.0.1251

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.
@@ -3,6 +3,7 @@ export declare enum Subjects {
3
3
  AddressCheckFailed = "addressCheck:Failed",
4
4
  CircleAddressReady = "circleAddress:ready",
5
5
  CircleAddressFailed = "circleAddress:failed",
6
+ UBOCreated = "ubo:created",
6
7
  UserCreated = "user:created",
7
8
  UserUpdated = "user:updated",
8
9
  UserDeleted = "user:deleted",
@@ -7,6 +7,7 @@ var Subjects;
7
7
  Subjects["AddressCheckFailed"] = "addressCheck:Failed";
8
8
  Subjects["CircleAddressReady"] = "circleAddress:ready";
9
9
  Subjects["CircleAddressFailed"] = "circleAddress:failed";
10
+ Subjects["UBOCreated"] = "ubo:created";
10
11
  Subjects["UserCreated"] = "user:created";
11
12
  Subjects["UserUpdated"] = "user:updated";
12
13
  Subjects["UserDeleted"] = "user:deleted";
@@ -0,0 +1,8 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface UBOCreatedEvent {
3
+ subject: Subjects.UBOCreated;
4
+ data: {
5
+ id: string;
6
+ associatedUserId: string;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/build/index.d.ts CHANGED
@@ -120,6 +120,7 @@ export * from "./events/bitso-consumer-contact-created-event";
120
120
  export * from "./events/identity-verification-in-review-event";
121
121
  export * from "./events/identity-verification-passed-event";
122
122
  export * from "./events/identity-verification-failed-event";
123
+ export * from "./events/ubo-created-event";
123
124
  export * from "./types/auth-payload";
124
125
  export * from "./types/admin-auth-payload";
125
126
  export * from "./types/admin-auth";
@@ -203,6 +204,7 @@ export * from "./types/market-data";
203
204
  export * from "./types/kyc-file-type";
204
205
  export * from "./types/identity-verification-status";
205
206
  export * from "./types/UBO-onboarding-status";
207
+ export * from "./types/UBO";
206
208
  export * from "./classes/Asset";
207
209
  export * from "./classes/KYCFieldClass";
208
210
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -136,6 +136,7 @@ __exportStar(require("./events/bitso-consumer-contact-created-event"), exports);
136
136
  __exportStar(require("./events/identity-verification-in-review-event"), exports);
137
137
  __exportStar(require("./events/identity-verification-passed-event"), exports);
138
138
  __exportStar(require("./events/identity-verification-failed-event"), exports);
139
+ __exportStar(require("./events/ubo-created-event"), exports);
139
140
  __exportStar(require("./types/auth-payload"), exports);
140
141
  __exportStar(require("./types/admin-auth-payload"), exports);
141
142
  __exportStar(require("./types/admin-auth"), exports);
@@ -219,6 +220,7 @@ __exportStar(require("./types/market-data"), exports);
219
220
  __exportStar(require("./types/kyc-file-type"), exports);
220
221
  __exportStar(require("./types/identity-verification-status"), exports);
221
222
  __exportStar(require("./types/UBO-onboarding-status"), exports);
223
+ __exportStar(require("./types/UBO"), exports);
222
224
  __exportStar(require("./classes/Asset"), exports);
223
225
  __exportStar(require("./classes/KYCFieldClass"), exports);
224
226
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -0,0 +1,47 @@
1
+ import { CountryOfOrigin } from "./country-of-origin";
2
+ import { OnboardingStatus } from "./onboarding-status";
3
+ export declare type UBO = {
4
+ createdAt: Date;
5
+ individualData?: {
6
+ firstName: string;
7
+ middleName?: string;
8
+ lastName: string;
9
+ secondLastName?: string;
10
+ birthday: Date;
11
+ countryOfOrigin: CountryOfOrigin;
12
+ };
13
+ phoneNumber: string;
14
+ email: string;
15
+ birthday?: Date;
16
+ associatedUserId?: string;
17
+ onboarding?: {
18
+ [country in CountryOfOrigin]?: {
19
+ status?: OnboardingStatus;
20
+ personalId?: string;
21
+ taxId?: string;
22
+ isResident?: boolean;
23
+ individualIdentityVerification?: {
24
+ status?: "passed" | "failed" | "review";
25
+ };
26
+ files?: {
27
+ certificateOfIncorporation?: string;
28
+ KYCReport?: string;
29
+ taxTranscript?: string;
30
+ proofOfAddress?: string;
31
+ businessRegistration?: string;
32
+ taxIdentificationCertificate?: string;
33
+ legalRepresentativeIdPowerOfAttorney?: string;
34
+ personalIdentificationCertificate?: string;
35
+ extraFiles?: string[];
36
+ };
37
+ };
38
+ };
39
+ address: {
40
+ street1: string;
41
+ street2?: string;
42
+ city: string;
43
+ state: string;
44
+ postalCode: string;
45
+ country: CountryOfOrigin;
46
+ };
47
+ };
@@ -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.1250",
3
+ "version": "1.0.1251",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",