@riocrypto/common-server 1.0.510 → 1.0.511
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/clients/ccxt-client.d.ts +1 -4
- package/build/clients/ccxt-client.js +8 -9
- package/build/clients/fireblocks-client.d.ts +1 -1
- package/build/clients/fixer-client.d.ts +1 -1
- package/build/clients/kushki-client.d.ts +1 -3
- package/build/clients/kushki-client.js +3 -3
- package/build/clients/rio-client.d.ts +1 -21
- package/build/helpers/get-user-helper.d.ts +2 -3
- package/build/index.d.ts +0 -51
- package/build/index.js +0 -51
- package/build/middlewares/authorize.d.ts +1 -1
- package/build/middlewares/authorize.js +32 -41
- package/build/middlewares/error-handler.js +2 -2
- package/build/middlewares/get-order.js +7 -9
- package/build/middlewares/get-user.js +3 -3
- package/build/middlewares/require-admin-api-key.js +2 -2
- package/build/middlewares/require-auth.js +2 -2
- package/build/middlewares/require-priveleges.js +3 -4
- package/build/middlewares/validate-auth.js +4 -5
- package/build/middlewares/validate-kyc.js +7 -9
- package/build/middlewares/validate-request.js +2 -2
- package/build/models/auth.d.ts +1 -2
- package/build/models/business-user.d.ts +1 -7
- package/build/models/checked-address.d.ts +1 -1
- package/build/models/order.d.ts +1 -11
- package/build/models/partner.d.ts +1 -1
- package/build/models/user.d.ts +1 -6
- package/package.json +2 -1
- package/build/errors/address-check-failed-error.d.ts +0 -8
- package/build/errors/address-check-failed-error.js +0 -15
- package/build/errors/admin-already-exists-error.d.ts +0 -8
- package/build/errors/admin-already-exists-error.js +0 -15
- package/build/errors/admin-not-found-error.d.ts +0 -8
- package/build/errors/admin-not-found-error.js +0 -15
- package/build/errors/admin-only-error.d.ts +0 -8
- package/build/errors/admin-only-error.js +0 -15
- package/build/errors/api-key-not-found-error.d.ts +0 -8
- package/build/errors/api-key-not-found-error.js +0 -15
- package/build/errors/auth-already-exists-error.d.ts +0 -8
- package/build/errors/auth-already-exists-error.js +0 -15
- package/build/errors/auth-not-found-error.d.ts +0 -8
- package/build/errors/auth-not-found-error.js +0 -15
- package/build/errors/authorization-failed-error.d.ts +0 -8
- package/build/errors/authorization-failed-error.js +0 -15
- package/build/errors/custom-error.d.ts +0 -8
- package/build/errors/custom-error.js +0 -10
- package/build/errors/database-connection-error.d.ts +0 -9
- package/build/errors/database-connection-error.js +0 -16
- package/build/errors/insufficient-liquidity-error.d.ts +0 -8
- package/build/errors/insufficient-liquidity-error.js +0 -19
- package/build/errors/invalid-order-size-error.d.ts +0 -8
- package/build/errors/invalid-order-size-error.js +0 -15
- package/build/errors/message-failed-error.d.ts +0 -8
- package/build/errors/message-failed-error.js +0 -15
- package/build/errors/missing-kyc-approval-error.d.ts +0 -8
- package/build/errors/missing-kyc-approval-error.js +0 -15
- package/build/errors/missing-password-error.d.ts +0 -8
- package/build/errors/missing-password-error.js +0 -15
- package/build/errors/missing-security-question-error.d.ts +0 -8
- package/build/errors/missing-security-question-error.js +0 -15
- package/build/errors/missing-user-error.d.ts +0 -8
- package/build/errors/missing-user-error.js +0 -15
- package/build/errors/not-authorized-error.d.ts +0 -8
- package/build/errors/not-authorized-error.js +0 -15
- package/build/errors/not-broker-error.d.ts +0 -8
- package/build/errors/not-broker-error.js +0 -17
- package/build/errors/not-found-error.d.ts +0 -8
- package/build/errors/not-found-error.js +0 -15
- package/build/errors/partner-already-exists-error.d.ts +0 -8
- package/build/errors/partner-already-exists-error.js +0 -15
- package/build/errors/partner-not-found-error.d.ts +0 -8
- package/build/errors/partner-not-found-error.js +0 -15
- package/build/errors/password-already-used-error.d.ts +0 -8
- package/build/errors/password-already-used-error.js +0 -15
- package/build/errors/request-validation-error.d.ts +0 -11
- package/build/errors/request-validation-error.js +0 -18
- package/build/errors/rio-settings-already-exists-error.d.ts +0 -8
- package/build/errors/rio-settings-already-exists-error.js +0 -15
- package/build/errors/rio-settings-not-found-error.d.ts +0 -8
- package/build/errors/rio-settings-not-found-error.js +0 -15
- package/build/errors/user-already-exists-error.d.ts +0 -8
- package/build/errors/user-already-exists-error.js +0 -15
- package/build/errors/verification-failed-error.d.ts +0 -8
- package/build/errors/verification-failed-error.js +0 -15
- package/build/errors/wrong-order-state-error.d.ts +0 -8
- package/build/errors/wrong-order-state-error.js +0 -17
- package/build/errors/wrong-password-error.d.ts +0 -8
- package/build/errors/wrong-password-error.js +0 -15
- package/build/errors/wrong-processor-error.d.ts +0 -8
- package/build/errors/wrong-processor-error.js +0 -15
- package/build/errors/wrong-security-answer-error.d.ts +0 -8
- package/build/errors/wrong-security-answer-error.js +0 -15
- package/build/events/admin-created-event.d.ts +0 -8
- package/build/events/admin-created-event.js +0 -2
- package/build/events/admin-deleted-event.d.ts +0 -7
- package/build/events/admin-deleted-event.js +0 -2
- package/build/events/bank-payout-initialized-event.d.ts +0 -12
- package/build/events/bank-payout-initialized-event.js +0 -2
- package/build/events/base-listener.d.ts +0 -18
- package/build/events/base-listener.js +0 -30
- package/build/events/base-publisher.d.ts +0 -13
- package/build/events/base-publisher.js +0 -20
- package/build/events/business-kyc-failed-event.d.ts +0 -7
- package/build/events/business-kyc-failed-event.js +0 -2
- package/build/events/business-kyc-passed-event.d.ts +0 -7
- package/build/events/business-kyc-passed-event.js +0 -2
- package/build/events/checked-address-created-event.d.ts +0 -11
- package/build/events/checked-address-created-event.js +0 -2
- package/build/events/checked-address-updated-event.d.ts +0 -10
- package/build/events/checked-address-updated-event.js +0 -2
- package/build/events/clip-card-payment-created-event.d.ts +0 -8
- package/build/events/clip-card-payment-created-event.js +0 -2
- package/build/events/clip-card-payment-failed-event.d.ts +0 -7
- package/build/events/clip-card-payment-failed-event.js +0 -2
- package/build/events/deposit-address-created-event.d.ts +0 -8
- package/build/events/deposit-address-created-event.js +0 -2
- package/build/events/deposit-address-failed-event.d.ts +0 -7
- package/build/events/deposit-address-failed-event.js +0 -2
- package/build/events/deposit-completed-event.d.ts +0 -9
- package/build/events/deposit-completed-event.js +0 -2
- package/build/events/deposit-registered-event.d.ts +0 -9
- package/build/events/deposit-registered-event.js +0 -2
- package/build/events/dlocal-bank-payment-created-event.d.ts +0 -9
- package/build/events/dlocal-bank-payment-created-event.js +0 -2
- package/build/events/dlocal-bank-payment-failed-event.d.ts +0 -7
- package/build/events/dlocal-bank-payment-failed-event.js +0 -2
- package/build/events/fees-failed-event.d.ts +0 -7
- package/build/events/fees-failed-event.js +0 -2
- package/build/events/kyc-failed-event.d.ts +0 -7
- package/build/events/kyc-failed-event.js +0 -2
- package/build/events/kyc-passed-event.d.ts +0 -7
- package/build/events/kyc-passed-event.js +0 -2
- package/build/events/liquidity-fill-failed-event.d.ts +0 -7
- package/build/events/liquidity-fill-failed-event.js +0 -2
- package/build/events/liquidity-filled-event.d.ts +0 -11
- package/build/events/liquidity-filled-event.js +0 -2
- package/build/events/liquidity-routed-event.d.ts +0 -9
- package/build/events/liquidity-routed-event.js +0 -2
- package/build/events/liquidity-routing-failed-event.d.ts +0 -7
- package/build/events/liquidity-routing-failed-event.js +0 -2
- package/build/events/liquidity-transfer-failed-event.d.ts +0 -7
- package/build/events/liquidity-transfer-failed-event.js +0 -2
- package/build/events/liquidity-transfered-event.d.ts +0 -9
- package/build/events/liquidity-transfered-event.js +0 -2
- package/build/events/order-created-event.d.ts +0 -39
- package/build/events/order-created-event.js +0 -2
- package/build/events/order-deleted-event.d.ts +0 -7
- package/build/events/order-deleted-event.js +0 -2
- package/build/events/order-updated-event.d.ts +0 -37
- package/build/events/order-updated-event.js +0 -2
- package/build/events/partner-created-event.d.ts +0 -14
- package/build/events/partner-created-event.js +0 -2
- package/build/events/partner-updated-event.d.ts +0 -19
- package/build/events/partner-updated-event.js +0 -2
- package/build/events/payment-complete-event.d.ts +0 -9
- package/build/events/payment-complete-event.js +0 -2
- package/build/events/payment-created-event.d.ts +0 -8
- package/build/events/payment-created-event.js +0 -2
- package/build/events/payment-failed-event.d.ts +0 -7
- package/build/events/payment-failed-event.js +0 -2
- package/build/events/processor-routed-event.d.ts +0 -9
- package/build/events/processor-routed-event.js +0 -2
- package/build/events/processor-routing-failed-event.d.ts +0 -7
- package/build/events/processor-routing-failed-event.js +0 -2
- package/build/events/quote-failed-event.d.ts +0 -7
- package/build/events/quote-failed-event.js +0 -2
- package/build/events/rio-settings-created-event.d.ts +0 -8
- package/build/events/rio-settings-created-event.js +0 -2
- package/build/events/rio-settings-updated-event.d.ts +0 -8
- package/build/events/rio-settings-updated-event.js +0 -2
- package/build/events/subjects.d.ts +0 -60
- package/build/events/subjects.js +0 -64
- package/build/events/user-created-event.d.ts +0 -25
- package/build/events/user-created-event.js +0 -2
- package/build/events/user-deleted-event.d.ts +0 -7
- package/build/events/user-deleted-event.js +0 -2
- package/build/events/user-disabled-event.d.ts +0 -7
- package/build/events/user-disabled-event.js +0 -2
- package/build/events/user-updated-event.d.ts +0 -23
- package/build/events/user-updated-event.js +0 -2
- package/build/events/wyre-ach-payment-created-event.d.ts +0 -9
- package/build/events/wyre-ach-payment-created-event.js +0 -2
- package/build/events/wyre-payment-method-created-event.d.ts +0 -11
- package/build/events/wyre-payment-method-created-event.js +0 -2
- package/build/events/wyre-transfer-completed-event.d.ts +0 -9
- package/build/events/wyre-transfer-completed-event.js +0 -2
- package/build/events/wyre-transfer-created-event.d.ts +0 -9
- package/build/events/wyre-transfer-created-event.js +0 -2
- package/build/events/wyre-transfer-failed-event.d.ts +0 -9
- package/build/events/wyre-transfer-failed-event.js +0 -2
- package/build/events/wyre-user-created-event.d.ts +0 -9
- package/build/events/wyre-user-created-event.js +0 -2
- package/build/types/address-check-result.d.ts +0 -4
- package/build/types/address-check-result.js +0 -8
- package/build/types/admin.d.ts +0 -4
- package/build/types/admin.js +0 -2
- package/build/types/api-key.d.ts +0 -5
- package/build/types/api-key.js +0 -2
- package/build/types/auth-update.d.ts +0 -8
- package/build/types/auth-update.js +0 -2
- package/build/types/auth.d.ts +0 -6
- package/build/types/auth.js +0 -2
- package/build/types/authorization-type.d.ts +0 -9
- package/build/types/authorization-type.js +0 -13
- package/build/types/bank-payout.d.ts +0 -7
- package/build/types/bank-payout.js +0 -2
- package/build/types/business-user-input.d.ts +0 -27
- package/build/types/business-user-input.js +0 -2
- package/build/types/business-user-update.d.ts +0 -26
- package/build/types/business-user-update.js +0 -2
- package/build/types/business-user.d.ts +0 -30
- package/build/types/business-user.js +0 -2
- package/build/types/ccxt-liquidity-provider.d.ts +0 -5
- package/build/types/ccxt-liquidity-provider.js +0 -9
- package/build/types/checked-address.d.ts +0 -7
- package/build/types/checked-address.js +0 -2
- package/build/types/clip-payment-status.d.ts +0 -3
- package/build/types/clip-payment-status.js +0 -7
- package/build/types/country.d.ts +0 -57
- package/build/types/country.js +0 -256
- package/build/types/crypto.d.ts +0 -6
- package/build/types/crypto.js +0 -38
- package/build/types/dlocal-payment-method.d.ts +0 -4
- package/build/types/dlocal-payment-method.js +0 -8
- package/build/types/fees.d.ts +0 -9
- package/build/types/fees.js +0 -2
- package/build/types/fiat.d.ts +0 -6
- package/build/types/fiat.js +0 -45
- package/build/types/kyc-status.d.ts +0 -7
- package/build/types/kyc-status.js +0 -11
- package/build/types/language.d.ts +0 -6
- package/build/types/language.js +0 -10
- package/build/types/liquidity-provider.d.ts +0 -9
- package/build/types/liquidity-provider.js +0 -13
- package/build/types/order-input.d.ts +0 -31
- package/build/types/order-input.js +0 -2
- package/build/types/order-status.d.ts +0 -21
- package/build/types/order-status.js +0 -51
- package/build/types/order.d.ts +0 -37
- package/build/types/order.js +0 -2
- package/build/types/partner-auth.d.ts +0 -5
- package/build/types/partner-auth.js +0 -2
- package/build/types/partner-stats.d.ts +0 -5
- package/build/types/partner-stats.js +0 -2
- package/build/types/partner-status.d.ts +0 -6
- package/build/types/partner-status.js +0 -10
- package/build/types/partner-update.d.ts +0 -10
- package/build/types/partner-update.js +0 -2
- package/build/types/partner.d.ts +0 -15
- package/build/types/partner.js +0 -2
- package/build/types/payment-method.d.ts +0 -5
- package/build/types/payment-method.js +0 -9
- package/build/types/payout-method.d.ts +0 -3
- package/build/types/payout-method.js +0 -7
- package/build/types/platform-fee-range.d.ts +0 -5
- package/build/types/platform-fee-range.js +0 -2
- package/build/types/processor.d.ts +0 -12
- package/build/types/processor.js +0 -16
- package/build/types/quote.d.ts +0 -21
- package/build/types/quote.js +0 -2
- package/build/types/rio-env.d.ts +0 -6
- package/build/types/rio-env.js +0 -10
- package/build/types/rio-settings-update.d.ts +0 -4
- package/build/types/rio-settings-update.js +0 -2
- package/build/types/rio-settings.d.ts +0 -4
- package/build/types/rio-settings.js +0 -2
- package/build/types/security-question.d.ts +0 -7
- package/build/types/security-question.js +0 -11
- package/build/types/side.d.ts +0 -4
- package/build/types/side.js +0 -8
- package/build/types/us-state.d.ts +0 -61
- package/build/types/us-state.js +0 -65
- package/build/types/user-attribute.d.ts +0 -10
- package/build/types/user-attribute.js +0 -14
- package/build/types/user-input.d.ts +0 -26
- package/build/types/user-input.js +0 -2
- package/build/types/user-type.d.ts +0 -4
- package/build/types/user-type.js +0 -8
- package/build/types/user-update.d.ts +0 -25
- package/build/types/user-update.js +0 -2
- package/build/types/user.d.ts +0 -30
- package/build/types/user.js +0 -2
- package/build/types/users-stats.d.ts +0 -3
- package/build/types/users-stats.js +0 -2
- package/build/types/wyre-address.d.ts +0 -9
- package/build/types/wyre-address.js +0 -2
- package/build/types/wyre-order-status.d.ts +0 -7
- package/build/types/wyre-order-status.js +0 -11
- package/build/types/wyre-payment-method.d.ts +0 -40
- package/build/types/wyre-payment-method.js +0 -2
- package/build/types/wyre-webhook-notification.d.ts +0 -12
- package/build/types/wyre-webhook-notification.js +0 -2
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddressCheckResult = void 0;
|
|
4
|
-
var AddressCheckResult;
|
|
5
|
-
(function (AddressCheckResult) {
|
|
6
|
-
AddressCheckResult["Passed"] = "passed";
|
|
7
|
-
AddressCheckResult["Failed"] = "failed";
|
|
8
|
-
})(AddressCheckResult = exports.AddressCheckResult || (exports.AddressCheckResult = {}));
|
package/build/types/admin.d.ts
DELETED
package/build/types/admin.js
DELETED
package/build/types/api-key.d.ts
DELETED
package/build/types/api-key.js
DELETED
package/build/types/auth.d.ts
DELETED
package/build/types/auth.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthorizationType = void 0;
|
|
4
|
-
var AuthorizationType;
|
|
5
|
-
(function (AuthorizationType) {
|
|
6
|
-
AuthorizationType["UserNoKYC"] = "newUserNoKYC";
|
|
7
|
-
AuthorizationType["User"] = "user";
|
|
8
|
-
AuthorizationType["Broker"] = "broker";
|
|
9
|
-
AuthorizationType["Admin"] = "admin";
|
|
10
|
-
AuthorizationType["Partner"] = "partner";
|
|
11
|
-
AuthorizationType["Auth"] = "auth";
|
|
12
|
-
AuthorizationType["AdminAPI"] = "adminAPI";
|
|
13
|
-
})(AuthorizationType = exports.AuthorizationType || (exports.AuthorizationType = {}));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Country } from "./country";
|
|
2
|
-
import { KYCStatus } from "./kyc-status";
|
|
3
|
-
import { Language } from "./language";
|
|
4
|
-
import { PlatformFeeRange } from "./platform-fee-range";
|
|
5
|
-
import { USState } from "./us-state";
|
|
6
|
-
import { UserAttribute } from "./user-attribute";
|
|
7
|
-
export interface BusinessUserInput {
|
|
8
|
-
authId?: string;
|
|
9
|
-
companyName: string;
|
|
10
|
-
legalRepresentative: string;
|
|
11
|
-
phoneNumber?: string;
|
|
12
|
-
email: string;
|
|
13
|
-
street1: string;
|
|
14
|
-
street2?: string;
|
|
15
|
-
city: string;
|
|
16
|
-
state: USState | string;
|
|
17
|
-
postalCode: string;
|
|
18
|
-
country: Country;
|
|
19
|
-
language: Language;
|
|
20
|
-
cpf?: string;
|
|
21
|
-
kycStatus?: KYCStatus;
|
|
22
|
-
COIFile?: string;
|
|
23
|
-
KYCReportFile?: string;
|
|
24
|
-
attributes?: UserAttribute[];
|
|
25
|
-
brokerId?: string;
|
|
26
|
-
platformFeeRanges?: PlatformFeeRange[];
|
|
27
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Country } from "./country";
|
|
2
|
-
import { KYCStatus } from "./kyc-status";
|
|
3
|
-
import { Language } from "./language";
|
|
4
|
-
import { PlatformFeeRange } from "./platform-fee-range";
|
|
5
|
-
import { UserAttribute } from "./user-attribute";
|
|
6
|
-
export interface BusinessUserUpdate {
|
|
7
|
-
authId?: string;
|
|
8
|
-
companyName?: string;
|
|
9
|
-
legalRepresentative?: string;
|
|
10
|
-
phoneNumber?: string;
|
|
11
|
-
email?: string;
|
|
12
|
-
street1?: string;
|
|
13
|
-
street2?: string;
|
|
14
|
-
city?: string;
|
|
15
|
-
state?: string;
|
|
16
|
-
postalCode?: string;
|
|
17
|
-
cpf?: string;
|
|
18
|
-
country?: Country;
|
|
19
|
-
kycStatus?: KYCStatus;
|
|
20
|
-
language?: Language;
|
|
21
|
-
COIFile?: string;
|
|
22
|
-
KYCReportFile?: string;
|
|
23
|
-
attributes?: UserAttribute[];
|
|
24
|
-
brokerId?: string;
|
|
25
|
-
platformFeeRanges?: PlatformFeeRange[];
|
|
26
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Country } from "./country";
|
|
2
|
-
import { KYCStatus } from "./kyc-status";
|
|
3
|
-
import { Language } from "./language";
|
|
4
|
-
import { PlatformFeeRange } from "./platform-fee-range";
|
|
5
|
-
import { USState } from "./us-state";
|
|
6
|
-
import { UserAttribute } from "./user-attribute";
|
|
7
|
-
import { UserType } from "./user-type";
|
|
8
|
-
export interface BusinessUser {
|
|
9
|
-
id: string;
|
|
10
|
-
authId?: string;
|
|
11
|
-
type: UserType;
|
|
12
|
-
companyName: string;
|
|
13
|
-
legalRepresentative: string;
|
|
14
|
-
phoneNumber: string;
|
|
15
|
-
email: string;
|
|
16
|
-
street1: string;
|
|
17
|
-
street2?: string;
|
|
18
|
-
city: string;
|
|
19
|
-
state: USState | string;
|
|
20
|
-
postalCode: string;
|
|
21
|
-
country: Country;
|
|
22
|
-
kycStatus: KYCStatus;
|
|
23
|
-
cpf?: string;
|
|
24
|
-
language?: Language;
|
|
25
|
-
COIFile?: string;
|
|
26
|
-
KYCReportFile?: string;
|
|
27
|
-
attributes?: UserAttribute[];
|
|
28
|
-
brokerId?: string;
|
|
29
|
-
platformFeeRanges?: PlatformFeeRange[];
|
|
30
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CCXTLiquidityProvider = void 0;
|
|
4
|
-
var CCXTLiquidityProvider;
|
|
5
|
-
(function (CCXTLiquidityProvider) {
|
|
6
|
-
CCXTLiquidityProvider["Kraken"] = "kraken";
|
|
7
|
-
CCXTLiquidityProvider["Gemini"] = "gemini";
|
|
8
|
-
CCXTLiquidityProvider["Bitstamp"] = "bitstamp";
|
|
9
|
-
})(CCXTLiquidityProvider = exports.CCXTLiquidityProvider || (exports.CCXTLiquidityProvider = {}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClipPaymentStatus = void 0;
|
|
4
|
-
var ClipPaymentStatus;
|
|
5
|
-
(function (ClipPaymentStatus) {
|
|
6
|
-
ClipPaymentStatus["paid"] = "PAID";
|
|
7
|
-
})(ClipPaymentStatus = exports.ClipPaymentStatus || (exports.ClipPaymentStatus = {}));
|
package/build/types/country.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare enum Country {
|
|
2
|
-
Algeria = "DZ",
|
|
3
|
-
Argentina = "AR",
|
|
4
|
-
Australia = "AU",
|
|
5
|
-
Austria = "AT",
|
|
6
|
-
Belgium = "BE",
|
|
7
|
-
Bolivia = "BO",
|
|
8
|
-
Brazil = "BR",
|
|
9
|
-
Canada = "CA",
|
|
10
|
-
Chile = "CL",
|
|
11
|
-
Colombia = "CO",
|
|
12
|
-
CostaRica = "CR",
|
|
13
|
-
Cyprus = "CY",
|
|
14
|
-
CzechRepublic = "CZ",
|
|
15
|
-
Denmark = "DK",
|
|
16
|
-
DominicanRepublic = "DO",
|
|
17
|
-
Estonia = "EE",
|
|
18
|
-
Fiji = "FJ",
|
|
19
|
-
France = "FR",
|
|
20
|
-
Germany = "DE",
|
|
21
|
-
Greece = "GR",
|
|
22
|
-
HongKong = "HK",
|
|
23
|
-
Iceland = "IS",
|
|
24
|
-
India = "IN",
|
|
25
|
-
Indonesia = "ID",
|
|
26
|
-
Ireland = "IE",
|
|
27
|
-
Israel = "IL",
|
|
28
|
-
Italy = "IT",
|
|
29
|
-
Japan = "JP",
|
|
30
|
-
Korea = "KR",
|
|
31
|
-
Latvia = "LV",
|
|
32
|
-
Lithuania = "LT",
|
|
33
|
-
Luxembourg = "LU",
|
|
34
|
-
Malaysia = "MY",
|
|
35
|
-
Mexico = "MX",
|
|
36
|
-
Nepal = "NP",
|
|
37
|
-
Netherlands = "NL",
|
|
38
|
-
NewZealand = "NZ",
|
|
39
|
-
Norway = "NO",
|
|
40
|
-
Paraguay = "PY",
|
|
41
|
-
Peru = "PE",
|
|
42
|
-
Philippines = "PH",
|
|
43
|
-
Poland = "PL",
|
|
44
|
-
Portugal = "PT",
|
|
45
|
-
Singapore = "SG",
|
|
46
|
-
Slovakia = "SK",
|
|
47
|
-
Slovenia = "SI",
|
|
48
|
-
SouthAfrica = "ZA",
|
|
49
|
-
Spain = "ES",
|
|
50
|
-
Sweden = "SE",
|
|
51
|
-
Switzerland = "CH",
|
|
52
|
-
Tanzania = "TZ",
|
|
53
|
-
Thailand = "TH",
|
|
54
|
-
Turkey = "TR",
|
|
55
|
-
UnitedKingdom = "GB",
|
|
56
|
-
Vietnam = "VN"
|
|
57
|
-
}
|
package/build/types/country.js
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Currently only has countries supported
|
|
3
|
-
// by Wyre
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Country = void 0;
|
|
6
|
-
var Country;
|
|
7
|
-
(function (Country) {
|
|
8
|
-
// Afghanistan = "AF",
|
|
9
|
-
// AlandIslands = "AX",
|
|
10
|
-
// Albania = "AL",
|
|
11
|
-
Country["Algeria"] = "DZ";
|
|
12
|
-
// AmericanSamoa = "AS",
|
|
13
|
-
// Andorra = "AD",
|
|
14
|
-
// Angola = "AO",
|
|
15
|
-
// Anguilla = "AI",
|
|
16
|
-
// Antarctica = "AQ",
|
|
17
|
-
// AntiguaAndBarbuda = "AG",
|
|
18
|
-
Country["Argentina"] = "AR";
|
|
19
|
-
// Armenia = "AM",
|
|
20
|
-
// Aruba = "AW",
|
|
21
|
-
Country["Australia"] = "AU";
|
|
22
|
-
Country["Austria"] = "AT";
|
|
23
|
-
// Azerbaijan = "AZ",
|
|
24
|
-
// Bahamas = "BS",
|
|
25
|
-
// Bahrain = "BH",
|
|
26
|
-
// Bangladesh = "BD",
|
|
27
|
-
// Barbados = "BB",
|
|
28
|
-
// Belarus = "BY",
|
|
29
|
-
Country["Belgium"] = "BE";
|
|
30
|
-
// Belize = "BZ",
|
|
31
|
-
// Benin = "BJ",
|
|
32
|
-
// Bermuda = "BM",
|
|
33
|
-
// Bhutan = "BT",
|
|
34
|
-
Country["Bolivia"] = "BO";
|
|
35
|
-
// BonaireSintEustatiusSaba = "BQ",
|
|
36
|
-
// BosniaAndHerzegovina = "BA",
|
|
37
|
-
// Botswana = "BW",
|
|
38
|
-
// BouvetIsland = "BV",
|
|
39
|
-
Country["Brazil"] = "BR";
|
|
40
|
-
// BritishIndianOceanTerritory = "IO",
|
|
41
|
-
// BruneiDarussalam = "BN",
|
|
42
|
-
// Bulgaria = "BG",
|
|
43
|
-
// BurkinaFaso = "BF",
|
|
44
|
-
// Burundi = "BI",
|
|
45
|
-
// Cambodia = "KH",
|
|
46
|
-
// Cameroon = "CM",
|
|
47
|
-
Country["Canada"] = "CA";
|
|
48
|
-
// CapeVerde = "CV",
|
|
49
|
-
// CaymanIslands = "KY",
|
|
50
|
-
// CentralAfricanRepublic = "CF",
|
|
51
|
-
// Chad = "TD",
|
|
52
|
-
Country["Chile"] = "CL";
|
|
53
|
-
// China = "CN",
|
|
54
|
-
// ChristmasIsland = "CX",
|
|
55
|
-
// CocosKeelingIslands = "CC",
|
|
56
|
-
Country["Colombia"] = "CO";
|
|
57
|
-
// Comoros = "KM",
|
|
58
|
-
// Congo = "CG",
|
|
59
|
-
// CongoDemocraticRepublic = "CD",
|
|
60
|
-
// CookIslands = "CK",
|
|
61
|
-
Country["CostaRica"] = "CR";
|
|
62
|
-
// CoteDIvoire = "CI",
|
|
63
|
-
// Croatia = "HR",
|
|
64
|
-
// Cuba = "CU",
|
|
65
|
-
// Curaçao = "CW",
|
|
66
|
-
Country["Cyprus"] = "CY";
|
|
67
|
-
Country["CzechRepublic"] = "CZ";
|
|
68
|
-
Country["Denmark"] = "DK";
|
|
69
|
-
// Djibouti = "DJ",
|
|
70
|
-
// Dominica = "DM",
|
|
71
|
-
Country["DominicanRepublic"] = "DO";
|
|
72
|
-
// Ecuador = "EC",
|
|
73
|
-
// Egypt = "EG",
|
|
74
|
-
// ElSalvador = "SV",
|
|
75
|
-
// EquatorialGuinea = "GQ",
|
|
76
|
-
// Eritrea = "ER",
|
|
77
|
-
Country["Estonia"] = "EE";
|
|
78
|
-
// Ethiopia = "ET",
|
|
79
|
-
// FalklandIslands = "FK",
|
|
80
|
-
// FaroeIslands = "FO",
|
|
81
|
-
Country["Fiji"] = "FJ";
|
|
82
|
-
// Finland = "FI",
|
|
83
|
-
Country["France"] = "FR";
|
|
84
|
-
// FrenchGuiana = "GF",
|
|
85
|
-
// FrenchPolynesia = "PF",
|
|
86
|
-
// FrenchSouthernTerritories = "TF",
|
|
87
|
-
// Gabon = "GA",
|
|
88
|
-
// Gambia = "GM",
|
|
89
|
-
// Georgia = "GE",
|
|
90
|
-
Country["Germany"] = "DE";
|
|
91
|
-
// Ghana = "GH",
|
|
92
|
-
// Gibraltar = "GI",
|
|
93
|
-
Country["Greece"] = "GR";
|
|
94
|
-
// Greenland = "GL",
|
|
95
|
-
// Grenada = "GD",
|
|
96
|
-
// Guadeloupe = "GP",
|
|
97
|
-
// Guam = "GU",
|
|
98
|
-
// Guatemala = "GT",
|
|
99
|
-
// Guernsey = "GG",
|
|
100
|
-
// Guinea = "GN",
|
|
101
|
-
// GuineaBissau = "GW",
|
|
102
|
-
// Guyana = "GY",
|
|
103
|
-
// Haiti = "HT",
|
|
104
|
-
// HeardIslandMcdonaldIslands = "HM",
|
|
105
|
-
// HolySeeVaticanCityState = "VA",
|
|
106
|
-
// Honduras = "HN",
|
|
107
|
-
Country["HongKong"] = "HK";
|
|
108
|
-
// Hungary = "HU",
|
|
109
|
-
Country["Iceland"] = "IS";
|
|
110
|
-
Country["India"] = "IN";
|
|
111
|
-
Country["Indonesia"] = "ID";
|
|
112
|
-
// Iran = "IR",
|
|
113
|
-
// Iraq = "IQ",
|
|
114
|
-
Country["Ireland"] = "IE";
|
|
115
|
-
// IsleOfMan = "IM",
|
|
116
|
-
Country["Israel"] = "IL";
|
|
117
|
-
Country["Italy"] = "IT";
|
|
118
|
-
// Jamaica = "JM",
|
|
119
|
-
Country["Japan"] = "JP";
|
|
120
|
-
// Jersey = "JE",
|
|
121
|
-
// Jordan = "JO",
|
|
122
|
-
// Kazakhstan = "KZ",
|
|
123
|
-
// Kenya = "KE",
|
|
124
|
-
// Kiribati = "KI",
|
|
125
|
-
Country["Korea"] = "KR";
|
|
126
|
-
// KoreaDemocraticPeoplesRepublic = "KP",
|
|
127
|
-
// Kuwait = "KW",
|
|
128
|
-
// Kyrgyzstan = "KG",
|
|
129
|
-
// LaoPeoplesDemocraticRepublic = "LA",
|
|
130
|
-
Country["Latvia"] = "LV";
|
|
131
|
-
// Lebanon = "LB",
|
|
132
|
-
// Lesotho = "LS",
|
|
133
|
-
// Liberia = "LR",
|
|
134
|
-
// LibyanArabJamahiriya = "LY",
|
|
135
|
-
// Liechtenstein = "LI",
|
|
136
|
-
Country["Lithuania"] = "LT";
|
|
137
|
-
Country["Luxembourg"] = "LU";
|
|
138
|
-
// Macao = "MO",
|
|
139
|
-
// Macedonia = "MK",
|
|
140
|
-
// Madagascar = "MG",
|
|
141
|
-
// Malawi = "MW",
|
|
142
|
-
Country["Malaysia"] = "MY";
|
|
143
|
-
// Maldives = "MV",
|
|
144
|
-
// Mali = "ML",
|
|
145
|
-
// Malta = "MT",
|
|
146
|
-
// MarshallIslands = "MH",
|
|
147
|
-
// Martinique = "MQ",
|
|
148
|
-
// Mauritania = "MR",
|
|
149
|
-
// Mauritius = "MU",
|
|
150
|
-
// Mayotte = "YT",
|
|
151
|
-
Country["Mexico"] = "MX";
|
|
152
|
-
// Micronesia = "FM",
|
|
153
|
-
// Moldova = "MD",
|
|
154
|
-
// Monaco = "MC",
|
|
155
|
-
// Mongolia = "MN",
|
|
156
|
-
// Montenegro = "ME",
|
|
157
|
-
// Montserrat = "MS",
|
|
158
|
-
// Morocco = "MA",
|
|
159
|
-
// Mozambique = "MZ",
|
|
160
|
-
// Myanmar = "MM",
|
|
161
|
-
// Namibia = "NA",
|
|
162
|
-
// Nauru = "NR",
|
|
163
|
-
Country["Nepal"] = "NP";
|
|
164
|
-
Country["Netherlands"] = "NL";
|
|
165
|
-
// NewCaledonia = "NC",
|
|
166
|
-
Country["NewZealand"] = "NZ";
|
|
167
|
-
// Nicaragua = "NI",
|
|
168
|
-
// Niger = "NE",
|
|
169
|
-
// Nigeria = "NG",
|
|
170
|
-
// Niue = "NU",
|
|
171
|
-
// NorfolkIsland = "NF",
|
|
172
|
-
// NorthernMarianaIslands = "MP",
|
|
173
|
-
Country["Norway"] = "NO";
|
|
174
|
-
// Oman = "OM",
|
|
175
|
-
// Pakistan = "PK",
|
|
176
|
-
// Palau = "PW",
|
|
177
|
-
// PalestinianTerritory = "PS",
|
|
178
|
-
// Panama = "PA",
|
|
179
|
-
// PapuaNewGuinea = "PG",
|
|
180
|
-
Country["Paraguay"] = "PY";
|
|
181
|
-
Country["Peru"] = "PE";
|
|
182
|
-
Country["Philippines"] = "PH";
|
|
183
|
-
// Pitcairn = "PN",
|
|
184
|
-
Country["Poland"] = "PL";
|
|
185
|
-
Country["Portugal"] = "PT";
|
|
186
|
-
// PuertoRico = "PR",
|
|
187
|
-
// Qatar = "QA",
|
|
188
|
-
// Reunion = "RE",
|
|
189
|
-
// Romania = "RO",
|
|
190
|
-
// RussianFederation = "RU",
|
|
191
|
-
// Rwanda = "RW",
|
|
192
|
-
// SaintBarthelemy = "BL",
|
|
193
|
-
// SaintHelena = "SH",
|
|
194
|
-
// SaintKittsAndNevis = "KN",
|
|
195
|
-
// SaintLucia = "LC",
|
|
196
|
-
// SaintMartin = "MF",
|
|
197
|
-
// SaintPierreAndMiquelon = "PM",
|
|
198
|
-
// SaintVincentAndGrenadines = "VC",
|
|
199
|
-
// Samoa = "WS",
|
|
200
|
-
// SanMarino = "SM",
|
|
201
|
-
// SaoTomeAndPrincipe = "ST",
|
|
202
|
-
// SaudiArabia = "SA",
|
|
203
|
-
// Senegal = "SN",
|
|
204
|
-
// Serbia = "RS",
|
|
205
|
-
// Seychelles = "SC",
|
|
206
|
-
// SierraLeone = "SL",
|
|
207
|
-
Country["Singapore"] = "SG";
|
|
208
|
-
// SintMaarten = "SX",
|
|
209
|
-
Country["Slovakia"] = "SK";
|
|
210
|
-
Country["Slovenia"] = "SI";
|
|
211
|
-
// SolomonIslands = "SB",
|
|
212
|
-
// Somalia = "SO",
|
|
213
|
-
Country["SouthAfrica"] = "ZA";
|
|
214
|
-
// SouthGeorgiaAndSandwichIsl = "GS",
|
|
215
|
-
// SouthSudan = "SS",
|
|
216
|
-
Country["Spain"] = "ES";
|
|
217
|
-
// SriLanka = "LK",
|
|
218
|
-
// Sudan = "SD",
|
|
219
|
-
// Suriname = "SR",
|
|
220
|
-
// SvalbardAndJanMayen = "SJ",
|
|
221
|
-
// Swaziland = "SZ",
|
|
222
|
-
Country["Sweden"] = "SE";
|
|
223
|
-
Country["Switzerland"] = "CH";
|
|
224
|
-
// SyrianArabRepublic = "SY",
|
|
225
|
-
// Taiwan = "TW",
|
|
226
|
-
// Tajikistan = "TJ",
|
|
227
|
-
Country["Tanzania"] = "TZ";
|
|
228
|
-
Country["Thailand"] = "TH";
|
|
229
|
-
// TimorLeste = "TL",
|
|
230
|
-
// Togo = "TG",
|
|
231
|
-
// Tokelau = "TK",
|
|
232
|
-
// Tonga = "TO",
|
|
233
|
-
// TrinidadAndTobago = "TT",
|
|
234
|
-
// Tunisia = "TN",
|
|
235
|
-
Country["Turkey"] = "TR";
|
|
236
|
-
// Turkmenistan = "TM",
|
|
237
|
-
// TurksAndCaicosIslands = "TC",
|
|
238
|
-
// Tuvalu = "TV",
|
|
239
|
-
// Uganda = "UG",
|
|
240
|
-
// Ukraine = "UA",
|
|
241
|
-
// UnitedArabEmirates = "AE",
|
|
242
|
-
Country["UnitedKingdom"] = "GB";
|
|
243
|
-
// UnitedStatesOutlyingIslands = "UM",
|
|
244
|
-
// Uruguay = "UY",
|
|
245
|
-
// Uzbekistan = "UZ",
|
|
246
|
-
// Vanuatu = "VU",
|
|
247
|
-
// Venezuela = "VE",
|
|
248
|
-
Country["Vietnam"] = "VN";
|
|
249
|
-
// VirginIslandsBritish = "VG",
|
|
250
|
-
// VirginIslandsUS = "VI",
|
|
251
|
-
// WallisAndFutuna = "WF",
|
|
252
|
-
// WesternSahara = "EH",
|
|
253
|
-
// Yemen = "YE",
|
|
254
|
-
// Zambia = "ZM",
|
|
255
|
-
// Zimbabwe = "ZW",
|
|
256
|
-
})(Country = exports.Country || (exports.Country = {}));
|
package/build/types/crypto.d.ts
DELETED
package/build/types/crypto.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Currently only has cryptos supported
|
|
3
|
-
// by Wyre
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Crypto = void 0;
|
|
6
|
-
var Crypto;
|
|
7
|
-
(function (Crypto) {
|
|
8
|
-
Crypto["BTC"] = "BTC";
|
|
9
|
-
Crypto["ETH"] = "ETH";
|
|
10
|
-
Crypto["USDC"] = "USDC";
|
|
11
|
-
Crypto["USDCPolygon"] = "USDC_POLYGON";
|
|
12
|
-
// XLM = "XLM",
|
|
13
|
-
// sUSDC = "sUSDC",
|
|
14
|
-
// AVAX = "AVAX",
|
|
15
|
-
// AVAX = "AVAX",
|
|
16
|
-
// AVAXCUSDC = "AVAXCUSDC",
|
|
17
|
-
// DAI = "DAI",
|
|
18
|
-
// mUSDC = "mUSDC",
|
|
19
|
-
// MATIC = "MATIC",
|
|
20
|
-
// USDT = "USDT",
|
|
21
|
-
// BUSD = "BUSD",
|
|
22
|
-
// GUSD = "GUSD",
|
|
23
|
-
// PAX = "PAX",
|
|
24
|
-
// AAVE = "AAVE",
|
|
25
|
-
// COMP = "COMP",
|
|
26
|
-
// LINK = "LINK",
|
|
27
|
-
// WBTC = "WBTC",
|
|
28
|
-
// WETH = "WETH",
|
|
29
|
-
// BAT = "BAT",
|
|
30
|
-
// CRV = "CRV",
|
|
31
|
-
// MKR = "MKR",
|
|
32
|
-
// SNX = "SNX",
|
|
33
|
-
// UNI = "UNI",
|
|
34
|
-
// YFI = "YFI",
|
|
35
|
-
// ALGO = "ALGO",
|
|
36
|
-
// AUSDC = "AUSDC",
|
|
37
|
-
// AUSDT = "AUSDT",
|
|
38
|
-
})(Crypto = exports.Crypto || (exports.Crypto = {}));
|