@riocrypto/common-server 1.0.509 → 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.
Files changed (293) hide show
  1. package/build/clients/ccxt-client.d.ts +1 -4
  2. package/build/clients/ccxt-client.js +8 -9
  3. package/build/clients/fireblocks-client.d.ts +1 -1
  4. package/build/clients/fixer-client.d.ts +1 -1
  5. package/build/clients/kushki-client.d.ts +1 -3
  6. package/build/clients/kushki-client.js +3 -3
  7. package/build/clients/rio-client.d.ts +1 -21
  8. package/build/helpers/get-user-helper.d.ts +2 -3
  9. package/build/index.d.ts +0 -51
  10. package/build/index.js +0 -51
  11. package/build/middlewares/authorize.d.ts +2 -1
  12. package/build/middlewares/authorize.js +42 -41
  13. package/build/middlewares/error-handler.js +2 -2
  14. package/build/middlewares/get-order.js +7 -9
  15. package/build/middlewares/get-user.js +3 -3
  16. package/build/middlewares/require-admin-api-key.js +2 -2
  17. package/build/middlewares/require-auth.js +2 -2
  18. package/build/middlewares/require-priveleges.js +3 -4
  19. package/build/middlewares/validate-auth.js +4 -5
  20. package/build/middlewares/validate-kyc.js +7 -9
  21. package/build/middlewares/validate-request.js +2 -2
  22. package/build/models/admin-auth.js +1 -0
  23. package/build/models/auth.d.ts +1 -2
  24. package/build/models/business-user.d.ts +1 -7
  25. package/build/models/checked-address.d.ts +1 -1
  26. package/build/models/order.d.ts +1 -11
  27. package/build/models/partner.d.ts +1 -1
  28. package/build/models/user.d.ts +1 -6
  29. package/package.json +2 -1
  30. package/build/errors/address-check-failed-error.d.ts +0 -8
  31. package/build/errors/address-check-failed-error.js +0 -15
  32. package/build/errors/admin-already-exists-error.d.ts +0 -8
  33. package/build/errors/admin-already-exists-error.js +0 -15
  34. package/build/errors/admin-not-found-error.d.ts +0 -8
  35. package/build/errors/admin-not-found-error.js +0 -15
  36. package/build/errors/admin-only-error.d.ts +0 -8
  37. package/build/errors/admin-only-error.js +0 -15
  38. package/build/errors/api-key-not-found-error.d.ts +0 -8
  39. package/build/errors/api-key-not-found-error.js +0 -15
  40. package/build/errors/auth-already-exists-error.d.ts +0 -8
  41. package/build/errors/auth-already-exists-error.js +0 -15
  42. package/build/errors/auth-not-found-error.d.ts +0 -8
  43. package/build/errors/auth-not-found-error.js +0 -15
  44. package/build/errors/authorization-failed-error.d.ts +0 -8
  45. package/build/errors/authorization-failed-error.js +0 -15
  46. package/build/errors/custom-error.d.ts +0 -8
  47. package/build/errors/custom-error.js +0 -10
  48. package/build/errors/database-connection-error.d.ts +0 -9
  49. package/build/errors/database-connection-error.js +0 -16
  50. package/build/errors/insufficient-liquidity-error.d.ts +0 -8
  51. package/build/errors/insufficient-liquidity-error.js +0 -19
  52. package/build/errors/invalid-order-size-error.d.ts +0 -8
  53. package/build/errors/invalid-order-size-error.js +0 -15
  54. package/build/errors/message-failed-error.d.ts +0 -8
  55. package/build/errors/message-failed-error.js +0 -15
  56. package/build/errors/missing-kyc-approval-error.d.ts +0 -8
  57. package/build/errors/missing-kyc-approval-error.js +0 -15
  58. package/build/errors/missing-password-error.d.ts +0 -8
  59. package/build/errors/missing-password-error.js +0 -15
  60. package/build/errors/missing-security-question-error.d.ts +0 -8
  61. package/build/errors/missing-security-question-error.js +0 -15
  62. package/build/errors/missing-user-error.d.ts +0 -8
  63. package/build/errors/missing-user-error.js +0 -15
  64. package/build/errors/not-authorized-error.d.ts +0 -8
  65. package/build/errors/not-authorized-error.js +0 -15
  66. package/build/errors/not-broker-error.d.ts +0 -8
  67. package/build/errors/not-broker-error.js +0 -17
  68. package/build/errors/not-found-error.d.ts +0 -8
  69. package/build/errors/not-found-error.js +0 -15
  70. package/build/errors/partner-already-exists-error.d.ts +0 -8
  71. package/build/errors/partner-already-exists-error.js +0 -15
  72. package/build/errors/partner-not-found-error.d.ts +0 -8
  73. package/build/errors/partner-not-found-error.js +0 -15
  74. package/build/errors/password-already-used-error.d.ts +0 -8
  75. package/build/errors/password-already-used-error.js +0 -15
  76. package/build/errors/request-validation-error.d.ts +0 -11
  77. package/build/errors/request-validation-error.js +0 -18
  78. package/build/errors/rio-settings-already-exists-error.d.ts +0 -8
  79. package/build/errors/rio-settings-already-exists-error.js +0 -15
  80. package/build/errors/rio-settings-not-found-error.d.ts +0 -8
  81. package/build/errors/rio-settings-not-found-error.js +0 -15
  82. package/build/errors/user-already-exists-error.d.ts +0 -8
  83. package/build/errors/user-already-exists-error.js +0 -15
  84. package/build/errors/verification-failed-error.d.ts +0 -8
  85. package/build/errors/verification-failed-error.js +0 -15
  86. package/build/errors/wrong-order-state-error.d.ts +0 -8
  87. package/build/errors/wrong-order-state-error.js +0 -17
  88. package/build/errors/wrong-password-error.d.ts +0 -8
  89. package/build/errors/wrong-password-error.js +0 -15
  90. package/build/errors/wrong-processor-error.d.ts +0 -8
  91. package/build/errors/wrong-processor-error.js +0 -15
  92. package/build/errors/wrong-security-answer-error.d.ts +0 -8
  93. package/build/errors/wrong-security-answer-error.js +0 -15
  94. package/build/events/admin-created-event.d.ts +0 -8
  95. package/build/events/admin-created-event.js +0 -2
  96. package/build/events/admin-deleted-event.d.ts +0 -7
  97. package/build/events/admin-deleted-event.js +0 -2
  98. package/build/events/bank-payout-initialized-event.d.ts +0 -12
  99. package/build/events/bank-payout-initialized-event.js +0 -2
  100. package/build/events/base-listener.d.ts +0 -18
  101. package/build/events/base-listener.js +0 -30
  102. package/build/events/base-publisher.d.ts +0 -13
  103. package/build/events/base-publisher.js +0 -20
  104. package/build/events/business-kyc-failed-event.d.ts +0 -7
  105. package/build/events/business-kyc-failed-event.js +0 -2
  106. package/build/events/business-kyc-passed-event.d.ts +0 -7
  107. package/build/events/business-kyc-passed-event.js +0 -2
  108. package/build/events/checked-address-created-event.d.ts +0 -11
  109. package/build/events/checked-address-created-event.js +0 -2
  110. package/build/events/checked-address-updated-event.d.ts +0 -10
  111. package/build/events/checked-address-updated-event.js +0 -2
  112. package/build/events/clip-card-payment-created-event.d.ts +0 -8
  113. package/build/events/clip-card-payment-created-event.js +0 -2
  114. package/build/events/clip-card-payment-failed-event.d.ts +0 -7
  115. package/build/events/clip-card-payment-failed-event.js +0 -2
  116. package/build/events/deposit-address-created-event.d.ts +0 -8
  117. package/build/events/deposit-address-created-event.js +0 -2
  118. package/build/events/deposit-address-failed-event.d.ts +0 -7
  119. package/build/events/deposit-address-failed-event.js +0 -2
  120. package/build/events/deposit-completed-event.d.ts +0 -9
  121. package/build/events/deposit-completed-event.js +0 -2
  122. package/build/events/deposit-registered-event.d.ts +0 -9
  123. package/build/events/deposit-registered-event.js +0 -2
  124. package/build/events/dlocal-bank-payment-created-event.d.ts +0 -9
  125. package/build/events/dlocal-bank-payment-created-event.js +0 -2
  126. package/build/events/dlocal-bank-payment-failed-event.d.ts +0 -7
  127. package/build/events/dlocal-bank-payment-failed-event.js +0 -2
  128. package/build/events/fees-failed-event.d.ts +0 -7
  129. package/build/events/fees-failed-event.js +0 -2
  130. package/build/events/kyc-failed-event.d.ts +0 -7
  131. package/build/events/kyc-failed-event.js +0 -2
  132. package/build/events/kyc-passed-event.d.ts +0 -7
  133. package/build/events/kyc-passed-event.js +0 -2
  134. package/build/events/liquidity-fill-failed-event.d.ts +0 -7
  135. package/build/events/liquidity-fill-failed-event.js +0 -2
  136. package/build/events/liquidity-filled-event.d.ts +0 -11
  137. package/build/events/liquidity-filled-event.js +0 -2
  138. package/build/events/liquidity-routed-event.d.ts +0 -9
  139. package/build/events/liquidity-routed-event.js +0 -2
  140. package/build/events/liquidity-routing-failed-event.d.ts +0 -7
  141. package/build/events/liquidity-routing-failed-event.js +0 -2
  142. package/build/events/liquidity-transfer-failed-event.d.ts +0 -7
  143. package/build/events/liquidity-transfer-failed-event.js +0 -2
  144. package/build/events/liquidity-transfered-event.d.ts +0 -9
  145. package/build/events/liquidity-transfered-event.js +0 -2
  146. package/build/events/order-created-event.d.ts +0 -39
  147. package/build/events/order-created-event.js +0 -2
  148. package/build/events/order-deleted-event.d.ts +0 -7
  149. package/build/events/order-deleted-event.js +0 -2
  150. package/build/events/order-updated-event.d.ts +0 -37
  151. package/build/events/order-updated-event.js +0 -2
  152. package/build/events/partner-created-event.d.ts +0 -14
  153. package/build/events/partner-created-event.js +0 -2
  154. package/build/events/partner-updated-event.d.ts +0 -19
  155. package/build/events/partner-updated-event.js +0 -2
  156. package/build/events/payment-complete-event.d.ts +0 -9
  157. package/build/events/payment-complete-event.js +0 -2
  158. package/build/events/payment-created-event.d.ts +0 -8
  159. package/build/events/payment-created-event.js +0 -2
  160. package/build/events/payment-failed-event.d.ts +0 -7
  161. package/build/events/payment-failed-event.js +0 -2
  162. package/build/events/processor-routed-event.d.ts +0 -9
  163. package/build/events/processor-routed-event.js +0 -2
  164. package/build/events/processor-routing-failed-event.d.ts +0 -7
  165. package/build/events/processor-routing-failed-event.js +0 -2
  166. package/build/events/quote-failed-event.d.ts +0 -7
  167. package/build/events/quote-failed-event.js +0 -2
  168. package/build/events/rio-settings-created-event.d.ts +0 -8
  169. package/build/events/rio-settings-created-event.js +0 -2
  170. package/build/events/rio-settings-updated-event.d.ts +0 -8
  171. package/build/events/rio-settings-updated-event.js +0 -2
  172. package/build/events/subjects.d.ts +0 -60
  173. package/build/events/subjects.js +0 -64
  174. package/build/events/user-created-event.d.ts +0 -25
  175. package/build/events/user-created-event.js +0 -2
  176. package/build/events/user-deleted-event.d.ts +0 -7
  177. package/build/events/user-deleted-event.js +0 -2
  178. package/build/events/user-disabled-event.d.ts +0 -7
  179. package/build/events/user-disabled-event.js +0 -2
  180. package/build/events/user-updated-event.d.ts +0 -23
  181. package/build/events/user-updated-event.js +0 -2
  182. package/build/events/wyre-ach-payment-created-event.d.ts +0 -9
  183. package/build/events/wyre-ach-payment-created-event.js +0 -2
  184. package/build/events/wyre-payment-method-created-event.d.ts +0 -11
  185. package/build/events/wyre-payment-method-created-event.js +0 -2
  186. package/build/events/wyre-transfer-completed-event.d.ts +0 -9
  187. package/build/events/wyre-transfer-completed-event.js +0 -2
  188. package/build/events/wyre-transfer-created-event.d.ts +0 -9
  189. package/build/events/wyre-transfer-created-event.js +0 -2
  190. package/build/events/wyre-transfer-failed-event.d.ts +0 -9
  191. package/build/events/wyre-transfer-failed-event.js +0 -2
  192. package/build/events/wyre-user-created-event.d.ts +0 -9
  193. package/build/events/wyre-user-created-event.js +0 -2
  194. package/build/types/address-check-result.d.ts +0 -4
  195. package/build/types/address-check-result.js +0 -8
  196. package/build/types/admin.d.ts +0 -4
  197. package/build/types/admin.js +0 -2
  198. package/build/types/api-key.d.ts +0 -5
  199. package/build/types/api-key.js +0 -2
  200. package/build/types/auth-update.d.ts +0 -8
  201. package/build/types/auth-update.js +0 -2
  202. package/build/types/auth.d.ts +0 -6
  203. package/build/types/auth.js +0 -2
  204. package/build/types/authorization-type.d.ts +0 -8
  205. package/build/types/authorization-type.js +0 -12
  206. package/build/types/bank-payout.d.ts +0 -7
  207. package/build/types/bank-payout.js +0 -2
  208. package/build/types/business-user-input.d.ts +0 -27
  209. package/build/types/business-user-input.js +0 -2
  210. package/build/types/business-user-update.d.ts +0 -26
  211. package/build/types/business-user-update.js +0 -2
  212. package/build/types/business-user.d.ts +0 -30
  213. package/build/types/business-user.js +0 -2
  214. package/build/types/ccxt-liquidity-provider.d.ts +0 -5
  215. package/build/types/ccxt-liquidity-provider.js +0 -9
  216. package/build/types/checked-address.d.ts +0 -7
  217. package/build/types/checked-address.js +0 -2
  218. package/build/types/clip-payment-status.d.ts +0 -3
  219. package/build/types/clip-payment-status.js +0 -7
  220. package/build/types/country.d.ts +0 -57
  221. package/build/types/country.js +0 -256
  222. package/build/types/crypto.d.ts +0 -6
  223. package/build/types/crypto.js +0 -38
  224. package/build/types/dlocal-payment-method.d.ts +0 -4
  225. package/build/types/dlocal-payment-method.js +0 -8
  226. package/build/types/fees.d.ts +0 -9
  227. package/build/types/fees.js +0 -2
  228. package/build/types/fiat.d.ts +0 -6
  229. package/build/types/fiat.js +0 -45
  230. package/build/types/kyc-status.d.ts +0 -7
  231. package/build/types/kyc-status.js +0 -11
  232. package/build/types/language.d.ts +0 -6
  233. package/build/types/language.js +0 -10
  234. package/build/types/liquidity-provider.d.ts +0 -9
  235. package/build/types/liquidity-provider.js +0 -13
  236. package/build/types/order-input.d.ts +0 -31
  237. package/build/types/order-input.js +0 -2
  238. package/build/types/order-status.d.ts +0 -21
  239. package/build/types/order-status.js +0 -51
  240. package/build/types/order.d.ts +0 -37
  241. package/build/types/order.js +0 -2
  242. package/build/types/partner-auth.d.ts +0 -5
  243. package/build/types/partner-auth.js +0 -2
  244. package/build/types/partner-stats.d.ts +0 -5
  245. package/build/types/partner-stats.js +0 -2
  246. package/build/types/partner-status.d.ts +0 -6
  247. package/build/types/partner-status.js +0 -10
  248. package/build/types/partner-update.d.ts +0 -10
  249. package/build/types/partner-update.js +0 -2
  250. package/build/types/partner.d.ts +0 -15
  251. package/build/types/partner.js +0 -2
  252. package/build/types/payment-method.d.ts +0 -5
  253. package/build/types/payment-method.js +0 -9
  254. package/build/types/payout-method.d.ts +0 -3
  255. package/build/types/payout-method.js +0 -7
  256. package/build/types/platform-fee-range.d.ts +0 -5
  257. package/build/types/platform-fee-range.js +0 -2
  258. package/build/types/processor.d.ts +0 -12
  259. package/build/types/processor.js +0 -16
  260. package/build/types/quote.d.ts +0 -21
  261. package/build/types/quote.js +0 -2
  262. package/build/types/rio-env.d.ts +0 -6
  263. package/build/types/rio-env.js +0 -10
  264. package/build/types/rio-settings-update.d.ts +0 -4
  265. package/build/types/rio-settings-update.js +0 -2
  266. package/build/types/rio-settings.d.ts +0 -4
  267. package/build/types/rio-settings.js +0 -2
  268. package/build/types/security-question.d.ts +0 -7
  269. package/build/types/security-question.js +0 -11
  270. package/build/types/side.d.ts +0 -4
  271. package/build/types/side.js +0 -8
  272. package/build/types/us-state.d.ts +0 -61
  273. package/build/types/us-state.js +0 -65
  274. package/build/types/user-attribute.d.ts +0 -10
  275. package/build/types/user-attribute.js +0 -14
  276. package/build/types/user-input.d.ts +0 -26
  277. package/build/types/user-input.js +0 -2
  278. package/build/types/user-type.d.ts +0 -4
  279. package/build/types/user-type.js +0 -8
  280. package/build/types/user-update.d.ts +0 -25
  281. package/build/types/user-update.js +0 -2
  282. package/build/types/user.d.ts +0 -30
  283. package/build/types/user.js +0 -2
  284. package/build/types/users-stats.d.ts +0 -3
  285. package/build/types/users-stats.js +0 -2
  286. package/build/types/wyre-address.d.ts +0 -9
  287. package/build/types/wyre-address.js +0 -2
  288. package/build/types/wyre-order-status.d.ts +0 -7
  289. package/build/types/wyre-order-status.js +0 -11
  290. package/build/types/wyre-payment-method.d.ts +0 -40
  291. package/build/types/wyre-payment-method.js +0 -2
  292. package/build/types/wyre-webhook-notification.d.ts +0 -12
  293. package/build/types/wyre-webhook-notification.js +0 -2
@@ -1,9 +0,0 @@
1
- import { Subjects } from "./subjects";
2
- export interface WyreACHPaymentCreatedEvent {
3
- subject: Subjects.WyreACHPaymentCreated;
4
- data: {
5
- id: string;
6
- orderId: string;
7
- plaidToken: string;
8
- };
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { PaymentMethod } from "../types/payment-method";
2
- import { Subjects } from "./subjects";
3
- export interface WyrePaymentMethodCreatedEvent {
4
- subject: Subjects.WyrePaymentMethodCreated;
5
- data: {
6
- id: string;
7
- userId: string;
8
- paymentMethod: PaymentMethod;
9
- wyrePaymentMethodId: string;
10
- };
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { Subjects } from "./subjects";
2
- export interface WyreTransferCompletedEvent {
3
- subject: Subjects.WyreTransferCompleted;
4
- data: {
5
- id: string;
6
- orderId: string;
7
- wyreTransferId: string;
8
- };
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { Subjects } from "./subjects";
2
- export interface WyreTransferCreatedEvent {
3
- subject: Subjects.WyreTransferCreated;
4
- data: {
5
- id: string;
6
- orderId: string;
7
- wyreTransferId: string;
8
- };
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { Subjects } from "./subjects";
2
- export interface WyreTransferFailedEvent {
3
- subject: Subjects.WyreTransferFailed;
4
- data: {
5
- id: string;
6
- orderId: string;
7
- wyreTransferId: string;
8
- };
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { Subjects } from "./subjects";
2
- export interface WyreUserCreatedEvent {
3
- subject: Subjects.WyreUserCreated;
4
- data: {
5
- id: string;
6
- userId: string;
7
- wyreUserId: string;
8
- };
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export declare enum AddressCheckResult {
2
- Passed = "passed",
3
- Failed = "failed"
4
- }
@@ -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 = {}));
@@ -1,4 +0,0 @@
1
- export interface Admin {
2
- id: string;
3
- email: string;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface APIKey {
2
- id: string;
3
- value: string;
4
- label: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { SecurityQuestion } from "./security-question";
2
- export interface AuthUpdate {
3
- phoneNumber?: string;
4
- password?: string;
5
- newPassword?: string;
6
- securityQuestion?: SecurityQuestion;
7
- securityAnswer?: string;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { SecurityQuestion } from "./security-question";
2
- export interface Auth {
3
- id: string;
4
- phoneNumber: string;
5
- securityQuestion?: SecurityQuestion;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- export declare enum AuthorizationType {
2
- UserNoKYC = "newUserNoKYC",
3
- User = "user",
4
- Broker = "broker",
5
- Admin = "admin",
6
- Partner = "partner",
7
- Auth = "auth"
8
- }
@@ -1,12 +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 = exports.AuthorizationType || (exports.AuthorizationType = {}));
@@ -1,7 +0,0 @@
1
- export interface BankPayout {
2
- orderId: string;
3
- originBank: string;
4
- accountNumber: string;
5
- status: string;
6
- destinationBank?: string;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export declare enum CCXTLiquidityProvider {
2
- Kraken = "kraken",
3
- Gemini = "gemini",
4
- Bitstamp = "bitstamp"
5
- }
@@ -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
- import { AddressCheckResult } from "./address-check-result";
2
- export interface CheckedAddress {
3
- id: string;
4
- address: string;
5
- result: AddressCheckResult;
6
- lastChecked: Date;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export declare enum ClipPaymentStatus {
2
- paid = "PAID"
3
- }
@@ -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 = {}));
@@ -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
- }
@@ -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 = {}));
@@ -1,6 +0,0 @@
1
- export declare enum Crypto {
2
- BTC = "BTC",
3
- ETH = "ETH",
4
- USDC = "USDC",
5
- USDCPolygon = "USDC_POLYGON"
6
- }