@riocrypto/common 1.0.1362 → 1.0.1363

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.
@@ -1,24 +1,7 @@
1
- import { OnboardingStatus } from "../types/onboarding-status";
2
- import { USState } from "../types/us-state";
3
- import { UserAttribute } from "../types/user-attribute";
4
1
  import { Subjects } from "./subjects";
5
2
  export interface UserCreatedEvent {
6
3
  subject: Subjects.UserCreated;
7
4
  data: {
8
5
  id: string;
9
- firstName: string;
10
- lastName: string;
11
- phoneNumber: string;
12
- birthday: Date;
13
- email: string;
14
- street1: string;
15
- street2: string;
16
- city: string;
17
- state: USState | string;
18
- country: string;
19
- postalCode: string;
20
- kycStatus: OnboardingStatus;
21
- language?: string;
22
- attributes?: UserAttribute[];
23
6
  };
24
7
  }
@@ -1,56 +1,89 @@
1
- import { Country } from "../types/country";
2
1
  import { CountryOfOrigin } from "../types/country-of-origin";
2
+ import { ImmigrationStatus } from "../types/immigration-status";
3
3
  import { OnboardingStatus } from "../types/onboarding-status";
4
4
  import { PlatformFeeRange } from "../types/platform-fee-range";
5
+ import { RiskTier } from "../types/risk-tier";
5
6
  import { UserAttribute } from "../types/user-attribute";
6
- import { UserType } from "../types/user-type";
7
7
  import { Subjects } from "./subjects";
8
8
  export interface UserUpdatedEvent {
9
9
  subject: Subjects.UserUpdated;
10
10
  data: {
11
- id: string;
12
11
  authIds?: string[];
13
- type?: UserType;
12
+ brokerId?: string;
13
+ phoneNumber?: string;
14
14
  email?: string;
15
- street1?: string;
16
- street2?: string;
17
- city?: string;
18
- state?: string;
19
- country?: CountryOfOrigin;
20
- postalCode?: string;
21
- kycStatus?: OnboardingStatus;
22
- CPF?: string;
23
- CURP?: string;
24
- economicActivity?: string;
25
- platformFeeRanges?: {
26
- MX?: PlatformFeeRange[];
27
- PE?: PlatformFeeRange[];
28
- CO?: PlatformFeeRange[];
29
- BR?: PlatformFeeRange[];
30
- US?: PlatformFeeRange[];
31
- };
15
+ risk?: RiskTier;
16
+ hasPassedEDD?: boolean;
17
+ cosignerGroupId?: string;
32
18
  attributes?: UserAttribute[];
33
- brokerId?: string;
34
19
  authorizedPhoneNumbers?: string[];
35
- notificationUrl?: string;
36
- KYCReportFile?: string;
37
- CSFFile?: string;
38
- proofOfAddressFile?: string;
39
- RFC?: string;
40
- RUC?: string;
41
- mexicoFiscalRegimenCode?: number;
42
- mexicoFiscalName?: string;
43
- countriesToInvoice?: Country[];
44
- taxId?: string;
45
- usKYCStatus?: "none" | "pending" | "failed" | "approved";
46
- firstName?: string;
47
- middleName?: string;
48
- lastName?: string;
49
- secondLastName?: string;
50
- phoneNumber?: string;
51
- birthday?: Date;
52
- companyName?: string;
53
- legalRepresentative?: string;
54
- COIFile?: string;
20
+ platformFeeRanges?: {
21
+ MX?: {
22
+ buy?: PlatformFeeRange[];
23
+ sell?: PlatformFeeRange[];
24
+ };
25
+ PE?: {
26
+ buy?: PlatformFeeRange[];
27
+ sell?: PlatformFeeRange[];
28
+ };
29
+ CO?: {
30
+ buy?: PlatformFeeRange[];
31
+ sell?: PlatformFeeRange[];
32
+ };
33
+ BR?: {
34
+ buy?: PlatformFeeRange[];
35
+ sell?: PlatformFeeRange[];
36
+ };
37
+ US?: {
38
+ buy?: PlatformFeeRange[];
39
+ sell?: PlatformFeeRange[];
40
+ };
41
+ };
42
+ onboarding?: {
43
+ [country in CountryOfOrigin]?: {
44
+ status?: OnboardingStatus;
45
+ personalId?: string;
46
+ taxId?: string;
47
+ immigrationStatus?: ImmigrationStatus;
48
+ hasAcceptedTerms?: boolean;
49
+ individualIdentityVerification?: {
50
+ status?: "passed" | "failed" | "review";
51
+ };
52
+ legalRepresentative?: {
53
+ firstName?: string;
54
+ middleName?: string;
55
+ lastName?: string;
56
+ secondLastName?: string;
57
+ verificationStatus?: "passed" | "failed" | "review";
58
+ email?: string;
59
+ };
60
+ files?: {
61
+ certificateOfIncorporation?: string;
62
+ KYCReport?: string;
63
+ taxTranscript?: string;
64
+ proofOfAddress?: string;
65
+ businessRegistration?: string;
66
+ taxIdentificationCertificate?: string;
67
+ legalRepresentativeIdPowerOfAttorney?: string;
68
+ personalIdentificationCertificate?: string;
69
+ extraFiles?: string[];
70
+ };
71
+ address?: {
72
+ street1?: string;
73
+ street2?: string;
74
+ city?: string;
75
+ state?: string;
76
+ postalCode?: string;
77
+ country?: CountryOfOrigin;
78
+ };
79
+ };
80
+ };
81
+ invoicing?: {
82
+ MX?: {
83
+ shouldInvoice?: boolean;
84
+ fiscalName?: string;
85
+ fiscalRegimenCode?: number;
86
+ };
87
+ };
55
88
  };
56
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1362",
3
+ "version": "1.0.1363",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",