@anrmk/str-package 0.2.23 → 0.2.25

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.
@@ -1,13 +1,24 @@
1
- import { a as IBybitApiKeyVipLevel, I as IBybitAccountType, c as IBybitCoinType } from '../../enums-B4IJ4ODY.cjs';
1
+ import { c as IBybitCoinType, a as IBybitApiKeyVipLevel, I as IBybitAccountType } from '../../enums-B4IJ4ODY.cjs';
2
2
  export { T as TSyncResponse } from '../../TSyncResponse-CB1OIGwI.cjs';
3
3
 
4
+ type TChallengeTier = {
5
+ readonly id: string;
6
+ readonly ruleId: string;
7
+ capital: TChallengeCapital;
8
+ currency: IBybitCoinType;
9
+ priceUsd: number;
10
+ readonly isActive: boolean;
11
+ readonly createdAt: string;
12
+ readonly updatedAt: string;
13
+ };
14
+
4
15
  type TChallengeType = "ONE_STEP" | "TWO_STEPS" | "THREE_STEPS";
5
16
  type TChallengeMode = "VERIFICATION" | "CHALLENGE" | "FUNDED";
6
17
  type TTradingType = "Futures" | "Spot" | "Margin" | "Options";
7
18
  type TDrawdownType = "Trailing" | "Fixed";
8
19
  type TChallengeCapital = 5000 | 10000 | 25000 | 50000 | 100000 | 200000;
9
- type TChallengeProvider = "BYBIT" | "CLEO" | "TEALSTREET" | "TIGER";
10
- type TChallengeStatus = "ACTIVE" | "EXPIRED" | "COMPLETED" | "FAILED";
20
+ type TChallengeProvider = "BYBIT" | "CLEO" | "TEALSTREET" | "TIGER" | "BLOFIN";
21
+ type TChallengeStatus = "ACTIVE" | "EXPIRED" | "COMPLETED" | "FAILED" | "PASSED" | "CANCELLED" | "ARCHIVED" | "IN_PROGRESS" | "DRAFT";
11
22
  type TChallengeRule = {
12
23
  readonly id: string;
13
24
  readonly nextRuleId: string | null;
@@ -25,6 +36,7 @@ type TChallengeRule = {
25
36
  feePolicy: string;
26
37
  prohibitedActions: string[];
27
38
  tiers?: TChallengeTier[];
39
+ readonly minTierPrice: number;
28
40
  readonly isActive: boolean;
29
41
  readonly createdAt: string;
30
42
  readonly updatedAt: string;
@@ -231,15 +243,4 @@ type TChallengeStatistics = {
231
243
  readonly updatedAt: string;
232
244
  };
233
245
 
234
- type TChallengeTier = {
235
- readonly id: string;
236
- readonly ruleId: string;
237
- capital: TChallengeCapital;
238
- currency: IBybitCoinType;
239
- priceUsd: number;
240
- readonly isActive: boolean;
241
- readonly createdAt: string;
242
- readonly updatedAt: string;
243
- };
244
-
245
246
  export type { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeClosedPnl, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProgress, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TChallengeWalletBalance, TDrawdownType, TTradingType };
@@ -1,13 +1,24 @@
1
- import { a as IBybitApiKeyVipLevel, I as IBybitAccountType, c as IBybitCoinType } from '../../enums-B4IJ4ODY.js';
1
+ import { c as IBybitCoinType, a as IBybitApiKeyVipLevel, I as IBybitAccountType } from '../../enums-B4IJ4ODY.js';
2
2
  export { T as TSyncResponse } from '../../TSyncResponse-CB1OIGwI.js';
3
3
 
4
+ type TChallengeTier = {
5
+ readonly id: string;
6
+ readonly ruleId: string;
7
+ capital: TChallengeCapital;
8
+ currency: IBybitCoinType;
9
+ priceUsd: number;
10
+ readonly isActive: boolean;
11
+ readonly createdAt: string;
12
+ readonly updatedAt: string;
13
+ };
14
+
4
15
  type TChallengeType = "ONE_STEP" | "TWO_STEPS" | "THREE_STEPS";
5
16
  type TChallengeMode = "VERIFICATION" | "CHALLENGE" | "FUNDED";
6
17
  type TTradingType = "Futures" | "Spot" | "Margin" | "Options";
7
18
  type TDrawdownType = "Trailing" | "Fixed";
8
19
  type TChallengeCapital = 5000 | 10000 | 25000 | 50000 | 100000 | 200000;
9
- type TChallengeProvider = "BYBIT" | "CLEO" | "TEALSTREET" | "TIGER";
10
- type TChallengeStatus = "ACTIVE" | "EXPIRED" | "COMPLETED" | "FAILED";
20
+ type TChallengeProvider = "BYBIT" | "CLEO" | "TEALSTREET" | "TIGER" | "BLOFIN";
21
+ type TChallengeStatus = "ACTIVE" | "EXPIRED" | "COMPLETED" | "FAILED" | "PASSED" | "CANCELLED" | "ARCHIVED" | "IN_PROGRESS" | "DRAFT";
11
22
  type TChallengeRule = {
12
23
  readonly id: string;
13
24
  readonly nextRuleId: string | null;
@@ -25,6 +36,7 @@ type TChallengeRule = {
25
36
  feePolicy: string;
26
37
  prohibitedActions: string[];
27
38
  tiers?: TChallengeTier[];
39
+ readonly minTierPrice: number;
28
40
  readonly isActive: boolean;
29
41
  readonly createdAt: string;
30
42
  readonly updatedAt: string;
@@ -231,15 +243,4 @@ type TChallengeStatistics = {
231
243
  readonly updatedAt: string;
232
244
  };
233
245
 
234
- type TChallengeTier = {
235
- readonly id: string;
236
- readonly ruleId: string;
237
- capital: TChallengeCapital;
238
- currency: IBybitCoinType;
239
- priceUsd: number;
240
- readonly isActive: boolean;
241
- readonly createdAt: string;
242
- readonly updatedAt: string;
243
- };
244
-
245
246
  export type { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeClosedPnl, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProgress, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TChallengeWalletBalance, TDrawdownType, TTradingType };
@@ -1,7 +1,7 @@
1
1
  export { T as TSyncResponse } from '../TSyncResponse-CB1OIGwI.cjs';
2
2
 
3
- type TPaymentProviderId = "free" | "confirmo" | "moonpay" | "nowpayments" | "zen";
4
- type TPaymentStatus = "created" | "pending" | "completed" | "failed";
3
+ type TPaymentProviderId = "FREE" | "CONFIRMO" | "MOONPAY" | "NOWPAYMENTS" | "ZEN";
4
+ type TPaymentStatus = "CREATED" | "PENDING" | "COMPLETED" | "FAILED";
5
5
  type TCreatePaymentRequest = {
6
6
  amount: number;
7
7
  currency: string;
@@ -1,7 +1,7 @@
1
1
  export { T as TSyncResponse } from '../TSyncResponse-CB1OIGwI.js';
2
2
 
3
- type TPaymentProviderId = "free" | "confirmo" | "moonpay" | "nowpayments" | "zen";
4
- type TPaymentStatus = "created" | "pending" | "completed" | "failed";
3
+ type TPaymentProviderId = "FREE" | "CONFIRMO" | "MOONPAY" | "NOWPAYMENTS" | "ZEN";
4
+ type TPaymentStatus = "CREATED" | "PENDING" | "COMPLETED" | "FAILED";
5
5
  type TCreatePaymentRequest = {
6
6
  amount: number;
7
7
  currency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anrmk/str-package",
3
- "version": "0.2.23",
3
+ "version": "0.2.25",
4
4
  "description": "Shared providers, types, and utils for STR services",
5
5
  "license": "MIT",
6
6
  "type": "module",