@riocrypto/common 1.0.1250 → 1.0.1252

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,9 @@ export declare enum Subjects {
3
3
  AddressCheckFailed = "addressCheck:Failed",
4
4
  CircleAddressReady = "circleAddress:ready",
5
5
  CircleAddressFailed = "circleAddress:failed",
6
+ UBOCreated = "ubo:created",
7
+ UBOOnboardingApproved = "ubo:onboardingApproved",
8
+ UBOOnboardingFailed = "ubo:onboardingFailed",
6
9
  UserCreated = "user:created",
7
10
  UserUpdated = "user:updated",
8
11
  UserDeleted = "user:deleted",
@@ -7,6 +7,9 @@ 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";
11
+ Subjects["UBOOnboardingApproved"] = "ubo:onboardingApproved";
12
+ Subjects["UBOOnboardingFailed"] = "ubo:onboardingFailed";
10
13
  Subjects["UserCreated"] = "user:created";
11
14
  Subjects["UserUpdated"] = "user:updated";
12
15
  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 });
@@ -0,0 +1,8 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface UBOOnboardingApproved {
3
+ subject: Subjects.UBOOnboardingApproved;
4
+ data: {
5
+ id: string;
6
+ associatedUserId: string;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface UBOOnboardingFailed {
3
+ subject: Subjects.UBOOnboardingFailed;
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,9 @@ 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";
124
+ export * from "./events/ubo-onboarding-approved-event";
125
+ export * from "./events/ubo-onboarding-failed-event";
123
126
  export * from "./types/auth-payload";
124
127
  export * from "./types/admin-auth-payload";
125
128
  export * from "./types/admin-auth";
@@ -203,6 +206,7 @@ export * from "./types/market-data";
203
206
  export * from "./types/kyc-file-type";
204
207
  export * from "./types/identity-verification-status";
205
208
  export * from "./types/UBO-onboarding-status";
209
+ export * from "./types/UBO";
206
210
  export * from "./classes/Asset";
207
211
  export * from "./classes/KYCFieldClass";
208
212
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -136,6 +136,9 @@ __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);
140
+ __exportStar(require("./events/ubo-onboarding-approved-event"), exports);
141
+ __exportStar(require("./events/ubo-onboarding-failed-event"), exports);
139
142
  __exportStar(require("./types/auth-payload"), exports);
140
143
  __exportStar(require("./types/admin-auth-payload"), exports);
141
144
  __exportStar(require("./types/admin-auth"), exports);
@@ -219,6 +222,7 @@ __exportStar(require("./types/market-data"), exports);
219
222
  __exportStar(require("./types/kyc-file-type"), exports);
220
223
  __exportStar(require("./types/identity-verification-status"), exports);
221
224
  __exportStar(require("./types/UBO-onboarding-status"), exports);
225
+ __exportStar(require("./types/UBO"), exports);
222
226
  __exportStar(require("./classes/Asset"), exports);
223
227
  __exportStar(require("./classes/KYCFieldClass"), exports);
224
228
  __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.1252",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",