@riocrypto/common 1.0.2093 → 1.0.2099
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.
- package/build/index.d.ts +0 -4
- package/build/index.js +0 -4
- package/build/types/import-order-input.d.ts +0 -2
- package/build/types/order.d.ts +0 -4
- package/build/types/user-input.d.ts +18 -42
- package/build/types/user-update.d.ts +8 -0
- package/build/types/user.d.ts +8 -0
- package/package.json +1 -1
- package/build/classes/PartnerClass.d.ts +0 -6
- package/build/classes/PartnerClass.js +0 -17
- package/build/types/bridge-customer.d.ts +0 -7
- package/build/types/bridge-customer.js +0 -2
- package/build/types/order-substatus.d.ts +0 -4
- package/build/types/order-substatus.js +0 -8
- package/build/types/partner.d.ts +0 -3
- package/build/types/partner.js +0 -7
package/build/index.d.ts
CHANGED
|
@@ -247,14 +247,12 @@ export * from "./types/crypto-address-query";
|
|
|
247
247
|
export * from "./types/bank-account-query";
|
|
248
248
|
export * from "./types/mexico-fiscal-regimen";
|
|
249
249
|
export * from "./types/mexico-fiscal-regimen-code";
|
|
250
|
-
export * from "./types/bridge-customer";
|
|
251
250
|
export * from "./types/bridge-transfer";
|
|
252
251
|
export * from "./types/bridge-external-account";
|
|
253
252
|
export * from "./types/bridge-liquidation-address";
|
|
254
253
|
export * from "./types/admin-task-type";
|
|
255
254
|
export * from "./types/admin-task-status";
|
|
256
255
|
export * from "./types/admin-task";
|
|
257
|
-
export * from "./types/partner";
|
|
258
256
|
export * from "./types/import-order-input";
|
|
259
257
|
export * from "./types/master-order-record";
|
|
260
258
|
export * from "./types/invoice";
|
|
@@ -263,7 +261,6 @@ export * from "./types/webhook-registration";
|
|
|
263
261
|
export * from "./types/chained-quote";
|
|
264
262
|
export * from "./types/bitso-bank-account";
|
|
265
263
|
export * from "./types/bitso-receiving-account";
|
|
266
|
-
export * from "./types/order-substatus";
|
|
267
264
|
export * from "./types/chained-order-query";
|
|
268
265
|
export * from "./types/internal-swap";
|
|
269
266
|
export * from "./types/webhook-type";
|
|
@@ -376,7 +373,6 @@ export * from "./classes/SecurityQuestionClass";
|
|
|
376
373
|
export * from "./classes/AdminTaskTypeClass";
|
|
377
374
|
export * from "./classes/ProcessorClass";
|
|
378
375
|
export * from "./classes/LiquidityProviderClass";
|
|
379
|
-
export * from "./classes/PartnerClass";
|
|
380
376
|
export * from "./classes/ImmigrationStatusClass";
|
|
381
377
|
export * from "./helpers/validate-address";
|
|
382
378
|
export * from "./helpers/humanize-order-status";
|
package/build/index.js
CHANGED
|
@@ -263,14 +263,12 @@ __exportStar(require("./types/crypto-address-query"), exports);
|
|
|
263
263
|
__exportStar(require("./types/bank-account-query"), exports);
|
|
264
264
|
__exportStar(require("./types/mexico-fiscal-regimen"), exports);
|
|
265
265
|
__exportStar(require("./types/mexico-fiscal-regimen-code"), exports);
|
|
266
|
-
__exportStar(require("./types/bridge-customer"), exports);
|
|
267
266
|
__exportStar(require("./types/bridge-transfer"), exports);
|
|
268
267
|
__exportStar(require("./types/bridge-external-account"), exports);
|
|
269
268
|
__exportStar(require("./types/bridge-liquidation-address"), exports);
|
|
270
269
|
__exportStar(require("./types/admin-task-type"), exports);
|
|
271
270
|
__exportStar(require("./types/admin-task-status"), exports);
|
|
272
271
|
__exportStar(require("./types/admin-task"), exports);
|
|
273
|
-
__exportStar(require("./types/partner"), exports);
|
|
274
272
|
__exportStar(require("./types/import-order-input"), exports);
|
|
275
273
|
__exportStar(require("./types/master-order-record"), exports);
|
|
276
274
|
__exportStar(require("./types/invoice"), exports);
|
|
@@ -279,7 +277,6 @@ __exportStar(require("./types/webhook-registration"), exports);
|
|
|
279
277
|
__exportStar(require("./types/chained-quote"), exports);
|
|
280
278
|
__exportStar(require("./types/bitso-bank-account"), exports);
|
|
281
279
|
__exportStar(require("./types/bitso-receiving-account"), exports);
|
|
282
|
-
__exportStar(require("./types/order-substatus"), exports);
|
|
283
280
|
__exportStar(require("./types/chained-order-query"), exports);
|
|
284
281
|
__exportStar(require("./types/internal-swap"), exports);
|
|
285
282
|
__exportStar(require("./types/webhook-type"), exports);
|
|
@@ -392,7 +389,6 @@ __exportStar(require("./classes/SecurityQuestionClass"), exports);
|
|
|
392
389
|
__exportStar(require("./classes/AdminTaskTypeClass"), exports);
|
|
393
390
|
__exportStar(require("./classes/ProcessorClass"), exports);
|
|
394
391
|
__exportStar(require("./classes/LiquidityProviderClass"), exports);
|
|
395
|
-
__exportStar(require("./classes/PartnerClass"), exports);
|
|
396
392
|
__exportStar(require("./classes/ImmigrationStatusClass"), exports);
|
|
397
393
|
__exportStar(require("./helpers/validate-address"), exports);
|
|
398
394
|
__exportStar(require("./helpers/humanize-order-status"), exports);
|
|
@@ -6,7 +6,6 @@ import { PayoutMethod } from "./payout-method";
|
|
|
6
6
|
import { Processor } from "./processor";
|
|
7
7
|
import { Side } from "./side";
|
|
8
8
|
import { Crypto } from "./crypto";
|
|
9
|
-
import { Partner } from "./partner";
|
|
10
9
|
export interface ImportOrderInput {
|
|
11
10
|
quoteId?: string;
|
|
12
11
|
userId: string;
|
|
@@ -36,7 +35,6 @@ export interface ImportOrderInput {
|
|
|
36
35
|
transferFeeFiat?: number;
|
|
37
36
|
platformFeeFiat?: number;
|
|
38
37
|
platformFeeFiatTax?: number;
|
|
39
|
-
partner?: Partner;
|
|
40
38
|
noRecords?: Boolean;
|
|
41
39
|
createdAt?: Date;
|
|
42
40
|
}
|
package/build/types/order.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ import { Processor } from "./processor";
|
|
|
8
8
|
import { Side } from "./side";
|
|
9
9
|
import { Fees } from "./fees";
|
|
10
10
|
import { PayoutMethod } from "./payout-method";
|
|
11
|
-
import { Partner } from "./partner";
|
|
12
|
-
import { OrderSubstatus } from "./order-substatus";
|
|
13
11
|
import { OrderAttribute } from "./order-attribute";
|
|
14
12
|
import { SettlementTime } from "./settlement-time";
|
|
15
13
|
export interface Order {
|
|
@@ -23,7 +21,6 @@ export interface Order {
|
|
|
23
21
|
payoutMethod?: PayoutMethod;
|
|
24
22
|
createdAt: Date;
|
|
25
23
|
status: OrderStatus;
|
|
26
|
-
substatus?: OrderSubstatus;
|
|
27
24
|
cryptoAddress?: string;
|
|
28
25
|
country: Country;
|
|
29
26
|
state?: string;
|
|
@@ -50,7 +47,6 @@ export interface Order {
|
|
|
50
47
|
wireMessage?: string;
|
|
51
48
|
expiredQuotes?: string[];
|
|
52
49
|
externalAccountId?: string;
|
|
53
|
-
partner?: Partner;
|
|
54
50
|
imported?: boolean;
|
|
55
51
|
managedWallet?: boolean;
|
|
56
52
|
USBankTransferMethod?: "wire" | "ach_push";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Country } from "./country";
|
|
2
2
|
import { CountryOfOrigin } from "./country-of-origin";
|
|
3
3
|
import { Fiat } from "./fiat";
|
|
4
|
-
import { ImmigrationStatus } from "./immigration-status";
|
|
5
4
|
import { OnboardingStatus } from "./onboarding-status";
|
|
6
5
|
import { PlatformFeeRange } from "./platform-fee-range";
|
|
7
6
|
import { UserAttribute } from "./user-attribute";
|
|
@@ -13,16 +12,11 @@ declare type IndividualUser = {
|
|
|
13
12
|
lastName?: string;
|
|
14
13
|
secondLastName?: string;
|
|
15
14
|
birthday?: Date;
|
|
16
|
-
countryOfOrigin?: CountryOfOrigin;
|
|
17
15
|
};
|
|
18
16
|
};
|
|
19
17
|
declare type BusinessUser = {
|
|
20
18
|
businessData?: {
|
|
21
19
|
businessName?: string;
|
|
22
|
-
UBO?: {
|
|
23
|
-
id?: string;
|
|
24
|
-
email?: string;
|
|
25
|
-
};
|
|
26
20
|
};
|
|
27
21
|
};
|
|
28
22
|
export declare type UserInput = {
|
|
@@ -57,42 +51,24 @@ export declare type UserInput = {
|
|
|
57
51
|
};
|
|
58
52
|
};
|
|
59
53
|
onboarding?: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
KYCReport?: string;
|
|
79
|
-
taxTranscript?: string;
|
|
80
|
-
proofOfAddress?: string;
|
|
81
|
-
businessRegistration?: string;
|
|
82
|
-
taxIdentificationCertificate?: string;
|
|
83
|
-
legalRepresentativeIdPowerOfAttorney?: string;
|
|
84
|
-
personalIdentificationCertificate?: string;
|
|
85
|
-
extraFiles?: string[];
|
|
86
|
-
};
|
|
87
|
-
address?: {
|
|
88
|
-
street1?: string;
|
|
89
|
-
street2?: string;
|
|
90
|
-
city?: string;
|
|
91
|
-
state?: string;
|
|
92
|
-
postalCode?: string;
|
|
93
|
-
country?: CountryOfOrigin;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
54
|
+
country?: Country;
|
|
55
|
+
aipriseBusinessProfileId?: string;
|
|
56
|
+
aipriseUserProfileId?: string;
|
|
57
|
+
aipriseBusinessVerificationSessionUrl?: string;
|
|
58
|
+
aipriseUserVerificationSessionUrl?: string;
|
|
59
|
+
aipriseUserVerificationSessionId?: string;
|
|
60
|
+
bridgeCustomerId?: string;
|
|
61
|
+
bridgeKYCLinkId?: string;
|
|
62
|
+
status?: OnboardingStatus;
|
|
63
|
+
hasAcceptedTerms?: boolean;
|
|
64
|
+
};
|
|
65
|
+
address?: {
|
|
66
|
+
street1?: string;
|
|
67
|
+
street2?: string;
|
|
68
|
+
city?: string;
|
|
69
|
+
state?: string;
|
|
70
|
+
postalCode?: string;
|
|
71
|
+
country?: CountryOfOrigin;
|
|
96
72
|
};
|
|
97
73
|
invoicing?: {
|
|
98
74
|
MX?: {
|
|
@@ -43,6 +43,14 @@ export declare type UserUpdate = {
|
|
|
43
43
|
buy?: PlatformFeeRange[];
|
|
44
44
|
sell?: PlatformFeeRange[];
|
|
45
45
|
};
|
|
46
|
+
BR?: {
|
|
47
|
+
buy?: PlatformFeeRange[];
|
|
48
|
+
sell?: PlatformFeeRange[];
|
|
49
|
+
};
|
|
50
|
+
US?: {
|
|
51
|
+
buy?: PlatformFeeRange[];
|
|
52
|
+
sell?: PlatformFeeRange[];
|
|
53
|
+
};
|
|
46
54
|
};
|
|
47
55
|
onboarding?: {
|
|
48
56
|
country?: Country;
|
package/build/types/user.d.ts
CHANGED
|
@@ -45,6 +45,14 @@ export declare type User = {
|
|
|
45
45
|
buy?: PlatformFeeRange[];
|
|
46
46
|
sell?: PlatformFeeRange[];
|
|
47
47
|
};
|
|
48
|
+
BR?: {
|
|
49
|
+
buy?: PlatformFeeRange[];
|
|
50
|
+
sell?: PlatformFeeRange[];
|
|
51
|
+
};
|
|
52
|
+
US?: {
|
|
53
|
+
buy?: PlatformFeeRange[];
|
|
54
|
+
sell?: PlatformFeeRange[];
|
|
55
|
+
};
|
|
48
56
|
};
|
|
49
57
|
onboarding: {
|
|
50
58
|
country: Country;
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PartnerClass = void 0;
|
|
4
|
-
const partner_1 = require("../types/partner");
|
|
5
|
-
class PartnerClass {
|
|
6
|
-
constructor(key) {
|
|
7
|
-
this.key = key;
|
|
8
|
-
}
|
|
9
|
-
getName() {
|
|
10
|
-
if (this.key === partner_1.Partner.KillB) {
|
|
11
|
-
return "KillB";
|
|
12
|
-
}
|
|
13
|
-
else
|
|
14
|
-
return "ERR";
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.PartnerClass = PartnerClass;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrderSubstatus = void 0;
|
|
4
|
-
var OrderSubstatus;
|
|
5
|
-
(function (OrderSubstatus) {
|
|
6
|
-
OrderSubstatus["AutoFXRunning"] = "autoFXRunning";
|
|
7
|
-
OrderSubstatus["AutoLiquiditySourcingRunning"] = "autoLiquiditySourcingRunning";
|
|
8
|
-
})(OrderSubstatus = exports.OrderSubstatus || (exports.OrderSubstatus = {}));
|
package/build/types/partner.d.ts
DELETED
package/build/types/partner.js
DELETED