@riocrypto/common 1.0.1158 → 1.0.1160

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.
@@ -0,0 +1,7 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface BridgeKYCCompletedEvent {
3
+ subject: Subjects.BridgeKYCCompleted;
4
+ data: {
5
+ userId: string;
6
+ };
7
+ }
@@ -0,0 +1,7 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface BridgeOnboardingCompleted {
3
+ subject: Subjects.BridgeOnboardingCompleted;
4
+ data: {
5
+ userId: string;
6
+ };
7
+ }
@@ -0,0 +1,7 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface BridgeOnboardingFailed {
3
+ subject: Subjects.BridgeOnboardingFailed;
4
+ data: {
5
+ userId: string;
6
+ };
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface BridgeOnboardingStartedEvent {
3
+ subject: Subjects.BridgeOnboardingStarted;
4
+ data: {
5
+ userId: string;
6
+ };
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface BridgeTOSCompletedEvent {
3
+ subject: Subjects.BridgeTOSCompleted;
4
+ data: {
5
+ userId: string;
6
+ };
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -52,9 +52,11 @@ export declare enum Subjects {
52
52
  ExchangeRateFixInProcess = "exchangeRate:fixInProcess",
53
53
  ExchangeRateNotFixed = "exchangeRate:notFixed",
54
54
  ExchangeRatePartiallyFixed = "exchangeRate:partiallyFixed",
55
- BridgeKYCPassed = "bridgeKyc:passed",
56
- BridgeKYCStarted = "bridgeKyc:started",
57
- BridgeKYCFailed = "bridgeKyc:failed",
55
+ BridgeOnboardingCompleted = "bridgeOnboarding:complete",
56
+ BridgeOnboardingFailed = "bridgeOnboarding:failed",
57
+ BridgeOnboardingStarted = "bridgeOnboarding:started",
58
+ BridgeKYCCompleted = "bridgeKYC:complete",
59
+ BridgeTOSCompleted = "bridgeTOS:complete",
58
60
  BusinessKYCPassed = "businessKyc:passed",
59
61
  BusinessKYCFailed = "businessKyc:failed",
60
62
  BridgeTransferCreationSuccess = "bridgeTransferCreation:success",
@@ -56,9 +56,11 @@ var Subjects;
56
56
  Subjects["ExchangeRateFixInProcess"] = "exchangeRate:fixInProcess";
57
57
  Subjects["ExchangeRateNotFixed"] = "exchangeRate:notFixed";
58
58
  Subjects["ExchangeRatePartiallyFixed"] = "exchangeRate:partiallyFixed";
59
- Subjects["BridgeKYCPassed"] = "bridgeKyc:passed";
60
- Subjects["BridgeKYCStarted"] = "bridgeKyc:started";
61
- Subjects["BridgeKYCFailed"] = "bridgeKyc:failed";
59
+ Subjects["BridgeOnboardingCompleted"] = "bridgeOnboarding:complete";
60
+ Subjects["BridgeOnboardingFailed"] = "bridgeOnboarding:failed";
61
+ Subjects["BridgeOnboardingStarted"] = "bridgeOnboarding:started";
62
+ Subjects["BridgeKYCCompleted"] = "bridgeKYC:complete";
63
+ Subjects["BridgeTOSCompleted"] = "bridgeTOS:complete";
62
64
  Subjects["BusinessKYCPassed"] = "businessKyc:passed";
63
65
  Subjects["BusinessKYCFailed"] = "businessKyc:failed";
64
66
  Subjects["BridgeTransferCreationSuccess"] = "bridgeTransferCreation:success";
@@ -21,7 +21,7 @@ const humanizeKYCStatus = (status) => {
21
21
  case kyc_status_1.KYCStatus.None:
22
22
  return "None";
23
23
  default:
24
- return "Unknown";
24
+ return "Processing";
25
25
  }
26
26
  };
27
27
  exports.humanizeKYCStatus = humanizeKYCStatus;
package/build/index.d.ts CHANGED
@@ -85,8 +85,11 @@ export * from "./events/deposit-address-failed-event";
85
85
  export * from "./events/kyc-passed-event";
86
86
  export * from "./events/kyc-review-event";
87
87
  export * from "./events/kyc-failed-event";
88
- export * from "./events/bridge-kyc-passed-event";
89
- export * from "./events/bridge-kyc-started-event";
88
+ export * from "./events/bridge-onboarding-completed-event";
89
+ export * from "./events/bridge-onboarding-failed-event";
90
+ export * from "./events/bridge-onboarding-started-event";
91
+ export * from "./events/bridge-kyc-completed-event";
92
+ export * from "./events/bridge-tos-completed-event";
90
93
  export * from "./events/fees-updated-event";
91
94
  export * from "./events/bank-payout-completed-event";
92
95
  export * from "./events/address-check-passed-event";
package/build/index.js CHANGED
@@ -101,8 +101,11 @@ __exportStar(require("./events/deposit-address-failed-event"), exports);
101
101
  __exportStar(require("./events/kyc-passed-event"), exports);
102
102
  __exportStar(require("./events/kyc-review-event"), exports);
103
103
  __exportStar(require("./events/kyc-failed-event"), exports);
104
- __exportStar(require("./events/bridge-kyc-passed-event"), exports);
105
- __exportStar(require("./events/bridge-kyc-started-event"), exports);
104
+ __exportStar(require("./events/bridge-onboarding-completed-event"), exports);
105
+ __exportStar(require("./events/bridge-onboarding-failed-event"), exports);
106
+ __exportStar(require("./events/bridge-onboarding-started-event"), exports);
107
+ __exportStar(require("./events/bridge-kyc-completed-event"), exports);
108
+ __exportStar(require("./events/bridge-tos-completed-event"), exports);
106
109
  __exportStar(require("./events/fees-updated-event"), exports);
107
110
  __exportStar(require("./events/bank-payout-completed-event"), exports);
108
111
  __exportStar(require("./events/address-check-passed-event"), exports);
@@ -1,9 +1,12 @@
1
1
  export declare enum KYCStatus {
2
2
  Approved = "approved",
3
3
  IndividualPassed = "individualPassed",
4
+ IndividualReview = "individualReview",
4
5
  IndividualFailed = "individualFailed",
5
6
  LegalRepresentativePassed = "legalRepresentativeApproved",
6
7
  LegalRepresentativeFailed = "legalRepresentativeFailed",
8
+ BridgeToSCompleted = "bridgeToSCompleted",
9
+ BridgeKYCCompleted = "bridgeKYCCompleted",
7
10
  Failed = "failed",
8
11
  Review = "review",
9
12
  None = "none"
@@ -5,9 +5,12 @@ var KYCStatus;
5
5
  (function (KYCStatus) {
6
6
  KYCStatus["Approved"] = "approved";
7
7
  KYCStatus["IndividualPassed"] = "individualPassed";
8
+ KYCStatus["IndividualReview"] = "individualReview";
8
9
  KYCStatus["IndividualFailed"] = "individualFailed";
9
10
  KYCStatus["LegalRepresentativePassed"] = "legalRepresentativeApproved";
10
11
  KYCStatus["LegalRepresentativeFailed"] = "legalRepresentativeFailed";
12
+ KYCStatus["BridgeToSCompleted"] = "bridgeToSCompleted";
13
+ KYCStatus["BridgeKYCCompleted"] = "bridgeKYCCompleted";
11
14
  KYCStatus["Failed"] = "failed";
12
15
  KYCStatus["Review"] = "review";
13
16
  KYCStatus["None"] = "none";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1158",
3
+ "version": "1.0.1160",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,7 +0,0 @@
1
- import { Subjects } from "./subjects";
2
- export interface BridgeKYCPassedEvent {
3
- subject: Subjects.BridgeKYCPassed;
4
- data: {
5
- userId: string;
6
- };
7
- }
@@ -1,7 +0,0 @@
1
- import { Subjects } from "./subjects";
2
- export interface BridgeKYCStartedEvent {
3
- subject: Subjects.BridgeKYCStarted;
4
- data: {
5
- userId: string;
6
- };
7
- }