@one_deploy/sdk 1.0.7 → 1.2.0

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.
Files changed (106) hide show
  1. package/README.md +339 -0
  2. package/dist/ForexPoolDataGenerator--__twRwl.d.mts +76 -0
  3. package/dist/ForexPoolDataGenerator-eUgwsU_B.d.ts +76 -0
  4. package/dist/OneForexTradeHistory-TlKxjbFF.d.ts +250 -0
  5. package/dist/OneForexTradeHistory-iDySMcw0.d.mts +250 -0
  6. package/dist/components/index.d.mts +539 -0
  7. package/dist/components/index.d.ts +539 -0
  8. package/dist/components/index.js +7295 -0
  9. package/dist/components/index.js.map +1 -0
  10. package/dist/components/index.mjs +7243 -0
  11. package/dist/components/index.mjs.map +1 -0
  12. package/dist/config/index.d.mts +1 -0
  13. package/dist/config/index.d.ts +1 -0
  14. package/dist/console-BfTMA7ah.d.mts +504 -0
  15. package/dist/console-BfTMA7ah.d.ts +504 -0
  16. package/dist/hooks/index.d.mts +323 -1
  17. package/dist/hooks/index.d.ts +323 -1
  18. package/dist/hooks/index.js +3223 -0
  19. package/dist/hooks/index.js.map +1 -1
  20. package/dist/hooks/index.mjs +3204 -1
  21. package/dist/hooks/index.mjs.map +1 -1
  22. package/dist/index.d.mts +18 -352
  23. package/dist/index.d.ts +18 -352
  24. package/dist/index.js +8646 -574
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +8449 -432
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/providers/index.d.mts +31 -31
  29. package/dist/providers/index.d.ts +31 -31
  30. package/dist/providers/index.js +140 -153
  31. package/dist/providers/index.js.map +1 -1
  32. package/dist/providers/index.mjs +100 -109
  33. package/dist/providers/index.mjs.map +1 -1
  34. package/dist/react-native.d.mts +8 -144
  35. package/dist/react-native.d.ts +8 -144
  36. package/dist/react-native.js +2640 -689
  37. package/dist/react-native.js.map +1 -1
  38. package/dist/react-native.mjs +2610 -691
  39. package/dist/react-native.mjs.map +1 -1
  40. package/dist/services/index.d.mts +85 -4
  41. package/dist/services/index.d.ts +85 -4
  42. package/dist/services/index.js +1621 -0
  43. package/dist/services/index.js.map +1 -1
  44. package/dist/services/index.mjs +1619 -1
  45. package/dist/services/index.mjs.map +1 -1
  46. package/dist/types/index.d.mts +203 -1
  47. package/dist/types/index.d.ts +203 -1
  48. package/dist/types/index.js +275 -0
  49. package/dist/types/index.js.map +1 -1
  50. package/dist/types/index.mjs +251 -0
  51. package/dist/types/index.mjs.map +1 -1
  52. package/dist/useForexTrading-BleeSor8.d.mts +80 -0
  53. package/dist/useForexTrading-ZgW_G40Q.d.ts +80 -0
  54. package/package.json +9 -2
  55. package/src/components/OneConnectButton.tsx +24 -1
  56. package/src/components/OneNFTGallery.tsx +13 -7
  57. package/src/components/OneOfframpWidget.tsx +4 -3
  58. package/src/components/OnePayWidget.tsx +10 -1
  59. package/src/components/OneSendWidget.tsx +3 -3
  60. package/src/components/OneSwapWidget.tsx +4 -4
  61. package/src/components/OneTransactionButton.tsx +28 -3
  62. package/src/components/OneWalletBalance.tsx +1 -1
  63. package/src/components/ai/OneChainSelector.tsx +63 -336
  64. package/src/components/ai/OneForexCapitalSplit.tsx +112 -0
  65. package/src/components/ai/OneForexConsoleView.tsx +90 -0
  66. package/src/components/ai/OneForexPairSelector.tsx +101 -0
  67. package/src/components/ai/OneForexPoolCard.tsx +105 -0
  68. package/src/components/ai/OneForexTradeHistory.tsx +107 -0
  69. package/src/components/ai/OnePairSelector.tsx +77 -434
  70. package/src/components/ai/console/OneAIQuantConsole.tsx +423 -0
  71. package/src/components/ai/console/OneAgentCard.tsx +383 -0
  72. package/src/components/ai/console/OneAgentConsole.tsx +469 -0
  73. package/src/components/ai/console/OneDecisionTimeline.tsx +433 -0
  74. package/src/components/ai/console/OneMetricsDashboard.tsx +493 -0
  75. package/src/components/ai/console/OnePositionCard.tsx +406 -0
  76. package/src/components/ai/console/OnePositionDetail.tsx +600 -0
  77. package/src/components/ai/console/OneRiskIndicator.tsx +464 -0
  78. package/src/components/ai/console/OneTradingConsole.tsx +660 -0
  79. package/src/components/ai/console/index.ts +17 -0
  80. package/src/components/ai/index.ts +10 -0
  81. package/src/hooks/index.ts +46 -0
  82. package/src/hooks/useAIDecisions.ts +280 -0
  83. package/src/hooks/useAIPositions.ts +349 -0
  84. package/src/hooks/useAIQuantConsole.ts +283 -0
  85. package/src/hooks/useAIRiskStatus.ts +276 -0
  86. package/src/hooks/useAITrading.ts +190 -0
  87. package/src/hooks/useBotSimulation.ts +201 -0
  88. package/src/hooks/useForexTrading.ts +430 -0
  89. package/src/hooks/useTradingConsole.ts +243 -0
  90. package/src/index.ts +123 -5
  91. package/src/providers/OneProvider.tsx +181 -5
  92. package/src/providers/index.ts +22 -8
  93. package/src/react-native.ts +41 -0
  94. package/src/services/forex/BotSimulationEngine.ts +968 -0
  95. package/src/services/forex/ForexPoolDataGenerator.ts +542 -0
  96. package/src/services/forex/ForexSimulationEngine.ts +482 -0
  97. package/src/services/forex/index.ts +21 -0
  98. package/src/services/index.ts +16 -0
  99. package/src/types/aiTrading.ts +151 -0
  100. package/src/types/console.ts +380 -0
  101. package/src/types/forex.ts +282 -0
  102. package/src/types/index.ts +106 -0
  103. package/dist/price-CgqXPnT3.d.ts +0 -13
  104. package/dist/price-ClbLHHjv.d.mts +0 -13
  105. package/dist/supabase-BT0c7q9e.d.mts +0 -82
  106. package/dist/supabase-BT0c7q9e.d.ts +0 -82
@@ -1,8 +1,89 @@
1
1
  export { E as EngineAuthResponse, b as EngineTransactionRequest, d as EngineTransactionResponse, a as EngineWalletBalance, O as OneEngineClient, g as OnrampQuote, f as OnrampSession, e as OnrampSessionRequest, h as OnrampTransaction, j as SwapExecuteRequest, i as SwapQuote, S as SwapQuoteRequest, k as SwapResult, c as createOneEngineClient } from '../engine-BeVuHpVx.mjs';
2
- export { S as SupabaseService, c as createSupabaseClient, g as getSupabaseClient } from '../supabase-BT0c7q9e.mjs';
3
- export { P as PriceService, p as priceService } from '../price-ClbLHHjv.mjs';
2
+ import * as _supabase_realtime_js from '@supabase/realtime-js';
3
+ import * as _supabase_postgrest_js from '@supabase/postgrest-js';
4
+ import * as _supabase_auth_js from '@supabase/auth-js';
5
+ import { SupabaseClient } from '@supabase/supabase-js';
6
+ export { F as ForexPoolDataGenerator, a as PairState, P as PriceService, f as forexSimulationEngine, p as priceService } from '../ForexPoolDataGenerator--__twRwl.mjs';
7
+ export { a as BotLogEntry, B as BotLogType, c as BotState, I as IndicatorSnapshot, a0 as STRATEGY_PERSONALITIES, S as StrategyPersonality, b as botSimulationEngine } from '../console-BfTMA7ah.mjs';
4
8
  import '../types/index.mjs';
5
- import '@supabase/supabase-js';
9
+
10
+ declare function createSupabaseClient(url?: string, anonKey?: string): SupabaseClient;
11
+ declare function getSupabaseClient(): SupabaseClient;
12
+ declare class SupabaseService {
13
+ private client;
14
+ constructor(client?: SupabaseClient);
15
+ signInWithEmail(email: string): Promise<{
16
+ data: {
17
+ user: null;
18
+ session: null;
19
+ messageId?: string | null;
20
+ } | {
21
+ user: null;
22
+ session: null;
23
+ messageId?: null | undefined;
24
+ };
25
+ error: _supabase_auth_js.AuthError | null;
26
+ }>;
27
+ verifyOtp(email: string, token: string): Promise<{
28
+ data: {
29
+ user: _supabase_auth_js.User | null;
30
+ session: _supabase_auth_js.Session | null;
31
+ } | {
32
+ user: null;
33
+ session: null;
34
+ };
35
+ error: _supabase_auth_js.AuthError | null;
36
+ }>;
37
+ signOut(): Promise<{
38
+ error: _supabase_auth_js.AuthError | null;
39
+ }>;
40
+ getSession(): Promise<{
41
+ session: _supabase_auth_js.Session | null;
42
+ error: _supabase_auth_js.AuthError | null;
43
+ }>;
44
+ getUser(): Promise<{
45
+ user: _supabase_auth_js.User | null;
46
+ error: _supabase_auth_js.AuthError | null;
47
+ }>;
48
+ getUserProfile(userId: string): Promise<{
49
+ data: any;
50
+ error: _supabase_postgrest_js.PostgrestError | null;
51
+ }>;
52
+ updateUserProfile(userId: string, updates: Record<string, any>): Promise<{
53
+ data: any;
54
+ error: _supabase_postgrest_js.PostgrestError | null;
55
+ }>;
56
+ getTransactions(userId: string, limit?: number): Promise<{
57
+ data: any[] | null;
58
+ error: _supabase_postgrest_js.PostgrestError | null;
59
+ }>;
60
+ createTransaction(transaction: Record<string, any>): Promise<{
61
+ data: any;
62
+ error: _supabase_postgrest_js.PostgrestError | null;
63
+ }>;
64
+ getStrategies(status?: string): Promise<{
65
+ data: any[] | null;
66
+ error: _supabase_postgrest_js.PostgrestError | null;
67
+ }>;
68
+ getStrategyById(strategyId: string): Promise<{
69
+ data: any;
70
+ error: _supabase_postgrest_js.PostgrestError | null;
71
+ }>;
72
+ getUserOrders(userId: string): Promise<{
73
+ data: any[] | null;
74
+ error: _supabase_postgrest_js.PostgrestError | null;
75
+ }>;
76
+ createOrder(order: Record<string, any>): Promise<{
77
+ data: any;
78
+ error: _supabase_postgrest_js.PostgrestError | null;
79
+ }>;
80
+ getUserCards(userId: string): Promise<{
81
+ data: any[] | null;
82
+ error: _supabase_postgrest_js.PostgrestError | null;
83
+ }>;
84
+ subscribeToTransactions(userId: string, callback: (payload: any) => void): _supabase_realtime_js.RealtimeChannel;
85
+ unsubscribe(channel: ReturnType<typeof this$1.client.channel>): Promise<"error" | "ok" | "timed out">;
86
+ }
6
87
 
7
88
  /**
8
89
  * Usage Tracking Service
@@ -102,4 +183,4 @@ declare class UsageService {
102
183
  declare function getUsageService(): UsageService;
103
184
  declare function createUsageService(baseUrl?: string): UsageService;
104
185
 
105
- export { type DisplayCategory, type UsageActivity, type UsageCategory, type UsageRecord, type UsageResponse, UsageService, type UsageSummary, createUsageService, getUsageService };
186
+ export { type DisplayCategory, SupabaseService, type UsageActivity, type UsageCategory, type UsageRecord, type UsageResponse, UsageService, type UsageSummary, createSupabaseClient, createUsageService, getSupabaseClient, getUsageService };
@@ -1,8 +1,89 @@
1
1
  export { E as EngineAuthResponse, b as EngineTransactionRequest, d as EngineTransactionResponse, a as EngineWalletBalance, O as OneEngineClient, g as OnrampQuote, f as OnrampSession, e as OnrampSessionRequest, h as OnrampTransaction, j as SwapExecuteRequest, i as SwapQuote, S as SwapQuoteRequest, k as SwapResult, c as createOneEngineClient } from '../engine-DSc1Em4V.js';
2
- export { S as SupabaseService, c as createSupabaseClient, g as getSupabaseClient } from '../supabase-BT0c7q9e.js';
3
- export { P as PriceService, p as priceService } from '../price-CgqXPnT3.js';
2
+ import * as _supabase_realtime_js from '@supabase/realtime-js';
3
+ import * as _supabase_postgrest_js from '@supabase/postgrest-js';
4
+ import * as _supabase_auth_js from '@supabase/auth-js';
5
+ import { SupabaseClient } from '@supabase/supabase-js';
6
+ export { F as ForexPoolDataGenerator, a as PairState, P as PriceService, f as forexSimulationEngine, p as priceService } from '../ForexPoolDataGenerator-eUgwsU_B.js';
7
+ export { a as BotLogEntry, B as BotLogType, c as BotState, I as IndicatorSnapshot, a0 as STRATEGY_PERSONALITIES, S as StrategyPersonality, b as botSimulationEngine } from '../console-BfTMA7ah.js';
4
8
  import '../types/index.js';
5
- import '@supabase/supabase-js';
9
+
10
+ declare function createSupabaseClient(url?: string, anonKey?: string): SupabaseClient;
11
+ declare function getSupabaseClient(): SupabaseClient;
12
+ declare class SupabaseService {
13
+ private client;
14
+ constructor(client?: SupabaseClient);
15
+ signInWithEmail(email: string): Promise<{
16
+ data: {
17
+ user: null;
18
+ session: null;
19
+ messageId?: string | null;
20
+ } | {
21
+ user: null;
22
+ session: null;
23
+ messageId?: null | undefined;
24
+ };
25
+ error: _supabase_auth_js.AuthError | null;
26
+ }>;
27
+ verifyOtp(email: string, token: string): Promise<{
28
+ data: {
29
+ user: _supabase_auth_js.User | null;
30
+ session: _supabase_auth_js.Session | null;
31
+ } | {
32
+ user: null;
33
+ session: null;
34
+ };
35
+ error: _supabase_auth_js.AuthError | null;
36
+ }>;
37
+ signOut(): Promise<{
38
+ error: _supabase_auth_js.AuthError | null;
39
+ }>;
40
+ getSession(): Promise<{
41
+ session: _supabase_auth_js.Session | null;
42
+ error: _supabase_auth_js.AuthError | null;
43
+ }>;
44
+ getUser(): Promise<{
45
+ user: _supabase_auth_js.User | null;
46
+ error: _supabase_auth_js.AuthError | null;
47
+ }>;
48
+ getUserProfile(userId: string): Promise<{
49
+ data: any;
50
+ error: _supabase_postgrest_js.PostgrestError | null;
51
+ }>;
52
+ updateUserProfile(userId: string, updates: Record<string, any>): Promise<{
53
+ data: any;
54
+ error: _supabase_postgrest_js.PostgrestError | null;
55
+ }>;
56
+ getTransactions(userId: string, limit?: number): Promise<{
57
+ data: any[] | null;
58
+ error: _supabase_postgrest_js.PostgrestError | null;
59
+ }>;
60
+ createTransaction(transaction: Record<string, any>): Promise<{
61
+ data: any;
62
+ error: _supabase_postgrest_js.PostgrestError | null;
63
+ }>;
64
+ getStrategies(status?: string): Promise<{
65
+ data: any[] | null;
66
+ error: _supabase_postgrest_js.PostgrestError | null;
67
+ }>;
68
+ getStrategyById(strategyId: string): Promise<{
69
+ data: any;
70
+ error: _supabase_postgrest_js.PostgrestError | null;
71
+ }>;
72
+ getUserOrders(userId: string): Promise<{
73
+ data: any[] | null;
74
+ error: _supabase_postgrest_js.PostgrestError | null;
75
+ }>;
76
+ createOrder(order: Record<string, any>): Promise<{
77
+ data: any;
78
+ error: _supabase_postgrest_js.PostgrestError | null;
79
+ }>;
80
+ getUserCards(userId: string): Promise<{
81
+ data: any[] | null;
82
+ error: _supabase_postgrest_js.PostgrestError | null;
83
+ }>;
84
+ subscribeToTransactions(userId: string, callback: (payload: any) => void): _supabase_realtime_js.RealtimeChannel;
85
+ unsubscribe(channel: ReturnType<typeof this$1.client.channel>): Promise<"error" | "ok" | "timed out">;
86
+ }
6
87
 
7
88
  /**
8
89
  * Usage Tracking Service
@@ -102,4 +183,4 @@ declare class UsageService {
102
183
  declare function getUsageService(): UsageService;
103
184
  declare function createUsageService(baseUrl?: string): UsageService;
104
185
 
105
- export { type DisplayCategory, type UsageActivity, type UsageCategory, type UsageRecord, type UsageResponse, UsageService, type UsageSummary, createUsageService, getUsageService };
186
+ export { type DisplayCategory, SupabaseService, type UsageActivity, type UsageCategory, type UsageRecord, type UsageResponse, UsageService, type UsageSummary, createSupabaseClient, createUsageService, getSupabaseClient, getUsageService };