@anrmk/str-package 0.1.13 → 0.1.15

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, TChallengeTier, TChallengeType, TDrawdownType, TTradingType } from './types/challenge/index.cjs';
7
+ export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, 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, TChallengeTier, TChallengeType, TDrawdownType, TTradingType } from './types/challenge/index.js';
7
+ export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, 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';
@@ -24,10 +24,16 @@ type TChallengeRule = {
24
24
  profitTargetPct: number;
25
25
  feePolicy: string;
26
26
  prohibitedActions: string[];
27
+ isActive: boolean;
27
28
  readonly createdAt: string;
28
29
  readonly updatedAt: string;
29
- isActive: boolean;
30
+ tiers?: TChallengeTier[];
30
31
  };
32
+ interface TChallengeRuleGroup {
33
+ label: string;
34
+ mode: TChallengeMode;
35
+ rules: TChallengeRule[];
36
+ }
31
37
 
32
38
  type TChallengeAccountInfo = {
33
39
  challengeId: string;
@@ -167,4 +173,4 @@ type TChallengeTier = {
167
173
  readonly updatedAt: string;
168
174
  };
169
175
 
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 };
176
+ export { type TChallengeAccountInfo, type TChallengeApiKeyInfo, type TChallengeCapital, type TChallengeItem, type TChallengeListItem, type TChallengeMode, type TChallengePositionInfo, TChallengeProgress, type TChallengeProvider, type TChallengeRule, type TChallengeRuleGroup, type TChallengeStatistics, type TChallengeStatus, type TChallengeTier, type TChallengeType, TChallengeWalletBalance, type TDrawdownType, type TTradingType };
@@ -24,10 +24,16 @@ type TChallengeRule = {
24
24
  profitTargetPct: number;
25
25
  feePolicy: string;
26
26
  prohibitedActions: string[];
27
+ isActive: boolean;
27
28
  readonly createdAt: string;
28
29
  readonly updatedAt: string;
29
- isActive: boolean;
30
+ tiers?: TChallengeTier[];
30
31
  };
32
+ interface TChallengeRuleGroup {
33
+ label: string;
34
+ mode: TChallengeMode;
35
+ rules: TChallengeRule[];
36
+ }
31
37
 
32
38
  type TChallengeAccountInfo = {
33
39
  challengeId: string;
@@ -167,4 +173,4 @@ type TChallengeTier = {
167
173
  readonly updatedAt: string;
168
174
  };
169
175
 
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 };
176
+ export { type TChallengeAccountInfo, type TChallengeApiKeyInfo, type TChallengeCapital, type TChallengeItem, type TChallengeListItem, type TChallengeMode, type TChallengePositionInfo, TChallengeProgress, type TChallengeProvider, type TChallengeRule, type TChallengeRuleGroup, 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.13",
3
+ "version": "0.1.15",
4
4
  "description": "Shared providers, types, and utils for STR services",
5
5
  "license": "MIT",
6
6
  "type": "module",