@riocrypto/common 1.0.1362 → 1.0.1364

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,90 @@
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
11
  id: string;
12
12
  authIds?: string[];
13
- type?: UserType;
13
+ brokerId?: string;
14
+ phoneNumber?: string;
14
15
  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
- };
16
+ risk?: RiskTier;
17
+ hasPassedEDD?: boolean;
18
+ cosignerGroupId?: string;
32
19
  attributes?: UserAttribute[];
33
- brokerId?: string;
34
20
  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;
21
+ platformFeeRanges?: {
22
+ MX?: {
23
+ buy?: PlatformFeeRange[];
24
+ sell?: PlatformFeeRange[];
25
+ };
26
+ PE?: {
27
+ buy?: PlatformFeeRange[];
28
+ sell?: PlatformFeeRange[];
29
+ };
30
+ CO?: {
31
+ buy?: PlatformFeeRange[];
32
+ sell?: PlatformFeeRange[];
33
+ };
34
+ BR?: {
35
+ buy?: PlatformFeeRange[];
36
+ sell?: PlatformFeeRange[];
37
+ };
38
+ US?: {
39
+ buy?: PlatformFeeRange[];
40
+ sell?: PlatformFeeRange[];
41
+ };
42
+ };
43
+ onboarding?: {
44
+ [country in CountryOfOrigin]?: {
45
+ status?: OnboardingStatus;
46
+ personalId?: string;
47
+ taxId?: string;
48
+ immigrationStatus?: ImmigrationStatus;
49
+ hasAcceptedTerms?: boolean;
50
+ individualIdentityVerification?: {
51
+ status?: "passed" | "failed" | "review";
52
+ };
53
+ legalRepresentative?: {
54
+ firstName?: string;
55
+ middleName?: string;
56
+ lastName?: string;
57
+ secondLastName?: string;
58
+ verificationStatus?: "passed" | "failed" | "review";
59
+ email?: string;
60
+ };
61
+ files?: {
62
+ certificateOfIncorporation?: string;
63
+ KYCReport?: string;
64
+ taxTranscript?: string;
65
+ proofOfAddress?: string;
66
+ businessRegistration?: string;
67
+ taxIdentificationCertificate?: string;
68
+ legalRepresentativeIdPowerOfAttorney?: string;
69
+ personalIdentificationCertificate?: string;
70
+ extraFiles?: string[];
71
+ };
72
+ address?: {
73
+ street1?: string;
74
+ street2?: string;
75
+ city?: string;
76
+ state?: string;
77
+ postalCode?: string;
78
+ country?: CountryOfOrigin;
79
+ };
80
+ };
81
+ };
82
+ invoicing?: {
83
+ MX?: {
84
+ shouldInvoice?: boolean;
85
+ fiscalName?: string;
86
+ fiscalRegimenCode?: number;
87
+ };
88
+ };
55
89
  };
56
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1362",
3
+ "version": "1.0.1364",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",