@anrmk/str-package 0.1.2 → 0.1.3
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/chunk-2KHIGJJV.js +26 -0
- package/dist/chunk-2KHIGJJV.js.map +1 -0
- package/dist/index.js +1 -0
- package/dist/types/bybit/index.cjs +26 -0
- package/dist/types/bybit/index.cjs.map +1 -1
- package/dist/types/bybit/index.d.cts +3 -4
- package/dist/types/bybit/index.d.ts +3 -4
- package/dist/types/bybit/index.js +1 -1
- package/dist/utils/challengeHelper.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/types/bybit/enums.ts
|
|
2
|
+
var IBybitAccountType = /* @__PURE__ */ ((IBybitAccountType2) => {
|
|
3
|
+
IBybitAccountType2["UNIFIED"] = "UNIFIED";
|
|
4
|
+
IBybitAccountType2["FUND"] = "FUND";
|
|
5
|
+
return IBybitAccountType2;
|
|
6
|
+
})(IBybitAccountType || {});
|
|
7
|
+
var IBybitCoinType = /* @__PURE__ */ ((IBybitCoinType2) => {
|
|
8
|
+
IBybitCoinType2["BTC"] = "BTC";
|
|
9
|
+
IBybitCoinType2["ETH"] = "ETH";
|
|
10
|
+
IBybitCoinType2["USDT"] = "USDT";
|
|
11
|
+
IBybitCoinType2["USDC"] = "USDC";
|
|
12
|
+
return IBybitCoinType2;
|
|
13
|
+
})(IBybitCoinType || {});
|
|
14
|
+
var IBybitApiKeyVipLevel = /* @__PURE__ */ ((IBybitApiKeyVipLevel2) => {
|
|
15
|
+
IBybitApiKeyVipLevel2["NO_VIP"] = "No VIP";
|
|
16
|
+
IBybitApiKeyVipLevel2["VIP_1"] = "VIP 1";
|
|
17
|
+
IBybitApiKeyVipLevel2["VIP_2"] = "VIP 2";
|
|
18
|
+
IBybitApiKeyVipLevel2["VIP_3"] = "VIP 3";
|
|
19
|
+
IBybitApiKeyVipLevel2["VIP_4"] = "VIP 4";
|
|
20
|
+
IBybitApiKeyVipLevel2["VIP_5"] = "VIP 5";
|
|
21
|
+
return IBybitApiKeyVipLevel2;
|
|
22
|
+
})(IBybitApiKeyVipLevel || {});
|
|
23
|
+
|
|
24
|
+
export { IBybitAccountType, IBybitApiKeyVipLevel, IBybitCoinType };
|
|
25
|
+
//# sourceMappingURL=chunk-2KHIGJJV.js.map
|
|
26
|
+
//# sourceMappingURL=chunk-2KHIGJJV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/bybit/enums.ts"],"names":["IBybitAccountType","IBybitCoinType","IBybitApiKeyVipLevel"],"mappings":";AAAO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACL,EAAAA,mBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAFG,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAKL,IAAK,cAAA,qBAAAC,eAAAA,KAAL;AACL,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AAJG,EAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA;AAoBL,IAAK,oBAAA,qBAAAC,qBAAAA,KAAL;AACL,EAAAA,sBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AANE,EAAA,OAAAA,qBAAAA;AAAA,CAAA,EAAA,oBAAA,IAAA,EAAA","file":"chunk-2KHIGJJV.js","sourcesContent":["export enum IBybitAccountType {\n UNIFIED = \"UNIFIED\",\n FUND = \"FUND\",\n}\n\nexport enum IBybitCoinType {\n BTC = \"BTC\",\n ETH = \"ETH\",\n USDT = \"USDT\",\n USDC = \"USDC\",\n}\n\nexport enum IBybitOrderType {\n MARKET = \"Market\",\n LIMIT = \"Limit\",\n}\n\nexport enum IBybitUnifiedMarginStatus {\n CLASSIC_ACCOUNT = 1,\n UNIFIED_TRADING_ACCOUNT_1_0 = 3,\n UNIFIED_TRADING_ACCOUNT_1_0_PRO = 4,\n UNIFIED_TRADING_ACCOUNT_2_0 = 5,\n UNIFIED_TRADING_ACCOUNT_2_0_PRO = 6,\n}\n\nexport enum IBybitApiKeyVipLevel {\n NO_VIP = \"No VIP\",\n VIP_1 = \"VIP 1\",\n VIP_2 = \"VIP 2\",\n VIP_3 = \"VIP 3\",\n VIP_4 = \"VIP 4\",\n VIP_5 = \"VIP 5\",\n}"]}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { applyDemoMoney, getAccountInfo, getApiKeyInfo, getClosedPnl, getPositionInfo, getWalletBalance } from './chunk-HFDG7DDQ.js';
|
|
2
2
|
export { signBybitRequest } from './chunk-XJRTXY76.js';
|
|
3
3
|
export { createDefaultProgress, createDefaultWallet, currentDailyEquity, currentTradingDaysCountCalculation } from './chunk-PGGSZUQW.js';
|
|
4
|
+
import './chunk-2KHIGJJV.js';
|
|
4
5
|
export { isSameUtcDay, parseNumber, toIsoDate } from './chunk-GIWOOWDE.js';
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
// src/types/bybit/enums.ts
|
|
4
|
+
var IBybitAccountType = /* @__PURE__ */ ((IBybitAccountType2) => {
|
|
5
|
+
IBybitAccountType2["UNIFIED"] = "UNIFIED";
|
|
6
|
+
IBybitAccountType2["FUND"] = "FUND";
|
|
7
|
+
return IBybitAccountType2;
|
|
8
|
+
})(IBybitAccountType || {});
|
|
9
|
+
var IBybitCoinType = /* @__PURE__ */ ((IBybitCoinType2) => {
|
|
10
|
+
IBybitCoinType2["BTC"] = "BTC";
|
|
11
|
+
IBybitCoinType2["ETH"] = "ETH";
|
|
12
|
+
IBybitCoinType2["USDT"] = "USDT";
|
|
13
|
+
IBybitCoinType2["USDC"] = "USDC";
|
|
14
|
+
return IBybitCoinType2;
|
|
15
|
+
})(IBybitCoinType || {});
|
|
16
|
+
var IBybitApiKeyVipLevel = /* @__PURE__ */ ((IBybitApiKeyVipLevel2) => {
|
|
17
|
+
IBybitApiKeyVipLevel2["NO_VIP"] = "No VIP";
|
|
18
|
+
IBybitApiKeyVipLevel2["VIP_1"] = "VIP 1";
|
|
19
|
+
IBybitApiKeyVipLevel2["VIP_2"] = "VIP 2";
|
|
20
|
+
IBybitApiKeyVipLevel2["VIP_3"] = "VIP 3";
|
|
21
|
+
IBybitApiKeyVipLevel2["VIP_4"] = "VIP 4";
|
|
22
|
+
IBybitApiKeyVipLevel2["VIP_5"] = "VIP 5";
|
|
23
|
+
return IBybitApiKeyVipLevel2;
|
|
24
|
+
})(IBybitApiKeyVipLevel || {});
|
|
25
|
+
|
|
26
|
+
exports.IBybitAccountType = IBybitAccountType;
|
|
27
|
+
exports.IBybitApiKeyVipLevel = IBybitApiKeyVipLevel;
|
|
28
|
+
exports.IBybitCoinType = IBybitCoinType;
|
|
3
29
|
//# sourceMappingURL=index.cjs.map
|
|
4
30
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
1
|
+
{"version":3,"sources":["../../../src/types/bybit/enums.ts"],"names":["IBybitAccountType","IBybitCoinType","IBybitApiKeyVipLevel"],"mappings":";;;AAAO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACL,EAAAA,mBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAFG,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAKL,IAAK,cAAA,qBAAAC,eAAAA,KAAL;AACL,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AAJG,EAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA;AAoBL,IAAK,oBAAA,qBAAAC,qBAAAA,KAAL;AACL,EAAAA,sBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AANE,EAAA,OAAAA,qBAAAA;AAAA,CAAA,EAAA,oBAAA,IAAA,EAAA","file":"index.cjs","sourcesContent":["export enum IBybitAccountType {\n UNIFIED = \"UNIFIED\",\n FUND = \"FUND\",\n}\n\nexport enum IBybitCoinType {\n BTC = \"BTC\",\n ETH = \"ETH\",\n USDT = \"USDT\",\n USDC = \"USDC\",\n}\n\nexport enum IBybitOrderType {\n MARKET = \"Market\",\n LIMIT = \"Limit\",\n}\n\nexport enum IBybitUnifiedMarginStatus {\n CLASSIC_ACCOUNT = 1,\n UNIFIED_TRADING_ACCOUNT_1_0 = 3,\n UNIFIED_TRADING_ACCOUNT_1_0_PRO = 4,\n UNIFIED_TRADING_ACCOUNT_2_0 = 5,\n UNIFIED_TRADING_ACCOUNT_2_0_PRO = 6,\n}\n\nexport enum IBybitApiKeyVipLevel {\n NO_VIP = \"No VIP\",\n VIP_1 = \"VIP 1\",\n VIP_2 = \"VIP 2\",\n VIP_3 = \"VIP 3\",\n VIP_4 = \"VIP 4\",\n VIP_5 = \"VIP 5\",\n}"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { I as IBybitAccountType, c as IBybitUnifiedMarginStatus, b as IBybitCoinType } from '../../enums--bdw39rp.cjs';
|
|
2
|
-
export { a as IBybitApiKeyVipLevel } from '../../enums--bdw39rp.cjs';
|
|
1
|
+
import { I as IBybitAccountType, a as IBybitApiKeyVipLevel, c as IBybitUnifiedMarginStatus, b as IBybitCoinType } from '../../enums--bdw39rp.cjs';
|
|
3
2
|
|
|
4
3
|
type IBybitWalletAccount = {
|
|
5
4
|
accountIMRate: string;
|
|
@@ -82,7 +81,7 @@ type IBybitApiKeyInfo = {
|
|
|
82
81
|
uta: number;
|
|
83
82
|
userID: number;
|
|
84
83
|
inviterID: number;
|
|
85
|
-
vipLevel:
|
|
84
|
+
vipLevel: IBybitApiKeyVipLevel;
|
|
86
85
|
mktMakerLevel: string;
|
|
87
86
|
affiliateID: number;
|
|
88
87
|
rsaPublicKey: string;
|
|
@@ -209,4 +208,4 @@ type IBybitClosedPnlResponse = {
|
|
|
209
208
|
nextPageCursor?: string;
|
|
210
209
|
};
|
|
211
210
|
|
|
212
|
-
export { type IBybitAccountInfo, IBybitAccountType, type IBybitApiKeyInfo, type IBybitApiResponse, type IBybitApiResponseList, type IBybitClosedPnl, type IBybitClosedPnlRequest, type IBybitClosedPnlResponse, type IBybitCoinBalance, IBybitCoinType, type IBybitCredentials, type IBybitDemoApplyMoneyItem, type IBybitDemoApplyMoneyPayload, type IBybitDemoApplyMoneyRequest, type IBybitDemoApplyMoney as IBybitDemoApplyMoneyResponse, type IBybitPositionInfo, type IBybitWalletAccount, type IBybitWalletResponse };
|
|
211
|
+
export { type IBybitAccountInfo, IBybitAccountType, type IBybitApiKeyInfo, IBybitApiKeyVipLevel, type IBybitApiResponse, type IBybitApiResponseList, type IBybitClosedPnl, type IBybitClosedPnlRequest, type IBybitClosedPnlResponse, type IBybitCoinBalance, IBybitCoinType, type IBybitCredentials, type IBybitDemoApplyMoneyItem, type IBybitDemoApplyMoneyPayload, type IBybitDemoApplyMoneyRequest, type IBybitDemoApplyMoney as IBybitDemoApplyMoneyResponse, type IBybitPositionInfo, type IBybitWalletAccount, type IBybitWalletResponse };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { I as IBybitAccountType, c as IBybitUnifiedMarginStatus, b as IBybitCoinType } from '../../enums--bdw39rp.js';
|
|
2
|
-
export { a as IBybitApiKeyVipLevel } from '../../enums--bdw39rp.js';
|
|
1
|
+
import { I as IBybitAccountType, a as IBybitApiKeyVipLevel, c as IBybitUnifiedMarginStatus, b as IBybitCoinType } from '../../enums--bdw39rp.js';
|
|
3
2
|
|
|
4
3
|
type IBybitWalletAccount = {
|
|
5
4
|
accountIMRate: string;
|
|
@@ -82,7 +81,7 @@ type IBybitApiKeyInfo = {
|
|
|
82
81
|
uta: number;
|
|
83
82
|
userID: number;
|
|
84
83
|
inviterID: number;
|
|
85
|
-
vipLevel:
|
|
84
|
+
vipLevel: IBybitApiKeyVipLevel;
|
|
86
85
|
mktMakerLevel: string;
|
|
87
86
|
affiliateID: number;
|
|
88
87
|
rsaPublicKey: string;
|
|
@@ -209,4 +208,4 @@ type IBybitClosedPnlResponse = {
|
|
|
209
208
|
nextPageCursor?: string;
|
|
210
209
|
};
|
|
211
210
|
|
|
212
|
-
export { type IBybitAccountInfo, IBybitAccountType, type IBybitApiKeyInfo, type IBybitApiResponse, type IBybitApiResponseList, type IBybitClosedPnl, type IBybitClosedPnlRequest, type IBybitClosedPnlResponse, type IBybitCoinBalance, IBybitCoinType, type IBybitCredentials, type IBybitDemoApplyMoneyItem, type IBybitDemoApplyMoneyPayload, type IBybitDemoApplyMoneyRequest, type IBybitDemoApplyMoney as IBybitDemoApplyMoneyResponse, type IBybitPositionInfo, type IBybitWalletAccount, type IBybitWalletResponse };
|
|
211
|
+
export { type IBybitAccountInfo, IBybitAccountType, type IBybitApiKeyInfo, IBybitApiKeyVipLevel, type IBybitApiResponse, type IBybitApiResponseList, type IBybitClosedPnl, type IBybitClosedPnlRequest, type IBybitClosedPnlResponse, type IBybitCoinBalance, IBybitCoinType, type IBybitCredentials, type IBybitDemoApplyMoneyItem, type IBybitDemoApplyMoneyPayload, type IBybitDemoApplyMoneyRequest, type IBybitDemoApplyMoney as IBybitDemoApplyMoneyResponse, type IBybitPositionInfo, type IBybitWalletAccount, type IBybitWalletResponse };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { createDefaultProgress, createDefaultWallet, currentDailyEquity, currentTradingDaysCountCalculation } from '../chunk-PGGSZUQW.js';
|
|
2
|
+
import '../chunk-2KHIGJJV.js';
|
|
2
3
|
import '../chunk-GIWOOWDE.js';
|
|
3
4
|
//# sourceMappingURL=challengeHelper.js.map
|
|
4
5
|
//# sourceMappingURL=challengeHelper.js.map
|