@anrmk/str-package 0.1.11 → 0.1.13

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/dist/index.d.cts CHANGED
@@ -4,6 +4,6 @@ export { createDefaultProgress, createDefaultWallet, currentDailyEquity, trading
4
4
  export { isSameUtcDay, parseNumber, toIsoDate } from './utils/helper.cjs';
5
5
  export { TSyncResponse } from './types/index.cjs';
6
6
  export { IBybitAccountInfo, IBybitApiKeyInfo, IBybitApiResponse, IBybitApiResponseList, IBybitClosedPnl, IBybitClosedPnlRequest, IBybitClosedPnlResponse, IBybitCoinBalance, IBybitCredentials, IBybitDemoApplyMoneyItem, IBybitDemoApplyMoneyPayload, IBybitDemoApplyMoneyRequest, IBybitDemoApplyMoneyResponse, IBybitPositionInfo, IBybitWalletAccount, IBybitWalletResponse } from './types/bybit/index.cjs';
7
- export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProvider, TChallengeRule, TChallengeStatistics, TChallengeStatus, TChallengeType, TDrawdownType, TTradingType } from './types/challenge/index.cjs';
7
+ export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProvider, TChallengeRule, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TDrawdownType, TTradingType } from './types/challenge/index.cjs';
8
8
  export { T as TChallengeClosedPnl, a as TChallengeProgress, b as TChallengeWalletBalance } from './TChallengeProgress-C_DBsbUa.cjs';
9
9
  export { I as IBybitAccountType, a as IBybitApiKeyVipLevel, b as IBybitCoinType } from './enums--bdw39rp.cjs';
package/dist/index.d.ts CHANGED
@@ -4,6 +4,6 @@ export { createDefaultProgress, createDefaultWallet, currentDailyEquity, trading
4
4
  export { isSameUtcDay, parseNumber, toIsoDate } from './utils/helper.js';
5
5
  export { TSyncResponse } from './types/index.js';
6
6
  export { IBybitAccountInfo, IBybitApiKeyInfo, IBybitApiResponse, IBybitApiResponseList, IBybitClosedPnl, IBybitClosedPnlRequest, IBybitClosedPnlResponse, IBybitCoinBalance, IBybitCredentials, IBybitDemoApplyMoneyItem, IBybitDemoApplyMoneyPayload, IBybitDemoApplyMoneyRequest, IBybitDemoApplyMoneyResponse, IBybitPositionInfo, IBybitWalletAccount, IBybitWalletResponse } from './types/bybit/index.js';
7
- export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProvider, TChallengeRule, TChallengeStatistics, TChallengeStatus, TChallengeType, TDrawdownType, TTradingType } from './types/challenge/index.js';
7
+ export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProvider, TChallengeRule, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TDrawdownType, TTradingType } from './types/challenge/index.js';
8
8
  export { T as TChallengeClosedPnl, a as TChallengeProgress, b as TChallengeWalletBalance } from './TChallengeProgress-UmIOnrHy.js';
9
9
  export { I as IBybitAccountType, a as IBybitApiKeyVipLevel, b as IBybitCoinType } from './enums--bdw39rp.js';
@@ -1,9 +1,9 @@
1
- import { a as IBybitApiKeyVipLevel } from '../../enums--bdw39rp.cjs';
1
+ import { a as IBybitApiKeyVipLevel, b as IBybitCoinType } from '../../enums--bdw39rp.cjs';
2
2
  import { a as TChallengeProgress, b as TChallengeWalletBalance } from '../../TChallengeProgress-C_DBsbUa.cjs';
3
3
  export { T as TChallengeClosedPnl } from '../../TChallengeProgress-C_DBsbUa.cjs';
4
4
  export { TSyncResponse } from '../index.cjs';
5
5
 
6
- type TChallengeType = "ONE_STEP" | "TWO_STEPS";
6
+ type TChallengeType = "ONE_STEP" | "TWO_STEPS" | "THREE_STEPS";
7
7
  type TChallengeMode = "VERIFICATION" | "CHALLENGE" | "FUNDED";
8
8
  type TTradingType = "Futures" | "Spot" | "Margin" | "Options";
9
9
  type TDrawdownType = "Trailing" | "Fixed";
@@ -11,6 +11,7 @@ type TChallengeCapital = 5000 | 10000 | 25000 | 50000 | 100000 | 200000;
11
11
  type TChallengeProvider = "BYBIT" | "CLEO" | "TEALSTREET" | "TIGER";
12
12
  type TChallengeStatus = "ACTIVE" | "EXPIRED" | "COMPLETED" | "FAILED";
13
13
  type TChallengeRule = {
14
+ readonly id: string;
14
15
  name: string;
15
16
  type: TChallengeType;
16
17
  mode: TChallengeMode;
@@ -22,7 +23,10 @@ type TChallengeRule = {
22
23
  minLossPct: number;
23
24
  profitTargetPct: number;
24
25
  feePolicy: string;
25
- prohibitedActions: string[] | null;
26
+ prohibitedActions: string[];
27
+ readonly createdAt: string;
28
+ readonly updatedAt: string;
29
+ isActive: boolean;
26
30
  };
27
31
 
28
32
  type TChallengeAccountInfo = {
@@ -152,4 +156,15 @@ type TChallengeStatistics = {
152
156
  totalCumExitValue?: number;
153
157
  };
154
158
 
155
- export { type TChallengeAccountInfo, type TChallengeApiKeyInfo, type TChallengeCapital, type TChallengeItem, type TChallengeListItem, type TChallengeMode, type TChallengePositionInfo, TChallengeProgress, type TChallengeProvider, type TChallengeRule, type TChallengeStatistics, type TChallengeStatus, type TChallengeType, TChallengeWalletBalance, type TDrawdownType, type TTradingType };
159
+ type TChallengeTier = {
160
+ readonly id: string;
161
+ readonly ruleId: string;
162
+ capital: TChallengeCapital;
163
+ currency: IBybitCoinType;
164
+ priceUsd: number;
165
+ isActive: boolean;
166
+ readonly createdAt: string;
167
+ readonly updatedAt: string;
168
+ };
169
+
170
+ export { type TChallengeAccountInfo, type TChallengeApiKeyInfo, type TChallengeCapital, type TChallengeItem, type TChallengeListItem, type TChallengeMode, type TChallengePositionInfo, TChallengeProgress, type TChallengeProvider, type TChallengeRule, type TChallengeStatistics, type TChallengeStatus, type TChallengeTier, type TChallengeType, TChallengeWalletBalance, type TDrawdownType, type TTradingType };
@@ -1,9 +1,9 @@
1
- import { a as IBybitApiKeyVipLevel } from '../../enums--bdw39rp.js';
1
+ import { a as IBybitApiKeyVipLevel, b as IBybitCoinType } from '../../enums--bdw39rp.js';
2
2
  import { a as TChallengeProgress, b as TChallengeWalletBalance } from '../../TChallengeProgress-UmIOnrHy.js';
3
3
  export { T as TChallengeClosedPnl } from '../../TChallengeProgress-UmIOnrHy.js';
4
4
  export { TSyncResponse } from '../index.js';
5
5
 
6
- type TChallengeType = "ONE_STEP" | "TWO_STEPS";
6
+ type TChallengeType = "ONE_STEP" | "TWO_STEPS" | "THREE_STEPS";
7
7
  type TChallengeMode = "VERIFICATION" | "CHALLENGE" | "FUNDED";
8
8
  type TTradingType = "Futures" | "Spot" | "Margin" | "Options";
9
9
  type TDrawdownType = "Trailing" | "Fixed";
@@ -11,6 +11,7 @@ type TChallengeCapital = 5000 | 10000 | 25000 | 50000 | 100000 | 200000;
11
11
  type TChallengeProvider = "BYBIT" | "CLEO" | "TEALSTREET" | "TIGER";
12
12
  type TChallengeStatus = "ACTIVE" | "EXPIRED" | "COMPLETED" | "FAILED";
13
13
  type TChallengeRule = {
14
+ readonly id: string;
14
15
  name: string;
15
16
  type: TChallengeType;
16
17
  mode: TChallengeMode;
@@ -22,7 +23,10 @@ type TChallengeRule = {
22
23
  minLossPct: number;
23
24
  profitTargetPct: number;
24
25
  feePolicy: string;
25
- prohibitedActions: string[] | null;
26
+ prohibitedActions: string[];
27
+ readonly createdAt: string;
28
+ readonly updatedAt: string;
29
+ isActive: boolean;
26
30
  };
27
31
 
28
32
  type TChallengeAccountInfo = {
@@ -152,4 +156,15 @@ type TChallengeStatistics = {
152
156
  totalCumExitValue?: number;
153
157
  };
154
158
 
155
- export { type TChallengeAccountInfo, type TChallengeApiKeyInfo, type TChallengeCapital, type TChallengeItem, type TChallengeListItem, type TChallengeMode, type TChallengePositionInfo, TChallengeProgress, type TChallengeProvider, type TChallengeRule, type TChallengeStatistics, type TChallengeStatus, type TChallengeType, TChallengeWalletBalance, type TDrawdownType, type TTradingType };
159
+ type TChallengeTier = {
160
+ readonly id: string;
161
+ readonly ruleId: string;
162
+ capital: TChallengeCapital;
163
+ currency: IBybitCoinType;
164
+ priceUsd: number;
165
+ isActive: boolean;
166
+ readonly createdAt: string;
167
+ readonly updatedAt: string;
168
+ };
169
+
170
+ export { type TChallengeAccountInfo, type TChallengeApiKeyInfo, type TChallengeCapital, type TChallengeItem, type TChallengeListItem, type TChallengeMode, type TChallengePositionInfo, TChallengeProgress, type TChallengeProvider, type TChallengeRule, type TChallengeStatistics, type TChallengeStatus, type TChallengeTier, type TChallengeType, TChallengeWalletBalance, type TDrawdownType, type TTradingType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anrmk/str-package",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Shared providers, types, and utils for STR services",
5
5
  "license": "MIT",
6
6
  "type": "module",