@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.
- package/README.md +339 -0
- package/dist/ForexPoolDataGenerator--__twRwl.d.mts +76 -0
- package/dist/ForexPoolDataGenerator-eUgwsU_B.d.ts +76 -0
- package/dist/OneForexTradeHistory-TlKxjbFF.d.ts +250 -0
- package/dist/OneForexTradeHistory-iDySMcw0.d.mts +250 -0
- package/dist/components/index.d.mts +539 -0
- package/dist/components/index.d.ts +539 -0
- package/dist/components/index.js +7295 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +7243 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/config/index.d.mts +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/console-BfTMA7ah.d.mts +504 -0
- package/dist/console-BfTMA7ah.d.ts +504 -0
- package/dist/hooks/index.d.mts +323 -1
- package/dist/hooks/index.d.ts +323 -1
- package/dist/hooks/index.js +3223 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +3204 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +18 -352
- package/dist/index.d.ts +18 -352
- package/dist/index.js +8646 -574
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8449 -432
- package/dist/index.mjs.map +1 -1
- package/dist/providers/index.d.mts +31 -31
- package/dist/providers/index.d.ts +31 -31
- package/dist/providers/index.js +140 -153
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/index.mjs +100 -109
- package/dist/providers/index.mjs.map +1 -1
- package/dist/react-native.d.mts +8 -144
- package/dist/react-native.d.ts +8 -144
- package/dist/react-native.js +2640 -689
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +2610 -691
- package/dist/react-native.mjs.map +1 -1
- package/dist/services/index.d.mts +85 -4
- package/dist/services/index.d.ts +85 -4
- package/dist/services/index.js +1621 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs +1619 -1
- package/dist/services/index.mjs.map +1 -1
- package/dist/types/index.d.mts +203 -1
- package/dist/types/index.d.ts +203 -1
- package/dist/types/index.js +275 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +251 -0
- package/dist/types/index.mjs.map +1 -1
- package/dist/useForexTrading-BleeSor8.d.mts +80 -0
- package/dist/useForexTrading-ZgW_G40Q.d.ts +80 -0
- package/package.json +9 -2
- package/src/components/OneConnectButton.tsx +24 -1
- package/src/components/OneNFTGallery.tsx +13 -7
- package/src/components/OneOfframpWidget.tsx +4 -3
- package/src/components/OnePayWidget.tsx +10 -1
- package/src/components/OneSendWidget.tsx +3 -3
- package/src/components/OneSwapWidget.tsx +4 -4
- package/src/components/OneTransactionButton.tsx +28 -3
- package/src/components/OneWalletBalance.tsx +1 -1
- package/src/components/ai/OneChainSelector.tsx +63 -336
- package/src/components/ai/OneForexCapitalSplit.tsx +112 -0
- package/src/components/ai/OneForexConsoleView.tsx +90 -0
- package/src/components/ai/OneForexPairSelector.tsx +101 -0
- package/src/components/ai/OneForexPoolCard.tsx +105 -0
- package/src/components/ai/OneForexTradeHistory.tsx +107 -0
- package/src/components/ai/OnePairSelector.tsx +77 -434
- package/src/components/ai/console/OneAIQuantConsole.tsx +423 -0
- package/src/components/ai/console/OneAgentCard.tsx +383 -0
- package/src/components/ai/console/OneAgentConsole.tsx +469 -0
- package/src/components/ai/console/OneDecisionTimeline.tsx +433 -0
- package/src/components/ai/console/OneMetricsDashboard.tsx +493 -0
- package/src/components/ai/console/OnePositionCard.tsx +406 -0
- package/src/components/ai/console/OnePositionDetail.tsx +600 -0
- package/src/components/ai/console/OneRiskIndicator.tsx +464 -0
- package/src/components/ai/console/OneTradingConsole.tsx +660 -0
- package/src/components/ai/console/index.ts +17 -0
- package/src/components/ai/index.ts +10 -0
- package/src/hooks/index.ts +46 -0
- package/src/hooks/useAIDecisions.ts +280 -0
- package/src/hooks/useAIPositions.ts +349 -0
- package/src/hooks/useAIQuantConsole.ts +283 -0
- package/src/hooks/useAIRiskStatus.ts +276 -0
- package/src/hooks/useAITrading.ts +190 -0
- package/src/hooks/useBotSimulation.ts +201 -0
- package/src/hooks/useForexTrading.ts +430 -0
- package/src/hooks/useTradingConsole.ts +243 -0
- package/src/index.ts +123 -5
- package/src/providers/OneProvider.tsx +181 -5
- package/src/providers/index.ts +22 -8
- package/src/react-native.ts +41 -0
- package/src/services/forex/BotSimulationEngine.ts +968 -0
- package/src/services/forex/ForexPoolDataGenerator.ts +542 -0
- package/src/services/forex/ForexSimulationEngine.ts +482 -0
- package/src/services/forex/index.ts +21 -0
- package/src/services/index.ts +16 -0
- package/src/types/aiTrading.ts +151 -0
- package/src/types/console.ts +380 -0
- package/src/types/forex.ts +282 -0
- package/src/types/index.ts +106 -0
- package/dist/price-CgqXPnT3.d.ts +0 -13
- package/dist/price-ClbLHHjv.d.mts +0 -13
- package/dist/supabase-BT0c7q9e.d.mts +0 -82
- 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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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 };
|
package/dist/services/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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 };
|