@anrmk/str-package 0.2.26 → 0.2.29

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
@@ -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 { T as TSyncResponse } from './TSyncResponse-CB1OIGwI.cjs';
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 { T as TSyncResponse } from './TSyncResponse-CB1OIGwI.js';
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
- export { T as TSyncResponse } from '../../TSyncResponse-CB1OIGwI.cjs';
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
- export type { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeClosedPnl, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProgress, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TChallengeWalletBalance, TDrawdownType, TTradingType };
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
- export { T as TSyncResponse } from '../../TSyncResponse-CB1OIGwI.js';
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
- export type { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeClosedPnl, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProgress, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TChallengeWalletBalance, TDrawdownType, TTradingType };
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,7 +1,12 @@
1
- export { T as TSyncResponse } from '../TSyncResponse-CB1OIGwI.cjs';
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
- type TPaymentStatus = "CREATED" | "PENDING" | "COMPLETED" | "FAILED";
9
+ type TPaymentStatus = "WAITING" | "CONFIRMING" | "CONFIRMED" | "BLOCKED" | "SENDING" | "PENDING" | "PARTIALLY_PAID" | "COMPLETED" | "FINISHED" | "FAILED" | "EXPIRED";
5
10
  type TCreatePaymentRequest = {
6
11
  amount: number;
7
12
  currency: string;
@@ -20,4 +25,4 @@ type TPaymentProvider = {
20
25
  createPayment(request: TCreatePaymentRequest): Promise<TCreatePaymentResult>;
21
26
  };
22
27
 
23
- export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus };
28
+ export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus, TSyncResponse };
@@ -1,7 +1,12 @@
1
- export { T as TSyncResponse } from '../TSyncResponse-CB1OIGwI.js';
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
- type TPaymentStatus = "CREATED" | "PENDING" | "COMPLETED" | "FAILED";
9
+ type TPaymentStatus = "WAITING" | "CONFIRMING" | "CONFIRMED" | "BLOCKED" | "SENDING" | "PENDING" | "PARTIALLY_PAID" | "COMPLETED" | "FINISHED" | "FAILED" | "EXPIRED";
5
10
  type TCreatePaymentRequest = {
6
11
  amount: number;
7
12
  currency: string;
@@ -20,4 +25,4 @@ type TPaymentProvider = {
20
25
  createPayment(request: TCreatePaymentRequest): Promise<TCreatePaymentResult>;
21
26
  };
22
27
 
23
- export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus };
28
+ export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus, TSyncResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anrmk/str-package",
3
- "version": "0.2.26",
3
+ "version": "0.2.29",
4
4
  "description": "Shared providers, types, and utils for STR services",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,8 +0,0 @@
1
- type TSyncResponse<T> = {
2
- success: boolean;
3
- message?: string;
4
- data?: T | null;
5
- timestamp?: string | number;
6
- };
7
-
8
- export type { TSyncResponse as T };
@@ -1,8 +0,0 @@
1
- type TSyncResponse<T> = {
2
- success: boolean;
3
- message?: string;
4
- data?: T | null;
5
- timestamp?: string | number;
6
- };
7
-
8
- export type { TSyncResponse as T };