@riocrypto/common 1.0.1513 → 1.0.1515

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.
@@ -84,15 +84,18 @@ export declare class RioAdminClient {
84
84
  createTemporaryVerification(phoneNumber: string): Promise<{
85
85
  code: string;
86
86
  }>;
87
- createAlert({ type, priceTrigger, liquidityTrigger, destinationType, telegramDestination, }: {
87
+ createAlert({ userId, type, priceTrigger, liquidityTrigger, destinationType, telegramDestination, }: {
88
+ userId: string;
88
89
  type: AlertType;
89
90
  priceTrigger?: {
90
91
  condition: AlertTriggerCondition;
92
+ country: Country;
91
93
  value: number;
92
94
  side: Side;
93
95
  fiat: Fiat;
94
96
  crypto: Crypto;
95
97
  cooldown?: number;
98
+ isRecurring?: boolean;
96
99
  };
97
100
  liquidityTrigger?: {
98
101
  condition: AlertTriggerCondition;
@@ -101,6 +104,7 @@ export declare class RioAdminClient {
101
104
  assetType?: "crypto" | "fiat";
102
105
  asset?: Crypto | Fiat;
103
106
  cooldown?: number;
107
+ isRecurring?: boolean;
104
108
  };
105
109
  destinationType: "telegram";
106
110
  telegramDestination: {
@@ -133,9 +133,10 @@ class RioAdminClient {
133
133
  return data;
134
134
  });
135
135
  }
136
- createAlert({ type, priceTrigger, liquidityTrigger, destinationType, telegramDestination, }) {
136
+ createAlert({ userId, type, priceTrigger, liquidityTrigger, destinationType, telegramDestination, }) {
137
137
  return __awaiter(this, void 0, void 0, function* () {
138
138
  const { data } = yield this.axios.post("/api/alerts", {
139
+ userId,
139
140
  type,
140
141
  priceTrigger: priceTrigger ? priceTrigger : undefined,
141
142
  liquidityTrigger: liquidityTrigger ? liquidityTrigger : undefined,
@@ -60,12 +60,14 @@ export declare class RioClient {
60
60
  createAlert({ type, priceTrigger, liquidityTrigger, destinationType, telegramDestination, }: {
61
61
  type: AlertType;
62
62
  priceTrigger?: {
63
+ country: Country;
63
64
  condition: AlertTriggerCondition;
64
65
  value: number;
65
66
  side: Side;
66
67
  fiat: Fiat;
67
68
  crypto: Crypto;
68
69
  cooldown?: number;
70
+ isRecurring?: boolean;
69
71
  };
70
72
  liquidityTrigger?: {
71
73
  condition: AlertTriggerCondition;
@@ -74,6 +76,7 @@ export declare class RioClient {
74
76
  assetType?: "crypto" | "fiat";
75
77
  asset?: Crypto | Fiat;
76
78
  cooldown?: number;
79
+ isRecurring?: boolean;
77
80
  };
78
81
  destinationType: "telegram";
79
82
  telegramDestination: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1513",
3
+ "version": "1.0.1515",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",