@oxyhq/services 5.9.2 → 5.9.4
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 +1 -33
- package/lib/commonjs/core/OxyServices.js +322 -0
- package/lib/commonjs/core/OxyServices.js.map +1 -0
- package/lib/commonjs/core/OxyServicesMain.js +51 -0
- package/lib/commonjs/core/OxyServicesMain.js.map +1 -0
- package/lib/commonjs/core/analytics/AnalyticsService.js +67 -0
- package/lib/commonjs/core/analytics/AnalyticsService.js.map +1 -0
- package/lib/commonjs/core/auth/AuthService.js +526 -0
- package/lib/commonjs/core/auth/AuthService.js.map +1 -0
- package/lib/commonjs/core/devices/DeviceService.js +61 -0
- package/lib/commonjs/core/devices/DeviceService.js.map +1 -0
- package/lib/commonjs/core/files/FileService.js +176 -0
- package/lib/commonjs/core/files/FileService.js.map +1 -0
- package/lib/commonjs/core/index.js +103 -1701
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/core/karma/KarmaService.js +100 -0
- package/lib/commonjs/core/karma/KarmaService.js.map +1 -0
- package/lib/commonjs/core/locations/LocationService.js +131 -0
- package/lib/commonjs/core/locations/LocationService.js.map +1 -0
- package/lib/commonjs/core/payments/PaymentService.js +124 -0
- package/lib/commonjs/core/payments/PaymentService.js.map +1 -0
- package/lib/commonjs/core/users/UserService.js +234 -0
- package/lib/commonjs/core/users/UserService.js.map +1 -0
- package/lib/commonjs/index.js +164 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/session.js +2 -0
- package/lib/commonjs/{types/middleware.js.map → models/session.js.map} +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +28 -24
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +2 -2
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +12 -12
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +2 -2
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +1 -1
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/stores/followStore.js +4 -4
- package/lib/commonjs/ui/stores/followStore.js.map +1 -1
- package/lib/commonjs/utils/apiUtils.js +93 -0
- package/lib/commonjs/utils/apiUtils.js.map +1 -0
- package/lib/commonjs/utils/asyncUtils.js +219 -0
- package/lib/commonjs/utils/asyncUtils.js.map +1 -0
- package/lib/commonjs/utils/errorUtils.js +148 -0
- package/lib/commonjs/utils/errorUtils.js.map +1 -0
- package/lib/commonjs/utils/hookUtils.js +399 -0
- package/lib/commonjs/utils/hookUtils.js.map +1 -0
- package/lib/commonjs/utils/loggerUtils.js +160 -0
- package/lib/commonjs/utils/loggerUtils.js.map +1 -0
- package/lib/commonjs/utils/validationUtils.js +174 -0
- package/lib/commonjs/utils/validationUtils.js.map +1 -0
- package/lib/module/core/OxyServices.js +316 -0
- package/lib/module/core/OxyServices.js.map +1 -0
- package/lib/module/core/OxyServicesMain.js +47 -0
- package/lib/module/core/OxyServicesMain.js.map +1 -0
- package/lib/module/core/analytics/AnalyticsService.js +62 -0
- package/lib/module/core/analytics/AnalyticsService.js.map +1 -0
- package/lib/module/core/auth/AuthService.js +521 -0
- package/lib/module/core/auth/AuthService.js.map +1 -0
- package/lib/module/core/devices/DeviceService.js +57 -0
- package/lib/module/core/devices/DeviceService.js.map +1 -0
- package/lib/module/core/files/FileService.js +171 -0
- package/lib/module/core/files/FileService.js.map +1 -0
- package/lib/module/core/index.js +25 -1690
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/core/karma/KarmaService.js +95 -0
- package/lib/module/core/karma/KarmaService.js.map +1 -0
- package/lib/module/core/locations/LocationService.js +127 -0
- package/lib/module/core/locations/LocationService.js.map +1 -0
- package/lib/module/core/payments/PaymentService.js +119 -0
- package/lib/module/core/payments/PaymentService.js.map +1 -0
- package/lib/module/core/users/UserService.js +230 -0
- package/lib/module/core/users/UserService.js.map +1 -0
- package/lib/module/index.js +8 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/session.js +2 -0
- package/lib/module/{types/middleware.js.map → models/session.js.map} +1 -1
- package/lib/module/ui/context/OxyContext.js +28 -24
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +2 -2
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +12 -12
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +2 -2
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInScreen.js +1 -1
- package/lib/module/ui/screens/SignInScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/stores/followStore.js +4 -4
- package/lib/module/ui/stores/followStore.js.map +1 -1
- package/lib/module/utils/apiUtils.js +85 -0
- package/lib/module/utils/apiUtils.js.map +1 -0
- package/lib/module/utils/asyncUtils.js +202 -0
- package/lib/module/utils/asyncUtils.js.map +1 -0
- package/lib/module/utils/errorUtils.js +139 -0
- package/lib/module/utils/errorUtils.js.map +1 -0
- package/lib/module/utils/hookUtils.js +381 -0
- package/lib/module/utils/hookUtils.js.map +1 -0
- package/lib/module/utils/loggerUtils.js +149 -0
- package/lib/module/utils/loggerUtils.js.map +1 -0
- package/lib/module/utils/validationUtils.js +154 -0
- package/lib/module/utils/validationUtils.js.map +1 -0
- package/lib/typescript/core/OxyServices.d.ts +99 -0
- package/lib/typescript/core/OxyServices.d.ts.map +1 -0
- package/lib/typescript/core/OxyServicesMain.d.ts +33 -0
- package/lib/typescript/core/OxyServicesMain.d.ts.map +1 -0
- package/lib/typescript/core/analytics/AnalyticsService.d.ts +26 -0
- package/lib/typescript/core/analytics/AnalyticsService.d.ts.map +1 -0
- package/lib/typescript/core/auth/AuthService.d.ts +165 -0
- package/lib/typescript/core/auth/AuthService.d.ts.map +1 -0
- package/lib/typescript/core/devices/DeviceService.d.ts +20 -0
- package/lib/typescript/core/devices/DeviceService.d.ts.map +1 -0
- package/lib/typescript/core/files/FileService.d.ts +59 -0
- package/lib/typescript/core/files/FileService.d.ts.map +1 -0
- package/lib/typescript/core/index.d.ts +19 -656
- package/lib/typescript/core/index.d.ts.map +1 -1
- package/lib/typescript/core/karma/KarmaService.d.ts +50 -0
- package/lib/typescript/core/karma/KarmaService.d.ts.map +1 -0
- package/lib/typescript/core/locations/LocationService.d.ts +39 -0
- package/lib/typescript/core/locations/LocationService.d.ts.map +1 -0
- package/lib/typescript/core/payments/PaymentService.d.ts +50 -0
- package/lib/typescript/core/payments/PaymentService.d.ts.map +1 -0
- package/lib/typescript/core/users/UserService.d.ts +111 -0
- package/lib/typescript/core/users/UserService.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +7 -3
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/models/{secureSession.d.ts → session.d.ts} +4 -4
- package/lib/typescript/models/session.d.ts.map +1 -0
- package/lib/typescript/ui/context/OxyContext.d.ts +2 -2
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/utils/apiUtils.d.ts +61 -0
- package/lib/typescript/utils/apiUtils.d.ts.map +1 -0
- package/lib/typescript/utils/asyncUtils.d.ts +64 -0
- package/lib/typescript/utils/asyncUtils.d.ts.map +1 -0
- package/lib/typescript/utils/errorUtils.d.ts +45 -0
- package/lib/typescript/utils/errorUtils.d.ts.map +1 -0
- package/lib/typescript/utils/hookUtils.d.ts +102 -0
- package/lib/typescript/utils/hookUtils.d.ts.map +1 -0
- package/lib/typescript/utils/loggerUtils.d.ts +49 -0
- package/lib/typescript/utils/loggerUtils.d.ts.map +1 -0
- package/lib/typescript/utils/validationUtils.d.ts +80 -0
- package/lib/typescript/utils/validationUtils.d.ts.map +1 -0
- package/package.json +2 -8
- package/src/core/OxyServices.ts +351 -0
- package/src/core/OxyServicesMain.ts +57 -0
- package/src/core/analytics/AnalyticsService.ts +64 -0
- package/src/core/auth/AuthService.ts +544 -0
- package/src/core/devices/DeviceService.ts +55 -0
- package/src/core/files/FileService.ts +194 -0
- package/src/core/index.ts +27 -1765
- package/src/core/karma/KarmaService.ts +104 -0
- package/src/core/locations/LocationService.ts +141 -0
- package/src/core/payments/PaymentService.ts +133 -0
- package/src/core/users/UserService.ts +241 -0
- package/src/index.ts +29 -8
- package/src/models/{secureSession.ts → session.ts} +5 -5
- package/src/ui/context/OxyContext.tsx +34 -30
- package/src/ui/screens/AccountSwitcherScreen.tsx +4 -4
- package/src/ui/screens/FileManagementScreen.tsx +12 -12
- package/src/ui/screens/ProfileScreen.tsx +3 -3
- package/src/ui/screens/SessionManagementScreen.tsx +2 -2
- package/src/ui/screens/SignInScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +2 -2
- package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +3 -3
- package/src/ui/screens/karma/KarmaRulesScreen.tsx +3 -3
- package/src/ui/stores/followStore.ts +4 -4
- package/src/utils/apiUtils.ts +102 -0
- package/src/utils/asyncUtils.ts +265 -0
- package/src/utils/errorUtils.ts +172 -0
- package/src/utils/hookUtils.ts +397 -0
- package/src/utils/loggerUtils.ts +153 -0
- package/src/utils/validationUtils.ts +158 -0
- package/lib/commonjs/middleware.js +0 -17
- package/lib/commonjs/middleware.js.map +0 -1
- package/lib/commonjs/models/secureSession.js +0 -2
- package/lib/commonjs/models/secureSession.js.map +0 -1
- package/lib/commonjs/types/middleware.js +0 -6
- package/lib/module/middleware.js +0 -12
- package/lib/module/middleware.js.map +0 -1
- package/lib/module/models/secureSession.js +0 -2
- package/lib/module/models/secureSession.js.map +0 -1
- package/lib/module/types/middleware.js +0 -4
- package/lib/typescript/middleware.d.ts +0 -9
- package/lib/typescript/middleware.d.ts.map +0 -1
- package/lib/typescript/models/secureSession.d.ts.map +0 -1
- package/lib/typescript/types/middleware.d.ts +0 -19
- package/lib/typescript/types/middleware.d.ts.map +0 -1
- package/src/middleware.ts +0 -11
- package/src/types/middleware.ts +0 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,eAAe,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGnE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAG/D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { OxyServices } from '../OxyServices';
|
|
2
|
+
import { KarmaRule, KarmaHistory, KarmaLeaderboardEntry, KarmaAwardRequest } from '../../models/interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Karma service for handling karma system operations
|
|
5
|
+
*/
|
|
6
|
+
export declare class KarmaService extends OxyServices {
|
|
7
|
+
/**
|
|
8
|
+
* Get karma leaderboard
|
|
9
|
+
*/
|
|
10
|
+
getKarmaLeaderboard(): Promise<KarmaLeaderboardEntry[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Get karma rules
|
|
13
|
+
*/
|
|
14
|
+
getKarmaRules(): Promise<KarmaRule[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Get user karma total
|
|
17
|
+
*/
|
|
18
|
+
getUserKarmaTotal(userId: string): Promise<{
|
|
19
|
+
total: number;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Get user karma history
|
|
23
|
+
*/
|
|
24
|
+
getUserKarmaHistory(userId: string, limit?: number, offset?: number): Promise<{
|
|
25
|
+
history: KarmaHistory[];
|
|
26
|
+
total: number;
|
|
27
|
+
hasMore: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Award karma to user
|
|
31
|
+
*/
|
|
32
|
+
awardKarma(data: KarmaAwardRequest): Promise<{
|
|
33
|
+
success: boolean;
|
|
34
|
+
message: string;
|
|
35
|
+
history: KarmaHistory;
|
|
36
|
+
}>;
|
|
37
|
+
/**
|
|
38
|
+
* Deduct karma from user
|
|
39
|
+
*/
|
|
40
|
+
deductKarma(data: KarmaAwardRequest): Promise<{
|
|
41
|
+
success: boolean;
|
|
42
|
+
message: string;
|
|
43
|
+
history: KarmaHistory;
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Create or update karma rule
|
|
47
|
+
*/
|
|
48
|
+
createOrUpdateKarmaRule(data: Partial<KarmaRule>): Promise<KarmaRule>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=KarmaService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KarmaService.d.ts","sourceRoot":"","sources":["../../../../src/core/karma/KarmaService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,SAAS,EACT,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAS7D;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IAS3C;;OAEG;IACG,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IASnE;;OAEG;IACG,mBAAmB,CACvB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC;QAAE,OAAO,EAAE,YAAY,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAaxE;;OAEG;IACG,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,YAAY,CAAA;KAAE,CAAC;IAShH;;OAEG;IACG,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,YAAY,CAAA;KAAE,CAAC;IASjH;;OAEG;IACG,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;CAQ5E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OxyServices } from '../OxyServices';
|
|
2
|
+
/**
|
|
3
|
+
* Location service for handling location search and geolocation features
|
|
4
|
+
*/
|
|
5
|
+
export declare class LocationService extends OxyServices {
|
|
6
|
+
/**
|
|
7
|
+
* Search locations
|
|
8
|
+
*/
|
|
9
|
+
searchLocations(query: string, limit?: number, countrycodes?: string): Promise<any[]>;
|
|
10
|
+
/**
|
|
11
|
+
* Get location details by coordinates
|
|
12
|
+
*/
|
|
13
|
+
getLocationDetails(lat: number, lon: number): Promise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* Find locations near coordinates
|
|
16
|
+
*/
|
|
17
|
+
findLocationsNear(lat: number, lon: number, maxDistance?: number, limit?: number, skip?: number): Promise<any>;
|
|
18
|
+
/**
|
|
19
|
+
* Search locations in database
|
|
20
|
+
*/
|
|
21
|
+
searchLocationsInDB(query: string, limit?: number, skip?: number, type?: string, country?: string, city?: string): Promise<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Get location statistics
|
|
24
|
+
*/
|
|
25
|
+
getLocationStats(): Promise<any>;
|
|
26
|
+
/**
|
|
27
|
+
* Get cache statistics
|
|
28
|
+
*/
|
|
29
|
+
getLocationCacheStats(): Promise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* Clear location cache
|
|
32
|
+
*/
|
|
33
|
+
clearLocationCache(): Promise<any>;
|
|
34
|
+
/**
|
|
35
|
+
* Get performance statistics
|
|
36
|
+
*/
|
|
37
|
+
getLocationPerformanceStats(): Promise<any>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=LocationService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationService.d.ts","sourceRoot":"","sources":["../../../../src/core/locations/LocationService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACG,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAkB9F;;OAEG;IACG,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAShE;;OAEG;IACG,iBAAiB,CACrB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,WAAW,GAAE,MAAc,EAC3B,KAAK,GAAE,MAAW,EAClB,IAAI,GAAE,MAAU,GACf,OAAO,CAAC,GAAG,CAAC;IAiBf;;OAEG;IACG,mBAAmB,CACvB,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,MAAW,EAClB,IAAI,GAAE,MAAU,EAChB,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,GAAG,CAAC;IAkBf;;OAEG;IACG,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC;IAStC;;OAEG;IACG,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC;IAS3C;;OAEG;IACG,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC;IASxC;;OAEG;IACG,2BAA2B,IAAI,OAAO,CAAC,GAAG,CAAC;CAQlD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { OxyServices } from '../OxyServices';
|
|
2
|
+
import { Wallet, Transaction, TransferFundsRequest, PurchaseRequest, WithdrawalRequest, TransactionResponse, PaymentMethod, PaymentRequest, PaymentResponse } from '../../models/interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Payment service for handling payments, wallet operations, and transactions
|
|
5
|
+
*/
|
|
6
|
+
export declare class PaymentService extends OxyServices {
|
|
7
|
+
/**
|
|
8
|
+
* Process payment
|
|
9
|
+
*/
|
|
10
|
+
processPayment(data: PaymentRequest): Promise<PaymentResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Validate payment method
|
|
13
|
+
*/
|
|
14
|
+
validatePaymentMethod(paymentMethod: any): Promise<{
|
|
15
|
+
valid: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Get payment methods for user
|
|
19
|
+
*/
|
|
20
|
+
getPaymentMethods(userId: string): Promise<PaymentMethod[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Get user wallet
|
|
23
|
+
*/
|
|
24
|
+
getWallet(userId: string): Promise<Wallet>;
|
|
25
|
+
/**
|
|
26
|
+
* Get transaction history
|
|
27
|
+
*/
|
|
28
|
+
getTransactionHistory(userId: string, limit?: number, offset?: number): Promise<{
|
|
29
|
+
transactions: Transaction[];
|
|
30
|
+
total: number;
|
|
31
|
+
hasMore: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Get specific transaction
|
|
35
|
+
*/
|
|
36
|
+
getTransaction(transactionId: string): Promise<Transaction>;
|
|
37
|
+
/**
|
|
38
|
+
* Transfer funds between users
|
|
39
|
+
*/
|
|
40
|
+
transferFunds(data: TransferFundsRequest): Promise<TransactionResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Process purchase
|
|
43
|
+
*/
|
|
44
|
+
processPurchase(data: PurchaseRequest): Promise<TransactionResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Request withdrawal
|
|
47
|
+
*/
|
|
48
|
+
requestWithdrawal(data: WithdrawalRequest): Promise<TransactionResponse>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=PaymentService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentService.d.ts","sourceRoot":"","sources":["../../../../src/core/payments/PaymentService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,MAAM,EACN,WAAW,EACX,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACG,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IASpE;;OAEG;IACG,qBAAqB,CAAC,aAAa,EAAE,GAAG,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;IAS5E;;OAEG;IACG,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IASjE;;OAEG;IACG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAShD;;OAEG;IACG,qBAAqB,CACzB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC;QAAE,YAAY,EAAE,WAAW,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAa5E;;OAEG;IACG,cAAc,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IASjE;;OAEG;IACG,aAAa,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAS7E;;OAEG;IACG,eAAe,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAS1E;;OAEG;IACG,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAQ/E"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { OxyServices } from '../OxyServices';
|
|
2
|
+
import { User, Notification } from '../../models/interfaces';
|
|
3
|
+
import { PaginationParams } from '../../utils/apiUtils';
|
|
4
|
+
/**
|
|
5
|
+
* User service for handling user operations, profiles, and social features
|
|
6
|
+
*/
|
|
7
|
+
export declare class UserService extends OxyServices {
|
|
8
|
+
/**
|
|
9
|
+
* Get profile by username
|
|
10
|
+
*/
|
|
11
|
+
getProfileByUsername(username: string): Promise<User>;
|
|
12
|
+
/**
|
|
13
|
+
* Search user profiles
|
|
14
|
+
*/
|
|
15
|
+
searchProfiles(query: string, pagination?: PaginationParams): Promise<User[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Get profile recommendations
|
|
18
|
+
*/
|
|
19
|
+
getProfileRecommendations(): Promise<Array<{
|
|
20
|
+
id: string;
|
|
21
|
+
username: string;
|
|
22
|
+
name?: {
|
|
23
|
+
first?: string;
|
|
24
|
+
last?: string;
|
|
25
|
+
full?: string;
|
|
26
|
+
};
|
|
27
|
+
description?: string;
|
|
28
|
+
_count?: {
|
|
29
|
+
followers: number;
|
|
30
|
+
following: number;
|
|
31
|
+
};
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>>;
|
|
34
|
+
/**
|
|
35
|
+
* Get user by ID
|
|
36
|
+
*/
|
|
37
|
+
getUserById(userId: string): Promise<User>;
|
|
38
|
+
/**
|
|
39
|
+
* Get current user
|
|
40
|
+
*/
|
|
41
|
+
getCurrentUser(): Promise<User>;
|
|
42
|
+
/**
|
|
43
|
+
* Update user profile
|
|
44
|
+
*/
|
|
45
|
+
updateProfile(updates: Record<string, any>): Promise<User>;
|
|
46
|
+
/**
|
|
47
|
+
* Update user by ID (admin function)
|
|
48
|
+
*/
|
|
49
|
+
updateUser(userId: string, updates: Record<string, any>): Promise<User>;
|
|
50
|
+
/**
|
|
51
|
+
* Follow a user
|
|
52
|
+
*/
|
|
53
|
+
followUser(userId: string): Promise<{
|
|
54
|
+
success: boolean;
|
|
55
|
+
message: string;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Unfollow a user
|
|
59
|
+
*/
|
|
60
|
+
unfollowUser(userId: string): Promise<{
|
|
61
|
+
success: boolean;
|
|
62
|
+
message: string;
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* Get follow status
|
|
66
|
+
*/
|
|
67
|
+
getFollowStatus(userId: string): Promise<{
|
|
68
|
+
isFollowing: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Get user followers
|
|
72
|
+
*/
|
|
73
|
+
getUserFollowers(userId: string, pagination?: PaginationParams): Promise<{
|
|
74
|
+
followers: User[];
|
|
75
|
+
total: number;
|
|
76
|
+
hasMore: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
/**
|
|
79
|
+
* Get user following
|
|
80
|
+
*/
|
|
81
|
+
getUserFollowing(userId: string, pagination?: PaginationParams): Promise<{
|
|
82
|
+
following: User[];
|
|
83
|
+
total: number;
|
|
84
|
+
hasMore: boolean;
|
|
85
|
+
}>;
|
|
86
|
+
/**
|
|
87
|
+
* Get notifications
|
|
88
|
+
*/
|
|
89
|
+
getNotifications(): Promise<Notification[]>;
|
|
90
|
+
/**
|
|
91
|
+
* Get unread notification count
|
|
92
|
+
*/
|
|
93
|
+
getUnreadCount(): Promise<number>;
|
|
94
|
+
/**
|
|
95
|
+
* Create notification
|
|
96
|
+
*/
|
|
97
|
+
createNotification(data: Partial<Notification>): Promise<Notification>;
|
|
98
|
+
/**
|
|
99
|
+
* Mark notification as read
|
|
100
|
+
*/
|
|
101
|
+
markNotificationAsRead(notificationId: string): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Mark all notifications as read
|
|
104
|
+
*/
|
|
105
|
+
markAllNotificationsAsRead(): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Delete notification
|
|
108
|
+
*/
|
|
109
|
+
deleteNotification(notificationId: string): Promise<void>;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=UserService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../../../src/core/users/UserService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAA4C,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAElG;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAS3D;;OAEG;IACG,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAYnF;;OAEG;IACG,yBAAyB,IAAI,OAAO,CAAC,KAAK,CAAC;QAC/C,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAA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EAAE,MAAM,EACd,UAAU,CAAC,EAAE,gBAAgB,GAC5B,OAAO,CAAC;QAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAWlE;;OAEG;IACG,gBAAgB,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IASjD;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IASvC;;OAEG;IACG,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAS5E;;OAEG;IACG,sBAAsB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQnE;;OAEG;IACG,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC;IAQjD;;OAEG;IACG,kBAAkB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAOhE"}
|
|
@@ -7,17 +7,21 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { OxyServices } from './core';
|
|
9
9
|
export { OXY_CLOUD_URL } from './core';
|
|
10
|
-
export type { AuthRequest, SimpleAuthRequest } from './types/middleware';
|
|
11
|
-
export { createAuthMiddleware } from './middleware';
|
|
12
10
|
export { OxyContextProvider, // Backward compatibility
|
|
13
11
|
useOxy } from './ui/context/OxyContext';
|
|
14
12
|
export { default as OxyProvider } from './ui/components/OxyProvider';
|
|
15
13
|
export { DeviceManager } from './utils/deviceManager';
|
|
16
14
|
export type { DeviceFingerprint, StoredDeviceInfo } from './utils/deviceManager';
|
|
17
15
|
export type { OxyConfig, User, LoginResponse, Notification, Wallet, Transaction, TransferFundsRequest, PurchaseRequest, WithdrawalRequest, TransactionResponse, KarmaRule, KarmaHistory, KarmaLeaderboardEntry, KarmaAwardRequest, ApiError, PaymentMethod, PaymentRequest, PaymentResponse, AnalyticsData, FollowerDetails, ContentViewer, FileMetadata, FileUploadResponse, FileListResponse, FileUpdateRequest, FileDeleteResponse, DeviceSession, DeviceSessionsResponse, DeviceSessionLogoutResponse, UpdateDeviceNameResponse } from './models/interfaces';
|
|
18
|
-
export type {
|
|
16
|
+
export type { SessionLoginResponse, ClientSession, MinimalUserData } from './models/session';
|
|
19
17
|
export { useAuthStore } from './ui/stores/authStore';
|
|
20
18
|
export { useSessionSocket } from './ui/hooks/useSessionSocket';
|
|
21
19
|
export { OxySignInButton } from './ui/components/OxySignInButton';
|
|
22
20
|
export { OxyLogo, FollowButton } from './ui';
|
|
21
|
+
export * from './utils/apiUtils';
|
|
22
|
+
export { ErrorCodes, createApiError, handleHttpError, validateRequiredFields, retryWithBackoff } from './utils/errorUtils';
|
|
23
|
+
export * from './utils/validationUtils';
|
|
24
|
+
export { logger, LogLevel, LogContext, logAuth, logApi, logSession, logUser, logDevice, logPayment, logPerformance } from './utils/loggerUtils';
|
|
25
|
+
export * from './utils/asyncUtils';
|
|
26
|
+
export * from './utils/hookUtils';
|
|
23
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAGvC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAGvC,OAAO,EACL,kBAAkB,EAAE,yBAAyB;AAC7C,MAAM,EACP,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,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
|
2
2
|
sessionId: string;
|
|
3
3
|
deviceId: string;
|
|
4
4
|
expiresAt: string;
|
|
5
5
|
lastActive: string;
|
|
6
6
|
userId?: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface StorageKeys {
|
|
9
9
|
sessions: string;
|
|
10
10
|
activeSessionId: string;
|
|
11
11
|
}
|
|
@@ -17,10 +17,10 @@ export interface MinimalUserData {
|
|
|
17
17
|
url?: string;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface SessionLoginResponse {
|
|
21
21
|
sessionId: string;
|
|
22
22
|
deviceId: string;
|
|
23
23
|
expiresAt: string;
|
|
24
24
|
user: MinimalUserData;
|
|
25
25
|
}
|
|
26
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/models/session.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE;QACP,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,eAAe,CAAC;CACvB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { OxyServices } from '../../core';
|
|
3
3
|
import { User, ApiError } from '../../models/interfaces';
|
|
4
|
-
import {
|
|
4
|
+
import { ClientSession, MinimalUserData } from '../../models/session';
|
|
5
5
|
export interface OxyContextState {
|
|
6
6
|
user: User | null;
|
|
7
7
|
minimalUser: MinimalUserData | null;
|
|
8
|
-
sessions:
|
|
8
|
+
sessions: ClientSession[];
|
|
9
9
|
activeSessionId: string | null;
|
|
10
10
|
isAuthenticated: boolean;
|
|
11
11
|
isLoading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqD,SAAS,EAA6B,MAAM,OAAO,CAAC;AAEvH,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,
|
|
1
|
+
{"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqD,SAAS,EAA6B,MAAM,OAAO,CAAC;AAEvH,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAwB,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAO5F,MAAM,WAAW,eAAe;IAE9B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,WAAW,EAAE,eAAe,GAAG,IAAI,CAAC;IACpC,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,eAAe,EAAE,MAAM,GAAG,IAAI,C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AM,IAAI,CAAC;CAC9B;AAGD,QAAA,MAAM,UAAU,uCAA8C,CAAC;AAG/D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CACvC;AA4DD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAinBzD,CAAC;AAGF,eAAO,MAAM,kBAAkB,mCAAc,CAAC;AAG9C,eAAO,MAAM,MAAM,QAAO,eAMzB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for common API patterns
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Build URL search parameters from an object
|
|
6
|
+
* @param params Object with parameter key-value pairs
|
|
7
|
+
* @returns URLSearchParams instance
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildSearchParams(params: Record<string, any>): URLSearchParams;
|
|
10
|
+
/**
|
|
11
|
+
* Build URL with search parameters
|
|
12
|
+
* @param baseUrl Base URL
|
|
13
|
+
* @param params Object with parameter key-value pairs
|
|
14
|
+
* @returns Complete URL with search parameters
|
|
15
|
+
*/
|
|
16
|
+
export declare function buildUrl(baseUrl: string, params?: Record<string, any>): string;
|
|
17
|
+
/**
|
|
18
|
+
* Common pagination parameters
|
|
19
|
+
*/
|
|
20
|
+
export interface PaginationParams {
|
|
21
|
+
limit?: number;
|
|
22
|
+
offset?: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Build pagination search parameters
|
|
26
|
+
* @param params Pagination parameters
|
|
27
|
+
* @returns URLSearchParams with pagination
|
|
28
|
+
*/
|
|
29
|
+
export declare function buildPaginationParams(params: PaginationParams): URLSearchParams;
|
|
30
|
+
/**
|
|
31
|
+
* Common API response wrapper
|
|
32
|
+
*/
|
|
33
|
+
export interface ApiResponse<T = any> {
|
|
34
|
+
data: T;
|
|
35
|
+
message?: string;
|
|
36
|
+
success?: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Common error response wrapper
|
|
40
|
+
*/
|
|
41
|
+
export interface ErrorResponse {
|
|
42
|
+
message: string;
|
|
43
|
+
code: string;
|
|
44
|
+
status: number;
|
|
45
|
+
details?: any;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Validate required parameters
|
|
49
|
+
* @param params Object to validate
|
|
50
|
+
* @param requiredKeys Array of required keys
|
|
51
|
+
* @throws Error if any required key is missing
|
|
52
|
+
*/
|
|
53
|
+
export declare function validateRequiredParams(params: Record<string, any>, requiredKeys: string[]): void;
|
|
54
|
+
/**
|
|
55
|
+
* Safe JSON parsing with error handling
|
|
56
|
+
* @param data Data to parse
|
|
57
|
+
* @param fallback Fallback value if parsing fails
|
|
58
|
+
* @returns Parsed data or fallback
|
|
59
|
+
*/
|
|
60
|
+
export declare function safeJsonParse<T>(data: any, fallback: T): T;
|
|
61
|
+
//# sourceMappingURL=apiUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/apiUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,eAAe,CAU9E;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAO9E;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,gBAAgB,GAAG,eAAe,CAE/E;AAED;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,GAAG;IAClC,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,CAMhG;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,CAS1D"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Async utilities for common asynchronous patterns and error handling
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Wrapper for async operations with automatic error handling
|
|
6
|
+
*/
|
|
7
|
+
export declare function withErrorHandling<T>(operation: () => Promise<T>, errorHandler?: (error: any) => void, context?: string): Promise<T | null>;
|
|
8
|
+
/**
|
|
9
|
+
* Execute multiple async operations in parallel with error handling
|
|
10
|
+
*/
|
|
11
|
+
export declare function parallelWithErrorHandling<T>(operations: (() => Promise<T>)[], errorHandler?: (error: any, index: number) => void): Promise<(T | null)[]>;
|
|
12
|
+
/**
|
|
13
|
+
* Retry an async operation with exponential backoff
|
|
14
|
+
*/
|
|
15
|
+
export declare function retryAsync<T>(operation: () => Promise<T>, maxRetries?: number, baseDelay?: number, shouldRetry?: (error: any) => boolean): Promise<T>;
|
|
16
|
+
/**
|
|
17
|
+
* Debounce async function calls
|
|
18
|
+
*/
|
|
19
|
+
export declare function debounceAsync<T extends (...args: any[]) => Promise<any>>(func: T, delay: number): (...args: Parameters<T>) => Promise<ReturnType<T>>;
|
|
20
|
+
/**
|
|
21
|
+
* Throttle async function calls
|
|
22
|
+
*/
|
|
23
|
+
export declare function throttleAsync<T extends (...args: any[]) => Promise<any>>(func: T, limit: number, interval: number): (...args: Parameters<T>) => Promise<ReturnType<T>>;
|
|
24
|
+
/**
|
|
25
|
+
* Execute async operations sequentially with progress tracking
|
|
26
|
+
*/
|
|
27
|
+
export declare function sequentialWithProgress<T>(operations: (() => Promise<T>)[], onProgress?: (completed: number, total: number) => void): Promise<T[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Batch async operations
|
|
30
|
+
*/
|
|
31
|
+
export declare function batchAsync<T>(items: T[], batchSize: number, processor: (batch: T[]) => Promise<void>): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a cancellable async operation
|
|
34
|
+
*/
|
|
35
|
+
export declare function createCancellableAsync<T>(operation: (signal: AbortSignal) => Promise<T>): {
|
|
36
|
+
execute: () => Promise<T>;
|
|
37
|
+
cancel: () => void;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Timeout wrapper for async operations
|
|
41
|
+
*/
|
|
42
|
+
export declare function withTimeout<T>(operation: Promise<T>, timeoutMs: number, timeoutMessage?: string): Promise<T>;
|
|
43
|
+
/**
|
|
44
|
+
* Cache async operation results
|
|
45
|
+
*/
|
|
46
|
+
export declare function createAsyncCache<T>(ttl?: number): {
|
|
47
|
+
get: (key: string) => T | null;
|
|
48
|
+
set: (key: string, data: T) => void;
|
|
49
|
+
clear: () => void;
|
|
50
|
+
delete: (key: string) => boolean;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Execute async operation with loading state
|
|
54
|
+
*/
|
|
55
|
+
export declare function withLoadingState<T>(operation: () => Promise<T>, setLoading: (loading: boolean) => void): Promise<T>;
|
|
56
|
+
/**
|
|
57
|
+
* Create a promise that resolves after a delay
|
|
58
|
+
*/
|
|
59
|
+
export declare const delay: (ms: number) => Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Execute async operation with retry on specific errors
|
|
62
|
+
*/
|
|
63
|
+
export declare function retryOnError<T>(operation: () => Promise<T>, retryableErrors: (string | number)[], maxRetries?: number): Promise<T>;
|
|
64
|
+
//# sourceMappingURL=asyncUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/asyncUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,EACvC,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC3B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,EACnC,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAWnB;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAAC,CAAC,EAC/C,UAAU,EAAE,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,EAChC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,GACjD,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAUvB;AAED;;GAEG;AACH,wBAAsB,UAAU,CAAC,CAAC,EAChC,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC3B,UAAU,GAAE,MAAU,EACtB,SAAS,G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C,CAAC,CAAC,GAC7C;IAAE,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IAAC,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CAYnD;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EACrB,SAAS,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,GAAG,GAAE,MAAsB;eAKd,MAAM,KAAG,CAAC,GAAG,IAAI;eAYjB,MAAM,QAAQ,CAAC,KAAG,IAAI;iBAItB,IAAI;kBAID,MAAM,KAAG,OAAO;EAIjC;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,EACtC,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC3B,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GACrC,OAAO,CAAC,CAAC,CAAC,CAOZ;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,KAAG,OAAO,CAAC,IAAI,CACE,CAAC;AAElD;;GAEG;AACH,wBAAsB,YAAY,CAAC,CAAC,EAClC,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC3B,eAAe,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EACpC,UAAU,GAAE,MAAU,GACrB,OAAO,CAAC,CAAC,CAAC,CAKZ"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ApiError } from '../models/interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Error handling utilities for consistent error processing
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Common error codes
|
|
7
|
+
*/
|
|
8
|
+
export declare const ErrorCodes: {
|
|
9
|
+
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
10
|
+
readonly FORBIDDEN: "FORBIDDEN";
|
|
11
|
+
readonly INVALID_TOKEN: "INVALID_TOKEN";
|
|
12
|
+
readonly MISSING_TOKEN: "MISSING_TOKEN";
|
|
13
|
+
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
14
|
+
readonly MISSING_PARAMETER: "MISSING_PARAMETER";
|
|
15
|
+
readonly INVALID_FORMAT: "INVALID_FORMAT";
|
|
16
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
17
|
+
readonly ALREADY_EXISTS: "ALREADY_EXISTS";
|
|
18
|
+
readonly CONFLICT: "CONFLICT";
|
|
19
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
20
|
+
readonly SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
|
|
21
|
+
readonly TIMEOUT: "TIMEOUT";
|
|
22
|
+
readonly NETWORK_ERROR: "NETWORK_ERROR";
|
|
23
|
+
readonly CONNECTION_FAILED: "CONNECTION_FAILED";
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Create a standardized API error
|
|
27
|
+
*/
|
|
28
|
+
export declare function createApiError(message: string, code?: string, status?: number, details?: any): ApiError;
|
|
29
|
+
/**
|
|
30
|
+
* Handle common HTTP errors and convert to ApiError
|
|
31
|
+
*/
|
|
32
|
+
export declare function handleHttpError(error: any): ApiError;
|
|
33
|
+
/**
|
|
34
|
+
* Validate required fields and throw error if missing
|
|
35
|
+
*/
|
|
36
|
+
export declare function validateRequiredFields(data: Record<string, any>, fields: string[]): void;
|
|
37
|
+
/**
|
|
38
|
+
* Safe error logging with context
|
|
39
|
+
*/
|
|
40
|
+
export declare function logError(error: any, context?: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* Retry function with exponential backoff
|
|
43
|
+
*/
|
|
44
|
+
export declare function retryWithBackoff<T>(fn: () => Promise<T>, maxRetries?: number, baseDelay?: number): Promise<T>;
|
|
45
|
+
//# sourceMappingURL=errorUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/errorUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAyBb,CAAC;AAEX;;GAEG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,MAAkC,EACxC,MAAM,GAAE,MAAY,EACpB,OAAO,CAAC,EAAE,GAAG,GACZ,QAAQ,CAOV;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,QAAQ,CAiCpD;AA4BD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAUxF;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAQ3D;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,EACtC,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,UAAU,GAAE,MAAU,EACtB,SAAS,GAAE,MAAa,GACvB,OAAO,CAAC,CAAC,CAAC,CAmBZ"}
|