@anrmk/str-package 0.2.22 → 0.2.24
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/TSyncResponse-CB1OIGwI.d.cts +8 -0
- package/dist/TSyncResponse-CB1OIGwI.d.ts +8 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/types/challenge/index.d.cts +16 -15
- package/dist/types/challenge/index.d.ts +16 -15
- package/dist/types/index.d.cts +20 -6
- package/dist/types/index.d.ts +20 -6
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { BybitClient } from './clients/index.cjs';
|
|
2
2
|
export { applyDemoMoney, getAccountInfo, getApiKeyInfo, getClosedPnl, getPositionInfo, getServerTime, getWalletBalance, orderCreateBatch } from './providers/bybit/index.cjs';
|
|
3
3
|
export { getBybitTimestamp, isSameUtcDay, parseNumber, signBybitRequest, syncBybitServerTime, toIsoDate } from './utils/index.cjs';
|
|
4
|
-
export { TSyncResponse } from './
|
|
4
|
+
export { T as TSyncResponse } from './TSyncResponse-CB1OIGwI.cjs';
|
|
5
|
+
export { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus } from './types/index.cjs';
|
|
5
6
|
export { IBybitAccountInfo, IBybitApiKeyInfo, IBybitApiKeyPermissions, IBybitApiResponse, IBybitApiResponseList, IBybitClosedPnl, IBybitClosedPnlRequest, IBybitCoinBalance, IBybitDemoApplyMoney, IBybitDemoApplyMoneyItem, IBybitDemoApplyMoneyRequest, IBybitOrderCreateBatchPayload, IBybitOrderCreateBatchRequest, IBybitOrderCreateBatchResponse, IBybitPositionInfo, IBybitPositionInfoRequest, IBybitPositionInfoResponse, IBybitServerTime, IBybitWalletAccount } from './types/bybit/index.cjs';
|
|
6
7
|
export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeClosedPnl, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProgress, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TChallengeWalletBalance, TDrawdownType, TTradingType } from './types/challenge/index.cjs';
|
|
7
8
|
export { I as IBybitAccountType, a as IBybitApiKeyVipLevel, b as IBybitCategory, c as IBybitCoinType, d as IBybitMarginMode, e as IBybitOrderType, f as IBybitPositionSide, g as IBybitUnifiedMarginStatus } from './enums-B4IJ4ODY.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { BybitClient } from './clients/index.js';
|
|
2
2
|
export { applyDemoMoney, getAccountInfo, getApiKeyInfo, getClosedPnl, getPositionInfo, getServerTime, getWalletBalance, orderCreateBatch } from './providers/bybit/index.js';
|
|
3
3
|
export { getBybitTimestamp, isSameUtcDay, parseNumber, signBybitRequest, syncBybitServerTime, toIsoDate } from './utils/index.js';
|
|
4
|
-
export { TSyncResponse } from './
|
|
4
|
+
export { T as TSyncResponse } from './TSyncResponse-CB1OIGwI.js';
|
|
5
|
+
export { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus } from './types/index.js';
|
|
5
6
|
export { IBybitAccountInfo, IBybitApiKeyInfo, IBybitApiKeyPermissions, IBybitApiResponse, IBybitApiResponseList, IBybitClosedPnl, IBybitClosedPnlRequest, IBybitCoinBalance, IBybitDemoApplyMoney, IBybitDemoApplyMoneyItem, IBybitDemoApplyMoneyRequest, IBybitOrderCreateBatchPayload, IBybitOrderCreateBatchRequest, IBybitOrderCreateBatchResponse, IBybitPositionInfo, IBybitPositionInfoRequest, IBybitPositionInfoResponse, IBybitServerTime, IBybitWalletAccount } from './types/bybit/index.js';
|
|
6
7
|
export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeClosedPnl, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProgress, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TChallengeWalletBalance, TDrawdownType, TTradingType } from './types/challenge/index.js';
|
|
7
8
|
export { I as IBybitAccountType, a as IBybitApiKeyVipLevel, b as IBybitCategory, c as IBybitCoinType, d as IBybitMarginMode, e as IBybitOrderType, f as IBybitPositionSide, g as IBybitUnifiedMarginStatus } from './enums-B4IJ4ODY.js';
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { TSyncResponse } from '
|
|
1
|
+
import { c as IBybitCoinType, a as IBybitApiKeyVipLevel, I as IBybitAccountType } from '../../enums-B4IJ4ODY.cjs';
|
|
2
|
+
export { T as TSyncResponse } from '../../TSyncResponse-CB1OIGwI.cjs';
|
|
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
|
+
};
|
|
3
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 {
|
|
2
|
-
export { TSyncResponse } from '
|
|
1
|
+
import { c as IBybitCoinType, a as IBybitApiKeyVipLevel, I as IBybitAccountType } from '../../enums-B4IJ4ODY.js';
|
|
2
|
+
export { T as TSyncResponse } from '../../TSyncResponse-CB1OIGwI.js';
|
|
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
|
+
};
|
|
3
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 };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { T as TSyncResponse } from '../TSyncResponse-CB1OIGwI.cjs';
|
|
2
|
+
|
|
3
|
+
type TPaymentProviderId = "free" | "confirmo" | "moonpay" | "nowpayments" | "zen";
|
|
4
|
+
type TPaymentStatus = "created" | "pending" | "completed" | "failed";
|
|
5
|
+
type TCreatePaymentRequest = {
|
|
6
|
+
amount: number;
|
|
7
|
+
currency: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
orderId?: string;
|
|
10
|
+
};
|
|
11
|
+
type TCreatePaymentResult = {
|
|
12
|
+
provider: TPaymentProviderId;
|
|
13
|
+
paymentId?: string;
|
|
14
|
+
checkoutUrl: string;
|
|
15
|
+
status: TPaymentStatus;
|
|
16
|
+
};
|
|
17
|
+
type TPaymentProvider = {
|
|
18
|
+
readonly id: TPaymentProviderId;
|
|
19
|
+
createPayment(request: TCreatePaymentRequest): Promise<TCreatePaymentResult>;
|
|
6
20
|
};
|
|
7
21
|
|
|
8
|
-
export type {
|
|
22
|
+
export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { T as TSyncResponse } from '../TSyncResponse-CB1OIGwI.js';
|
|
2
|
+
|
|
3
|
+
type TPaymentProviderId = "free" | "confirmo" | "moonpay" | "nowpayments" | "zen";
|
|
4
|
+
type TPaymentStatus = "created" | "pending" | "completed" | "failed";
|
|
5
|
+
type TCreatePaymentRequest = {
|
|
6
|
+
amount: number;
|
|
7
|
+
currency: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
orderId?: string;
|
|
10
|
+
};
|
|
11
|
+
type TCreatePaymentResult = {
|
|
12
|
+
provider: TPaymentProviderId;
|
|
13
|
+
paymentId?: string;
|
|
14
|
+
checkoutUrl: string;
|
|
15
|
+
status: TPaymentStatus;
|
|
16
|
+
};
|
|
17
|
+
type TPaymentProvider = {
|
|
18
|
+
readonly id: TPaymentProviderId;
|
|
19
|
+
createPayment(request: TCreatePaymentRequest): Promise<TCreatePaymentResult>;
|
|
6
20
|
};
|
|
7
21
|
|
|
8
|
-
export type {
|
|
22
|
+
export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus };
|