@riocrypto/common 1.0.2092 → 1.0.2093

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,8 +1,7 @@
1
+ import { Country } from "../types/country";
1
2
  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";
6
5
  import { UserAttribute } from "../types/user-attribute";
7
6
  import { Subjects } from "./subjects";
8
7
  export interface UserUpdatedEvent {
@@ -13,8 +12,6 @@ export interface UserUpdatedEvent {
13
12
  brokerId?: string;
14
13
  phoneNumber?: string;
15
14
  email?: string;
16
- risk?: RiskTier;
17
- hasPassedEDD?: boolean;
18
15
  cosignerGroupId?: string;
19
16
  attributes?: UserAttribute[];
20
17
  authorizedPhoneNumbers?: string[];
@@ -32,53 +29,26 @@ export interface UserUpdatedEvent {
32
29
  buy?: PlatformFeeRange[];
33
30
  sell?: PlatformFeeRange[];
34
31
  };
35
- BR?: {
36
- buy?: PlatformFeeRange[];
37
- sell?: PlatformFeeRange[];
38
- };
39
- US?: {
40
- buy?: PlatformFeeRange[];
41
- sell?: PlatformFeeRange[];
42
- };
43
32
  };
44
33
  onboarding?: {
45
- [country in CountryOfOrigin]?: {
46
- status?: OnboardingStatus;
47
- personalId?: string;
48
- taxId?: string;
49
- immigrationStatus?: ImmigrationStatus;
50
- hasAcceptedTerms?: boolean;
51
- individualIdentityVerification?: {
52
- status?: "passed" | "failed" | "review";
53
- };
54
- legalRepresentative?: {
55
- firstName?: string;
56
- middleName?: string;
57
- lastName?: string;
58
- secondLastName?: string;
59
- verificationStatus?: "passed" | "failed" | "review";
60
- email?: string;
61
- };
62
- files?: {
63
- certificateOfIncorporation?: string;
64
- KYCReport?: string;
65
- taxTranscript?: string;
66
- proofOfAddress?: string;
67
- businessRegistration?: string;
68
- taxIdentificationCertificate?: string;
69
- legalRepresentativeIdPowerOfAttorney?: string;
70
- personalIdentificationCertificate?: string;
71
- extraFiles?: string[];
72
- };
73
- address?: {
74
- street1?: string;
75
- street2?: string;
76
- city?: string;
77
- state?: string;
78
- postalCode?: string;
79
- country?: CountryOfOrigin;
80
- };
81
- };
34
+ country?: Country;
35
+ aipriseBusinessProfileId?: string;
36
+ aipriseUserProfileId?: string;
37
+ aipriseBusinessVerificationSessionUrl?: string;
38
+ aipriseUserVerificationSessionUrl?: string;
39
+ aipriseUserVerificationSessionId?: string;
40
+ bridgeCustomerId?: string;
41
+ bridgeKYCLinkId?: string;
42
+ status?: OnboardingStatus;
43
+ hasAcceptedTerms?: boolean;
44
+ };
45
+ address: {
46
+ street1?: string;
47
+ street2?: string;
48
+ city?: string;
49
+ state?: string;
50
+ postalCode?: string;
51
+ country?: CountryOfOrigin;
82
52
  };
83
53
  invoicing?: {
84
54
  MX?: {
package/build/index.d.ts CHANGED
@@ -270,15 +270,10 @@ export * from "./types/webhook-type";
270
270
  export * from "./types/bitso-mxn-withdrawal";
271
271
  export * from "./types/circle-chain";
272
272
  export * from "./types/circle-payout";
273
- export * from "./types/risk-tier";
274
273
  export * from "./types/market-data";
275
274
  export * from "./types/kyc-file-type";
276
275
  export * from "./types/kyc-file-index";
277
276
  export * from "./types/identity-verification-status";
278
- export * from "./types/UBO-onboarding-status";
279
- export * from "./types/UBO";
280
- export * from "./types/UBO-input";
281
- export * from "./types/UBO-update";
282
277
  export * from "./types/immigration-status";
283
278
  export * from "./types/bid";
284
279
  export * from "./types/bid-status";
package/build/index.js CHANGED
@@ -286,15 +286,10 @@ __exportStar(require("./types/webhook-type"), exports);
286
286
  __exportStar(require("./types/bitso-mxn-withdrawal"), exports);
287
287
  __exportStar(require("./types/circle-chain"), exports);
288
288
  __exportStar(require("./types/circle-payout"), exports);
289
- __exportStar(require("./types/risk-tier"), exports);
290
289
  __exportStar(require("./types/market-data"), exports);
291
290
  __exportStar(require("./types/kyc-file-type"), exports);
292
291
  __exportStar(require("./types/kyc-file-index"), exports);
293
292
  __exportStar(require("./types/identity-verification-status"), exports);
294
- __exportStar(require("./types/UBO-onboarding-status"), exports);
295
- __exportStar(require("./types/UBO"), exports);
296
- __exportStar(require("./types/UBO-input"), exports);
297
- __exportStar(require("./types/UBO-update"), exports);
298
293
  __exportStar(require("./types/immigration-status"), exports);
299
294
  __exportStar(require("./types/bid"), exports);
300
295
  __exportStar(require("./types/bid-status"), exports);
@@ -1,10 +1,8 @@
1
- import { RiskTier } from "./risk-tier";
2
1
  import { CountryOfOrigin } from "./country-of-origin";
3
2
  import { OnboardingStatus } from "./onboarding-status";
4
3
  import { PlatformFeeRange } from "./platform-fee-range";
5
4
  import { UserAttribute } from "./user-attribute";
6
5
  import { UserType } from "./user-type";
7
- import { ImmigrationStatus } from "./immigration-status";
8
6
  import { Country } from "./country";
9
7
  import { Fiat } from "./fiat";
10
8
  import { Crypto } from "./crypto";
@@ -20,10 +18,6 @@ declare type IndividualUser = {
20
18
  declare type BusinessUser = {
21
19
  businessData?: {
22
20
  businessName?: string;
23
- UBO?: {
24
- id?: string;
25
- email?: string;
26
- };
27
21
  };
28
22
  };
29
23
  export declare type UserUpdate = {
@@ -34,11 +28,8 @@ export declare type UserUpdate = {
34
28
  type?: UserType;
35
29
  phoneNumber?: string;
36
30
  email?: string;
37
- risk?: RiskTier;
38
- hasPassedEDD?: boolean;
39
31
  cosignerGroupId?: string;
40
32
  attributes?: UserAttribute[];
41
- authorizedPhoneNumbers?: string[];
42
33
  platformFeeRanges?: {
43
34
  MX?: {
44
35
  buy?: PlatformFeeRange[];
@@ -52,53 +43,26 @@ export declare type UserUpdate = {
52
43
  buy?: PlatformFeeRange[];
53
44
  sell?: PlatformFeeRange[];
54
45
  };
55
- BR?: {
56
- buy?: PlatformFeeRange[];
57
- sell?: PlatformFeeRange[];
58
- };
59
- US?: {
60
- buy?: PlatformFeeRange[];
61
- sell?: PlatformFeeRange[];
62
- };
63
46
  };
64
47
  onboarding?: {
65
- [country in CountryOfOrigin]?: {
66
- status?: OnboardingStatus;
67
- personalId?: string;
68
- taxId?: string;
69
- hasAcceptedTerms?: boolean;
70
- immigrationStatus?: ImmigrationStatus;
71
- individualIdentityVerification?: {
72
- status?: "passed" | "failed" | "review";
73
- };
74
- files?: {
75
- certificateOfIncorporation?: string;
76
- KYCReport?: string;
77
- taxTranscript?: string;
78
- proofOfAddress?: string;
79
- businessRegistration?: string;
80
- taxIdentificationCertificate?: string;
81
- legalRepresentativeIdPowerOfAttorney?: string;
82
- personalIdentificationCertificate?: string;
83
- extraFiles?: string[];
84
- };
85
- legalRepresentative?: {
86
- firstName?: string;
87
- middleName?: string;
88
- lastName?: string;
89
- secondLastName?: string;
90
- verificationStatus?: "passed" | "failed" | "review";
91
- email?: string;
92
- };
93
- address?: {
94
- street1?: string;
95
- street2?: string;
96
- city?: string;
97
- state?: string;
98
- postalCode?: string;
99
- country?: CountryOfOrigin;
100
- };
101
- };
48
+ country?: Country;
49
+ aipriseBusinessProfileId?: string;
50
+ aipriseUserProfileId?: string;
51
+ aipriseBusinessVerificationSessionUrl?: string;
52
+ aipriseUserVerificationSessionUrl?: string;
53
+ aipriseUserVerificationSessionId?: string;
54
+ bridgeCustomerId?: string;
55
+ bridgeKYCLinkId?: string;
56
+ status?: OnboardingStatus;
57
+ hasAcceptedTerms?: boolean;
58
+ };
59
+ address?: {
60
+ street1?: string;
61
+ street2?: string;
62
+ city?: string;
63
+ state?: string;
64
+ postalCode?: string;
65
+ country?: CountryOfOrigin;
102
66
  };
103
67
  invoicing?: {
104
68
  MX?: {
@@ -125,10 +89,5 @@ export declare type UserUpdate = {
125
89
  overrideOvernightAndWeekendVault: boolean;
126
90
  };
127
91
  };
128
- preSettlementAmount?: {
129
- [country in Country]?: {
130
- [currency in Fiat | Crypto]?: number;
131
- };
132
- };
133
92
  } & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
134
93
  export {};
@@ -1,4 +1,3 @@
1
- import { RiskTier } from "./risk-tier";
2
1
  import { CountryOfOrigin } from "./country-of-origin";
3
2
  import { OnboardingStatus } from "./onboarding-status";
4
3
  import { PlatformFeeRange } from "./platform-fee-range";
@@ -21,10 +20,6 @@ declare type IndividualUser = {
21
20
  declare type BusinessUser = {
22
21
  businessData?: {
23
22
  businessName: string;
24
- UBO?: {
25
- id?: string;
26
- email?: string;
27
- };
28
23
  };
29
24
  };
30
25
  export declare type User = {
@@ -35,11 +30,8 @@ export declare type User = {
35
30
  type: UserType;
36
31
  phoneNumber?: string;
37
32
  email: string;
38
- risk: RiskTier;
39
- hasPassedEDD: boolean;
40
33
  cosignerGroupId?: string;
41
34
  attributes?: UserAttribute[];
42
- authorizedPhoneNumbers?: string[];
43
35
  platformFeeRanges?: {
44
36
  MX?: {
45
37
  buy?: PlatformFeeRange[];
@@ -53,14 +45,6 @@ export declare type User = {
53
45
  buy?: PlatformFeeRange[];
54
46
  sell?: PlatformFeeRange[];
55
47
  };
56
- BR?: {
57
- buy?: PlatformFeeRange[];
58
- sell?: PlatformFeeRange[];
59
- };
60
- US?: {
61
- buy?: PlatformFeeRange[];
62
- sell?: PlatformFeeRange[];
63
- };
64
48
  };
65
49
  onboarding: {
66
50
  country: Country;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2092",
3
+ "version": "1.0.2093",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,47 +0,0 @@
1
- import { CountryOfOrigin } from "./country-of-origin";
2
- import { ImmigrationStatus } from "./immigration-status";
3
- import { OnboardingStatus } from "./onboarding-status";
4
- export declare type UBOInput = {
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
- immigrationStatus?: ImmigrationStatus;
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
- address?: {
38
- street1?: string;
39
- street2?: string;
40
- city?: string;
41
- state?: string;
42
- postalCode?: string;
43
- country: CountryOfOrigin;
44
- };
45
- };
46
- };
47
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export declare enum UBOOnboardingStatus {
2
- Approved = "approved",
3
- Failed = "failed",
4
- Review = "review"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UBOOnboardingStatus = void 0;
4
- var UBOOnboardingStatus;
5
- (function (UBOOnboardingStatus) {
6
- UBOOnboardingStatus["Approved"] = "approved";
7
- UBOOnboardingStatus["Failed"] = "failed";
8
- UBOOnboardingStatus["Review"] = "review";
9
- })(UBOOnboardingStatus = exports.UBOOnboardingStatus || (exports.UBOOnboardingStatus = {}));
@@ -1,47 +0,0 @@
1
- import { CountryOfOrigin } from "./country-of-origin";
2
- import { ImmigrationStatus } from "./immigration-status";
3
- import { OnboardingStatus } from "./onboarding-status";
4
- export declare type UBOUpdate = {
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
- immigrationStatus?: ImmigrationStatus;
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
- address?: {
38
- street1?: string;
39
- street2?: string;
40
- city?: string;
41
- state?: string;
42
- postalCode?: string;
43
- country: CountryOfOrigin;
44
- };
45
- };
46
- };
47
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,49 +0,0 @@
1
- import { CountryOfOrigin } from "./country-of-origin";
2
- import { ImmigrationStatus } from "./immigration-status";
3
- import { OnboardingStatus } from "./onboarding-status";
4
- export declare type UBO = {
5
- id: string;
6
- createdAt: Date;
7
- individualData?: {
8
- firstName: string;
9
- middleName?: string;
10
- lastName: string;
11
- secondLastName?: string;
12
- birthday: Date;
13
- countryOfOrigin: CountryOfOrigin;
14
- };
15
- phoneNumber: string;
16
- email: string;
17
- birthday?: Date;
18
- associatedUserId?: string;
19
- onboarding?: {
20
- [country in CountryOfOrigin]?: {
21
- status?: OnboardingStatus;
22
- personalId?: string;
23
- taxId?: string;
24
- immigrationStatus?: ImmigrationStatus;
25
- individualIdentityVerification?: {
26
- status?: "passed" | "failed" | "review";
27
- };
28
- files?: {
29
- certificateOfIncorporation?: string;
30
- KYCReport?: string;
31
- taxTranscript?: string;
32
- proofOfAddress?: string;
33
- businessRegistration?: string;
34
- taxIdentificationCertificate?: string;
35
- legalRepresentativeIdPowerOfAttorney?: string;
36
- personalIdentificationCertificate?: string;
37
- extraFiles?: string[];
38
- };
39
- address?: {
40
- street1?: string;
41
- street2?: string;
42
- city?: string;
43
- state?: string;
44
- postalCode?: string;
45
- country: CountryOfOrigin;
46
- };
47
- };
48
- };
49
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export declare enum RiskTier {
2
- High = "high",
3
- Medium = "medium",
4
- Low = "low"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RiskTier = void 0;
4
- var RiskTier;
5
- (function (RiskTier) {
6
- RiskTier["High"] = "high";
7
- RiskTier["Medium"] = "medium";
8
- RiskTier["Low"] = "low";
9
- })(RiskTier = exports.RiskTier || (exports.RiskTier = {}));