@riocrypto/common 1.0.1222 → 1.0.1225

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,4 +1,4 @@
1
- import { KYCFileType } from "../types/KYCFileType";
1
+ import { KYCFileType } from "../types/kyc-file-type";
2
2
  import { CountryOfOrigin } from "../types/country-of-origin";
3
3
  export declare class KYCFileAsset {
4
4
  fileType: KYCFileType;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KYCFileAsset = void 0;
4
- const KYCFileType_1 = require("../types/KYCFileType");
4
+ const kyc_file_type_1 = require("../types/kyc-file-type");
5
5
  const country_of_origin_1 = require("../types/country-of-origin");
6
6
  class KYCFileAsset {
7
7
  constructor(fileType, country) {
@@ -9,13 +9,13 @@ class KYCFileAsset {
9
9
  this.country = country;
10
10
  }
11
11
  getName() {
12
- if (this.fileType === KYCFileType_1.KYCFileType.CertificateOfIncorporation) {
12
+ if (this.fileType === kyc_file_type_1.KYCFileType.CertificateOfIncorporation) {
13
13
  return "Certificate of incorporation";
14
14
  }
15
- else if (this.fileType === KYCFileType_1.KYCFileType.KYCReport) {
15
+ else if (this.fileType === kyc_file_type_1.KYCFileType.KYCReport) {
16
16
  return "Third party KYC report";
17
17
  }
18
- else if (this.fileType === KYCFileType_1.KYCFileType.LegalRepresentativeIdPowerOfAttorney) {
18
+ else if (this.fileType === kyc_file_type_1.KYCFileType.LegalRepresentativeIdPowerOfAttorney) {
19
19
  if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
20
20
  return "Poderes del representante legal";
21
21
  }
@@ -23,7 +23,7 @@ class KYCFileAsset {
23
23
  return "Legal representative power of attorney";
24
24
  }
25
25
  }
26
- else if (this.fileType === KYCFileType_1.KYCFileType.TaxTranscript) {
26
+ else if (this.fileType === kyc_file_type_1.KYCFileType.TaxTranscript) {
27
27
  if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
28
28
  return "Constancia de Situación Fiscal";
29
29
  }
@@ -31,10 +31,10 @@ class KYCFileAsset {
31
31
  return "Tax transcript";
32
32
  }
33
33
  }
34
- else if (this.fileType === KYCFileType_1.KYCFileType.ProofOfAddress) {
34
+ else if (this.fileType === kyc_file_type_1.KYCFileType.ProofOfAddress) {
35
35
  return "Proof of address";
36
36
  }
37
- else if (this.fileType === KYCFileType_1.KYCFileType.PersonalIdentificationCertificate) {
37
+ else if (this.fileType === kyc_file_type_1.KYCFileType.PersonalIdentificationCertificate) {
38
38
  if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
39
39
  return "Constancia CURP";
40
40
  }
@@ -42,7 +42,7 @@ class KYCFileAsset {
42
42
  return "Personal identification certificate";
43
43
  }
44
44
  }
45
- else if (this.fileType === KYCFileType_1.KYCFileType.TaxIdentificationCertificate) {
45
+ else if (this.fileType === kyc_file_type_1.KYCFileType.TaxIdentificationCertificate) {
46
46
  if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
47
47
  return "Cedula de Identificacion Fiscal";
48
48
  }
@@ -50,7 +50,7 @@ class KYCFileAsset {
50
50
  return "Tax identification certificate";
51
51
  }
52
52
  }
53
- else if (this.fileType === KYCFileType_1.KYCFileType.BusinessRegistration) {
53
+ else if (this.fileType === kyc_file_type_1.KYCFileType.BusinessRegistration) {
54
54
  if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
55
55
  return "Registro Publico de Comercio";
56
56
  }
@@ -58,7 +58,7 @@ class KYCFileAsset {
58
58
  return "Business registration";
59
59
  }
60
60
  }
61
- else if (this.fileType === KYCFileType_1.KYCFileType.ExtraFile) {
61
+ else if (this.fileType === kyc_file_type_1.KYCFileType.ExtraFile) {
62
62
  return "Extra file";
63
63
  }
64
64
  }
@@ -36,7 +36,7 @@ import { ChainedOrderInput } from "../types/chained-order-input";
36
36
  import { InternalSwap } from "../types/internal-swap";
37
37
  import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
38
38
  import { CountryOfOrigin } from "../types/country-of-origin";
39
- import { KYCFileType } from "../types/KYCFileType";
39
+ import { KYCFileType } from "../types/kyc-file-type";
40
40
  export declare class RioAdminClient {
41
41
  private axios;
42
42
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -31,7 +31,7 @@ import { ChainedOrder } from "../types/chained-order";
31
31
  import { ChainedOrderQuery } from "../types/chained-order-query";
32
32
  import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
33
33
  import { SecurityQuestion } from "../types/security-question";
34
- import { KYCFileType } from "../types/KYCFileType";
34
+ import { KYCFileType } from "../types/kyc-file-type";
35
35
  import { CountryOfOrigin } from "../types/country-of-origin";
36
36
  export declare class RioClient {
37
37
  private axios;
package/build/index.d.ts CHANGED
@@ -198,7 +198,7 @@ export * from "./types/circle-chain";
198
198
  export * from "./types/circle-payout";
199
199
  export * from "./types/risk-tier";
200
200
  export * from "./types/market-data";
201
- export * from "./types/KYCFileType";
201
+ export * from "./types/kyc-file-type";
202
202
  export * from "./classes/Asset";
203
203
  export * from "./classes/KYCFieldClass";
204
204
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -214,7 +214,7 @@ __exportStar(require("./types/circle-chain"), exports);
214
214
  __exportStar(require("./types/circle-payout"), exports);
215
215
  __exportStar(require("./types/risk-tier"), exports);
216
216
  __exportStar(require("./types/market-data"), exports);
217
- __exportStar(require("./types/KYCFileType"), exports);
217
+ __exportStar(require("./types/kyc-file-type"), exports);
218
218
  __exportStar(require("./classes/Asset"), exports);
219
219
  __exportStar(require("./classes/KYCFieldClass"), exports);
220
220
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -1,36 +1,42 @@
1
- import { Country } from "./country";
2
1
  import { CountryOfOrigin } from "./country-of-origin";
3
- import { Language } from "./language";
2
+ import { KYCStatus } from "./kyc-status";
4
3
  import { PlatformFeeRange } from "./platform-fee-range";
5
4
  import { UserAttribute } from "./user-attribute";
6
5
  import { UserType } from "./user-type";
6
+ declare type IndividualUser = {
7
+ individualData: {
8
+ firstName?: string;
9
+ middleName?: string;
10
+ lastName?: string;
11
+ secondLastName?: string;
12
+ birthday?: Date;
13
+ countryOfOrigin?: CountryOfOrigin;
14
+ };
15
+ };
16
+ declare type BusinessUser = {
17
+ businessData?: {
18
+ businessName?: string;
19
+ legalRepresentative?: {
20
+ name?: string;
21
+ email?: string;
22
+ status?: string;
23
+ };
24
+ UBO?: {
25
+ name: string;
26
+ email?: string;
27
+ id?: string;
28
+ status?: string;
29
+ };
30
+ };
31
+ };
7
32
  export declare type UserInput = {
8
- firstName?: string;
9
- middleName?: string;
10
- lastName?: string;
11
- secondLastName?: string;
12
- birthday?: Date;
13
- KYCReportFile?: string;
14
- CSFFile?: string;
15
- proofOfAddressFile?: string;
16
- companyName?: string;
17
- legalRepresentative?: string;
18
- COIFile?: string;
33
+ authIds?: string[];
34
+ brokerId?: string;
19
35
  type: UserType;
36
+ phoneNumber: string;
20
37
  email: string;
21
- language: Language;
22
- phoneNumber?: string;
23
- street1: string;
24
- street2?: string;
25
- city: string;
26
- state: string;
27
- country: CountryOfOrigin;
28
- postalCode: string;
29
- CPF?: string;
30
- CURP?: string;
31
- RUC?: string;
32
- countriesToInvoice?: Country[];
33
- economicActivity?: string;
38
+ cosignerGroupId?: string;
39
+ attributes?: UserAttribute[];
34
40
  platformFeeRanges?: {
35
41
  MX?: {
36
42
  buy?: PlatformFeeRange[];
@@ -53,13 +59,38 @@ export declare type UserInput = {
53
59
  sell?: PlatformFeeRange[];
54
60
  };
55
61
  };
56
- attributes?: UserAttribute[];
57
- brokerId?: string;
58
- authorizedPhoneNumbers?: string[];
59
- notificationUrl?: string;
60
- RFC?: string;
61
- mexicoFiscalRegimenCode?: number;
62
- mexicoFiscalName?: string;
63
- taxId?: string;
64
- usKYCStatus?: "none" | "pending" | "failed" | "approved";
65
- };
62
+ KYC?: {
63
+ [country in CountryOfOrigin]?: {
64
+ status?: KYCStatus;
65
+ personalId?: string;
66
+ taxId?: string;
67
+ files?: {
68
+ certificateOfIncorporation?: string;
69
+ KYCReport?: string;
70
+ taxTranscript?: string;
71
+ proofOfAddress?: string;
72
+ businessRegistration?: string;
73
+ taxIdentificationCertificate?: string;
74
+ legalRepresentativeIdPowerOfAttorney?: string;
75
+ personalIdentificationCertificate?: string;
76
+ extraFiles?: string[];
77
+ };
78
+ };
79
+ };
80
+ address: {
81
+ street1: string;
82
+ street2?: string;
83
+ city: string;
84
+ state: string;
85
+ postalCode: string;
86
+ country: CountryOfOrigin;
87
+ };
88
+ invoicing?: {
89
+ MX?: {
90
+ shouldInvoice?: boolean;
91
+ fiscalName?: string;
92
+ fiscalRegimenCode?: number;
93
+ };
94
+ };
95
+ } & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
96
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1222",
3
+ "version": "1.0.1225",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",