@riocrypto/common 1.0.1504 → 1.0.1507
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/errors/onboarding-not-approved-error.js +1 -1
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/types/alert-trigger-condition.d.ts +6 -0
- package/build/types/alert-trigger-condition.js +10 -0
- package/build/types/alert-type.d.ts +4 -0
- package/build/types/alert-type.js +8 -0
- package/build/types/alert.d.ts +30 -0
- package/build/types/alert.js +2 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ class OnboardingNotApprovedError extends custom_error_1.CustomError {
|
|
|
9
9
|
super(`Onboarding not approved in ${new CountryAsset_1.CountryAsset(country).getName()}`);
|
|
10
10
|
this.user = user;
|
|
11
11
|
this.country = country;
|
|
12
|
-
this.statusCode =
|
|
12
|
+
this.statusCode = 403;
|
|
13
13
|
this.internalCode = 99;
|
|
14
14
|
Object.setPrototypeOf(this, OnboardingNotApprovedError.prototype);
|
|
15
15
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -240,6 +240,9 @@ export * from "./types/bank-account-verification";
|
|
|
240
240
|
export * from "./types/multipart-liquidity-order";
|
|
241
241
|
export * from "./types/liquidity-order-recipe";
|
|
242
242
|
export * from "./types/onboarding";
|
|
243
|
+
export * from "./types/alert";
|
|
244
|
+
export * from "./types/alert-type";
|
|
245
|
+
export * from "./types/alert-trigger-condition";
|
|
243
246
|
export * from "./classes/Asset";
|
|
244
247
|
export * from "./classes/KYCFieldClass";
|
|
245
248
|
export * from "./classes/KYCFileClass";
|
package/build/index.js
CHANGED
|
@@ -256,6 +256,9 @@ __exportStar(require("./types/bank-account-verification"), exports);
|
|
|
256
256
|
__exportStar(require("./types/multipart-liquidity-order"), exports);
|
|
257
257
|
__exportStar(require("./types/liquidity-order-recipe"), exports);
|
|
258
258
|
__exportStar(require("./types/onboarding"), exports);
|
|
259
|
+
__exportStar(require("./types/alert"), exports);
|
|
260
|
+
__exportStar(require("./types/alert-type"), exports);
|
|
261
|
+
__exportStar(require("./types/alert-trigger-condition"), exports);
|
|
259
262
|
__exportStar(require("./classes/Asset"), exports);
|
|
260
263
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
261
264
|
__exportStar(require("./classes/KYCFileClass"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlertTriggerCondition = void 0;
|
|
4
|
+
var AlertTriggerCondition;
|
|
5
|
+
(function (AlertTriggerCondition) {
|
|
6
|
+
AlertTriggerCondition["GreaterThan"] = "greaterThan";
|
|
7
|
+
AlertTriggerCondition["LessThan"] = "lessThan";
|
|
8
|
+
AlertTriggerCondition["EqualTo"] = "equalTo";
|
|
9
|
+
AlertTriggerCondition["Time"] = "time";
|
|
10
|
+
})(AlertTriggerCondition = exports.AlertTriggerCondition || (exports.AlertTriggerCondition = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlertType = void 0;
|
|
4
|
+
var AlertType;
|
|
5
|
+
(function (AlertType) {
|
|
6
|
+
AlertType["Price"] = "price";
|
|
7
|
+
AlertType["Liquidity"] = "liquidity";
|
|
8
|
+
})(AlertType = exports.AlertType || (exports.AlertType = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Fiat } from "./fiat";
|
|
2
|
+
import { Side } from "./side";
|
|
3
|
+
import { Crypto } from "./crypto";
|
|
4
|
+
import { AlertType } from "./alert-type";
|
|
5
|
+
import { AlertTriggerCondition } from "./alert-trigger-condition";
|
|
6
|
+
export interface Alert {
|
|
7
|
+
id: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
type: AlertType;
|
|
10
|
+
priceTrigger?: {
|
|
11
|
+
condition: AlertTriggerCondition;
|
|
12
|
+
value: number;
|
|
13
|
+
side: Side;
|
|
14
|
+
fiat: Fiat;
|
|
15
|
+
crypto: Crypto;
|
|
16
|
+
cooldown?: number;
|
|
17
|
+
};
|
|
18
|
+
liquidityTrigger: {
|
|
19
|
+
condition: AlertTriggerCondition;
|
|
20
|
+
value: number;
|
|
21
|
+
assetType?: "crypto" | "fiat";
|
|
22
|
+
asset?: Crypto | Fiat;
|
|
23
|
+
cooldown?: number;
|
|
24
|
+
};
|
|
25
|
+
destinationType: "telegram";
|
|
26
|
+
telegramDestination: {
|
|
27
|
+
chatId?: string;
|
|
28
|
+
username?: string;
|
|
29
|
+
};
|
|
30
|
+
}
|