@anrmk/str-package 0.2.25 → 0.2.27
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 +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/types/challenge/index.d.cts +9 -2
- package/dist/types/challenge/index.d.ts +9 -2
- package/dist/types/index.d.cts +8 -2
- package/dist/types/index.d.ts +8 -2
- package/package.json +1 -1
- package/dist/TSyncResponse-CB1OIGwI.d.cts +0 -8
- package/dist/TSyncResponse-CB1OIGwI.d.ts +0 -8
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +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 {
|
|
5
|
-
export { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus } from './types/index.cjs';
|
|
4
|
+
export { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus, TSyncResponse } from './types/index.cjs';
|
|
6
5
|
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';
|
|
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';
|
|
6
|
+
export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeClosedPnl, TChallengeInvoice, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProgress, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TChallengeWalletBalance, TDrawdownType, TTradingType } from './types/challenge/index.cjs';
|
|
8
7
|
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';
|
|
9
8
|
export { I as IBybitCredentials, a as IBybitSignRequest } from './IBybitSignRequest-cA1RCbDS.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +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 {
|
|
5
|
-
export { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus } from './types/index.js';
|
|
4
|
+
export { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus, TSyncResponse } from './types/index.js';
|
|
6
5
|
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';
|
|
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';
|
|
6
|
+
export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeClosedPnl, TChallengeInvoice, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProgress, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TChallengeWalletBalance, TDrawdownType, TTradingType } from './types/challenge/index.js';
|
|
8
7
|
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';
|
|
9
8
|
export { I as IBybitCredentials, a as IBybitSignRequest } from './IBybitSignRequest-cA1RCbDS.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { c as IBybitCoinType, a as IBybitApiKeyVipLevel, I as IBybitAccountType } from '../../enums-B4IJ4ODY.cjs';
|
|
2
|
-
|
|
2
|
+
import { TCreatePaymentResult } from '../index.cjs';
|
|
3
|
+
export { TSyncResponse } from '../index.cjs';
|
|
3
4
|
|
|
4
5
|
type TChallengeTier = {
|
|
5
6
|
readonly id: string;
|
|
@@ -205,6 +206,7 @@ type TChallengeItem = TChallengeBase & {
|
|
|
205
206
|
progress?: TChallengeProgress;
|
|
206
207
|
rule?: TChallengeRule;
|
|
207
208
|
wallet?: TChallengeWalletBalance;
|
|
209
|
+
invoice?: TChallengeInvoice;
|
|
208
210
|
closedPnl?: TChallengeClosedPnl[];
|
|
209
211
|
pinfo?: TChallengePositionInfo[];
|
|
210
212
|
daysActive?: number | null;
|
|
@@ -243,4 +245,9 @@ type TChallengeStatistics = {
|
|
|
243
245
|
readonly updatedAt: string;
|
|
244
246
|
};
|
|
245
247
|
|
|
246
|
-
|
|
248
|
+
type TChallengeInvoice = TCreatePaymentResult & {
|
|
249
|
+
readonly createdAt: string;
|
|
250
|
+
readonly updatedAt: string;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export type { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeClosedPnl, TChallengeInvoice, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProgress, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TChallengeWalletBalance, TDrawdownType, TTradingType };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { c as IBybitCoinType, a as IBybitApiKeyVipLevel, I as IBybitAccountType } from '../../enums-B4IJ4ODY.js';
|
|
2
|
-
|
|
2
|
+
import { TCreatePaymentResult } from '../index.js';
|
|
3
|
+
export { TSyncResponse } from '../index.js';
|
|
3
4
|
|
|
4
5
|
type TChallengeTier = {
|
|
5
6
|
readonly id: string;
|
|
@@ -205,6 +206,7 @@ type TChallengeItem = TChallengeBase & {
|
|
|
205
206
|
progress?: TChallengeProgress;
|
|
206
207
|
rule?: TChallengeRule;
|
|
207
208
|
wallet?: TChallengeWalletBalance;
|
|
209
|
+
invoice?: TChallengeInvoice;
|
|
208
210
|
closedPnl?: TChallengeClosedPnl[];
|
|
209
211
|
pinfo?: TChallengePositionInfo[];
|
|
210
212
|
daysActive?: number | null;
|
|
@@ -243,4 +245,9 @@ type TChallengeStatistics = {
|
|
|
243
245
|
readonly updatedAt: string;
|
|
244
246
|
};
|
|
245
247
|
|
|
246
|
-
|
|
248
|
+
type TChallengeInvoice = TCreatePaymentResult & {
|
|
249
|
+
readonly createdAt: string;
|
|
250
|
+
readonly updatedAt: string;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export type { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeClosedPnl, TChallengeInvoice, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProgress, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TChallengeWalletBalance, TDrawdownType, TTradingType };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
type TSyncResponse<T> = {
|
|
2
|
+
success: boolean;
|
|
3
|
+
message?: string;
|
|
4
|
+
data?: T | null;
|
|
5
|
+
timestamp?: string | number;
|
|
6
|
+
};
|
|
2
7
|
|
|
3
8
|
type TPaymentProviderId = "FREE" | "CONFIRMO" | "MOONPAY" | "NOWPAYMENTS" | "ZEN";
|
|
4
9
|
type TPaymentStatus = "CREATED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
@@ -7,6 +12,7 @@ type TCreatePaymentRequest = {
|
|
|
7
12
|
currency: string;
|
|
8
13
|
description?: string;
|
|
9
14
|
orderId?: string;
|
|
15
|
+
customerEmail?: string;
|
|
10
16
|
};
|
|
11
17
|
type TCreatePaymentResult = {
|
|
12
18
|
provider: TPaymentProviderId;
|
|
@@ -19,4 +25,4 @@ type TPaymentProvider = {
|
|
|
19
25
|
createPayment(request: TCreatePaymentRequest): Promise<TCreatePaymentResult>;
|
|
20
26
|
};
|
|
21
27
|
|
|
22
|
-
export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus };
|
|
28
|
+
export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus, TSyncResponse };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
type TSyncResponse<T> = {
|
|
2
|
+
success: boolean;
|
|
3
|
+
message?: string;
|
|
4
|
+
data?: T | null;
|
|
5
|
+
timestamp?: string | number;
|
|
6
|
+
};
|
|
2
7
|
|
|
3
8
|
type TPaymentProviderId = "FREE" | "CONFIRMO" | "MOONPAY" | "NOWPAYMENTS" | "ZEN";
|
|
4
9
|
type TPaymentStatus = "CREATED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
@@ -7,6 +12,7 @@ type TCreatePaymentRequest = {
|
|
|
7
12
|
currency: string;
|
|
8
13
|
description?: string;
|
|
9
14
|
orderId?: string;
|
|
15
|
+
customerEmail?: string;
|
|
10
16
|
};
|
|
11
17
|
type TCreatePaymentResult = {
|
|
12
18
|
provider: TPaymentProviderId;
|
|
@@ -19,4 +25,4 @@ type TPaymentProvider = {
|
|
|
19
25
|
createPayment(request: TCreatePaymentRequest): Promise<TCreatePaymentResult>;
|
|
20
26
|
};
|
|
21
27
|
|
|
22
|
-
export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus };
|
|
28
|
+
export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus, TSyncResponse };
|
package/package.json
CHANGED