@oxyhq/services 5.13.4 → 5.13.11
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/lib/commonjs/core/HttpClient.js +1 -1
- package/lib/commonjs/core/HttpClient.js.map +1 -1
- package/lib/commonjs/core/OxyServices.js +91 -30
- package/lib/commonjs/core/OxyServices.js.map +1 -1
- package/lib/commonjs/core/index.js +0 -7
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/i18n/locales/en-US.json +222 -6
- package/lib/commonjs/index.js +0 -7
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/lib/sonner.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedItem.js +24 -22
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +35 -14
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +36 -1
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +150 -5
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +475 -319
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +217 -0
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +911 -213
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +131 -0
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +258 -0
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +211 -0
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +307 -0
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js +1 -7
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +205 -0
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +239 -0
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SignInScreen.js +14 -29
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
- package/lib/commonjs/utils/asyncUtils.js +1 -0
- package/lib/commonjs/utils/asyncUtils.js.map +1 -1
- package/lib/commonjs/utils/cache.js +4 -4
- package/lib/commonjs/utils/cache.js.map +1 -1
- package/lib/commonjs/utils/index.js +0 -6
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/core/HttpClient.js +1 -1
- package/lib/module/core/HttpClient.js.map +1 -1
- package/lib/module/core/OxyServices.js +90 -29
- package/lib/module/core/OxyServices.js.map +1 -1
- package/lib/module/core/index.js +1 -1
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/i18n/locales/en-US.json +222 -6
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/lib/sonner.js.map +1 -1
- package/lib/module/ui/components/GroupedItem.js +24 -22
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +40 -17
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +36 -1
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +151 -6
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +475 -319
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +212 -0
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +913 -212
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +126 -0
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -0
- package/lib/module/ui/screens/HistoryViewScreen.js +253 -0
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -0
- package/lib/module/ui/screens/LegalDocumentsScreen.js +206 -0
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +302 -0
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/ProfileScreen.js +1 -7
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +200 -0
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -0
- package/lib/module/ui/screens/SearchSettingsScreen.js +234 -0
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/SignInScreen.js +14 -29
- package/lib/module/ui/screens/SignInScreen.js.map +1 -1
- package/lib/module/utils/asyncUtils.js +1 -0
- package/lib/module/utils/asyncUtils.js.map +1 -1
- package/lib/module/utils/cache.js +3 -3
- package/lib/module/utils/cache.js.map +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/core/OxyServices.d.ts +35 -23
- package/lib/typescript/core/OxyServices.d.ts.map +1 -1
- package/lib/typescript/core/index.d.ts +1 -1
- package/lib/typescript/core/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/lib/sonner.d.ts +1 -0
- package/lib/typescript/lib/sonner.d.ts.map +1 -1
- package/lib/typescript/types/expo-document-picker.d.ts +36 -0
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountVerificationScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountVerificationScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/HelpSupportScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/HelpSupportScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/HistoryViewScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/HistoryViewScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/LegalDocumentsScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/LegalDocumentsScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PrivacySettingsScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/PrivacySettingsScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SearchSettingsScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SearchSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
- package/lib/typescript/utils/asyncUtils.d.ts.map +1 -1
- package/lib/typescript/utils/cache.d.ts +3 -3
- package/lib/typescript/utils/cache.d.ts.map +1 -1
- package/lib/typescript/utils/index.d.ts +1 -1
- package/lib/typescript/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/HttpClient.ts +1 -1
- package/src/core/OxyServices.ts +88 -30
- package/src/core/index.ts +1 -1
- package/src/i18n/locales/en-US.json +222 -6
- package/src/index.ts +1 -1
- package/src/lib/sonner.ts +1 -0
- package/src/types/expo-document-picker.d.ts +36 -0
- package/src/ui/components/GroupedItem.tsx +23 -21
- package/src/ui/components/OxyProvider.tsx +33 -11
- package/src/ui/navigation/routes.ts +42 -0
- package/src/ui/screens/AccountOverviewScreen.tsx +175 -5
- package/src/ui/screens/AccountSettingsScreen.tsx +521 -360
- package/src/ui/screens/AccountVerificationScreen.tsx +235 -0
- package/src/ui/screens/FileManagementScreen.tsx +934 -208
- package/src/ui/screens/HelpSupportScreen.tsx +143 -0
- package/src/ui/screens/HistoryViewScreen.tsx +280 -0
- package/src/ui/screens/LegalDocumentsScreen.tsx +220 -0
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +0 -1
- package/src/ui/screens/PrivacySettingsScreen.tsx +332 -0
- package/src/ui/screens/ProfileScreen.tsx +1 -8
- package/src/ui/screens/SavesCollectionsScreen.tsx +222 -0
- package/src/ui/screens/SearchSettingsScreen.tsx +219 -0
- package/src/ui/screens/SignInScreen.tsx +19 -35
- package/src/utils/asyncUtils.ts +1 -0
- package/src/utils/cache.ts +3 -3
- package/src/utils/index.ts +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.README.md +0 -337
- package/lib/commonjs/ui/components/internal/TextField.md +0 -436
- package/lib/commonjs/ui/styles/FONTS.md +0 -126
- package/lib/module/ui/components/StepBasedScreen.README.md +0 -337
- package/lib/module/ui/components/internal/TextField.md +0 -436
- package/lib/module/ui/styles/FONTS.md +0 -126
- package/src/ui/components/StepBasedScreen.README.md +0 -337
- package/src/ui/components/internal/TextField.md +0 -436
- package/src/ui/styles/FONTS.md +0 -126
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrivacySettingsScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/screens/PrivacySettingsScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AASzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;;AAiU3D,wBAAiD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/screens/ProfileScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAS3D,UAAU,kBAAmB,SAAQ,eAAe;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ProfileScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/screens/ProfileScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAS3D,UAAU,kBAAmB,SAAQ,eAAe;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAiS/C,CAAC;AAiGF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SavesCollectionsScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/screens/SavesCollectionsScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AASzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;;AAmN3D,wBAAkD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchSettingsScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/screens/SearchSettingsScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAUzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;;AA+M3D,wBAAgD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/screens/SignInScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAS3D,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"SignInScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/screens/SignInScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAS3D,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyR3C,CAAC;AAIF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/asyncUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,EACvC,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC3B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAA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AG,MAAM,CAAC,EAAE,EACpC,UAAU,SAAI,GACb,OAAO,CAAC,CAAC,CAAC,CAKZ"}
|
|
@@ -121,8 +121,8 @@ export declare function registerCacheForCleanup(cache: TTLCache<any>): void;
|
|
|
121
121
|
*/
|
|
122
122
|
export declare function unregisterCacheFromCleanup(cache: TTLCache<any>): void;
|
|
123
123
|
/**
|
|
124
|
-
* Stop all
|
|
125
|
-
*
|
|
124
|
+
* Stop all cleanup intervals (useful for testing)
|
|
125
|
+
* This will clear the interval and unregister all caches
|
|
126
126
|
*/
|
|
127
|
-
export declare function
|
|
127
|
+
export declare function stopAllCleanupIntervals(): void;
|
|
128
128
|
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/utils/cache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,QAAQ,CAAC,CAAC;IACrB,OAAO,CAAC,KAAK,CAAoC;IACjD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,IAAI,CAAK;IACjB,OAAO,CAAC,MAAM,CAAK;IAEnB;;;OAGG;gBACS,UAAU,GAAE,MAAsB;IAI9C;;;;OAIG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;IAkB1B;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;IAM7C;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAI5B;;OAEG;IACH,KAAK,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AAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;IAM7C;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAI5B;;OAEG;IACH,KAAK,IAAI,IAAI;IAMb;;;;OAIG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAYzB;;;OAGG;IACH,IAAI,IAAI,MAAM,EAAE;IAehB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAcjB;;OAEG;IACH,IAAI,IAAI,MAAM;IAId;;OAEG;IACH,QAAQ,IAAI,UAAU;IAUtB;;OAEG;IACH,UAAU,IAAI,IAAI;CAInB;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,GAAE,MAAsB,GAAG,QAAQ,CAAC,CAAC,CAAC,CAEvE;AASD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAWlE;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAQrE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAM9C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { DeviceManager } from './deviceManager';
|
|
2
2
|
export type { DeviceFingerprint, StoredDeviceInfo } from './deviceManager';
|
|
3
3
|
export { RequestDeduplicator, RequestQueue, SimpleLogger } from './requestUtils';
|
|
4
|
-
export { TTLCache, createCache, registerCacheForCleanup, unregisterCacheFromCleanup
|
|
4
|
+
export { TTLCache, createCache, registerCacheForCleanup, unregisterCacheFromCleanup } from './cache';
|
|
5
5
|
export type { CacheStats } from './cache';
|
|
6
6
|
export { normalizeSession, sortSessions, deduplicateSessions, deduplicateSessionsByUserId, normalizeAndSortSessions, mergeSessions, sessionsEqual, sessionsArraysEqual } from './sessionUtils';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAG3E,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGjF,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAG3E,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGjF,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AACrG,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,mBAAmB,EACpB,MAAM,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxyhq/services",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.11",
|
|
4
4
|
"description": "Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
package/src/core/HttpClient.ts
CHANGED
|
@@ -221,7 +221,7 @@ export class HttpClient {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
// Handle regular success responses: { data: ... }
|
|
224
|
-
if (responseData && typeof responseData === 'object' && 'data' in responseData) {
|
|
224
|
+
if (responseData && typeof responseData === 'object' && 'data' in responseData && !Array.isArray(responseData)) {
|
|
225
225
|
return responseData.data as T;
|
|
226
226
|
}
|
|
227
227
|
|
package/src/core/OxyServices.ts
CHANGED
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
* See method JSDoc for more details and options.
|
|
58
58
|
*/
|
|
59
59
|
import { jwtDecode } from 'jwt-decode';
|
|
60
|
-
import type { AxiosInstance } from 'axios';
|
|
61
60
|
import type {
|
|
62
61
|
OxyConfig as OxyConfigBase,
|
|
63
62
|
ApiError,
|
|
@@ -180,6 +179,14 @@ export class OxyServices {
|
|
|
180
179
|
return this.httpClient.getBaseURL();
|
|
181
180
|
}
|
|
182
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Get the HTTP client instance
|
|
184
|
+
* Useful for advanced use cases where direct access to the HTTP client is needed
|
|
185
|
+
*/
|
|
186
|
+
public getClient(): HttpClient {
|
|
187
|
+
return this.httpClient;
|
|
188
|
+
}
|
|
189
|
+
|
|
183
190
|
/**
|
|
184
191
|
* Get performance metrics
|
|
185
192
|
*/
|
|
@@ -215,25 +222,6 @@ export class OxyServices {
|
|
|
215
222
|
return this.cloudURL;
|
|
216
223
|
}
|
|
217
224
|
|
|
218
|
-
/**
|
|
219
|
-
* Get the underlying HTTP client instance
|
|
220
|
-
* Useful for advanced use cases that need direct access to the HttpClient
|
|
221
|
-
*/
|
|
222
|
-
public getClient(): HttpClient {
|
|
223
|
-
return this.httpClient;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Get the underlying Axios instance
|
|
228
|
-
* Useful for code that needs direct access to Axios methods (get, post, etc.)
|
|
229
|
-
* @example
|
|
230
|
-
* const axios = oxyServices.getAxiosClient();
|
|
231
|
-
* const response = await axios.get('/api/endpoint');
|
|
232
|
-
*/
|
|
233
|
-
public getAxiosClient(): AxiosInstance {
|
|
234
|
-
return this.httpClient.getAxiosInstance();
|
|
235
|
-
}
|
|
236
|
-
|
|
237
225
|
/**
|
|
238
226
|
* Set authentication tokens
|
|
239
227
|
*/
|
|
@@ -818,6 +806,86 @@ export class OxyServices {
|
|
|
818
806
|
}
|
|
819
807
|
}
|
|
820
808
|
|
|
809
|
+
/**
|
|
810
|
+
* Get privacy settings for a user
|
|
811
|
+
* @param userId - The user ID (defaults to current user)
|
|
812
|
+
*/
|
|
813
|
+
async getPrivacySettings(userId?: string): Promise<any> {
|
|
814
|
+
try {
|
|
815
|
+
const id = userId || (await this.getCurrentUser()).id;
|
|
816
|
+
return await this.makeRequest<any>('GET', `/api/privacy/${id}/privacy`, undefined, {
|
|
817
|
+
cache: true,
|
|
818
|
+
cacheTTL: 2 * 60 * 1000, // 2 minutes cache
|
|
819
|
+
});
|
|
820
|
+
} catch (error) {
|
|
821
|
+
throw this.handleError(error);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Update privacy settings
|
|
827
|
+
* @param settings - Partial privacy settings object
|
|
828
|
+
* @param userId - The user ID (defaults to current user)
|
|
829
|
+
*/
|
|
830
|
+
async updatePrivacySettings(settings: Record<string, any>, userId?: string): Promise<any> {
|
|
831
|
+
try {
|
|
832
|
+
const id = userId || (await this.getCurrentUser()).id;
|
|
833
|
+
return await this.makeRequest<any>('PATCH', `/api/privacy/${id}/privacy`, settings, {
|
|
834
|
+
cache: false,
|
|
835
|
+
});
|
|
836
|
+
} catch (error) {
|
|
837
|
+
throw this.handleError(error);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Request account verification
|
|
843
|
+
*/
|
|
844
|
+
async requestAccountVerification(reason: string, evidence?: string): Promise<{ message: string; requestId: string }> {
|
|
845
|
+
try {
|
|
846
|
+
return await this.makeRequest<{ message: string; requestId: string }>('POST', '/api/users/verify/request', {
|
|
847
|
+
reason,
|
|
848
|
+
evidence,
|
|
849
|
+
}, { cache: false });
|
|
850
|
+
} catch (error) {
|
|
851
|
+
throw this.handleError(error);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Download account data export
|
|
857
|
+
*/
|
|
858
|
+
async downloadAccountData(format: 'json' | 'csv' = 'json'): Promise<Blob> {
|
|
859
|
+
try {
|
|
860
|
+
// Use axios instance directly for blob responses since RequestManager doesn't handle blobs
|
|
861
|
+
const axiosInstance = this.httpClient.getAxiosInstance();
|
|
862
|
+
|
|
863
|
+
const response = await axiosInstance.get(`/api/users/me/data?format=${format}`, {
|
|
864
|
+
responseType: 'blob',
|
|
865
|
+
});
|
|
866
|
+
|
|
867
|
+
return response.data as Blob;
|
|
868
|
+
} catch (error) {
|
|
869
|
+
throw this.handleError(error);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Delete account permanently
|
|
875
|
+
* @param password - User password for confirmation
|
|
876
|
+
* @param confirmText - Confirmation text (usually username)
|
|
877
|
+
*/
|
|
878
|
+
async deleteAccount(password: string, confirmText: string): Promise<{ message: string }> {
|
|
879
|
+
try {
|
|
880
|
+
return await this.makeRequest<{ message: string }>('DELETE', '/api/users/me', {
|
|
881
|
+
password,
|
|
882
|
+
confirmText,
|
|
883
|
+
}, { cache: false });
|
|
884
|
+
} catch (error) {
|
|
885
|
+
throw this.handleError(error);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
|
|
821
889
|
// ============================================================================
|
|
822
890
|
// LANGUAGE METHODS
|
|
823
891
|
// ============================================================================
|
|
@@ -2040,13 +2108,3 @@ export const OXY_API_URL = (typeof process !== 'undefined' && process.env && pro
|
|
|
2040
2108
|
* Uses OXY_API_URL as baseURL and OXY_CLOUD_URL as cloudURL
|
|
2041
2109
|
*/
|
|
2042
2110
|
export const oxyClient = new OxyServices({ baseURL: OXY_API_URL, cloudURL: OXY_CLOUD_URL });
|
|
2043
|
-
|
|
2044
|
-
/**
|
|
2045
|
-
* Pre-configured authenticated Axios client instance for direct HTTP calls
|
|
2046
|
-
* Useful for code that needs to use Axios methods directly (get, post, etc.)
|
|
2047
|
-
*
|
|
2048
|
-
* @example
|
|
2049
|
-
* import { authenticatedClient } from '@oxyhq/services';
|
|
2050
|
-
* const response = await authenticatedClient.get('/api/feed');
|
|
2051
|
-
*/
|
|
2052
|
-
export const authenticatedClient = oxyClient.getAxiosClient();
|
package/src/core/index.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
// Main OxyServices class (unified)
|
|
9
9
|
export { OxyServices, OxyAuthenticationError, OxyAuthenticationTimeoutError } from './OxyServices';
|
|
10
|
-
export { OXY_CLOUD_URL, oxyClient
|
|
10
|
+
export { OXY_CLOUD_URL, oxyClient } from './OxyServices';
|
|
11
11
|
|
|
12
12
|
// Re-export all models and types for convenience
|
|
13
13
|
export * from '../models/interfaces';
|
|
@@ -583,13 +583,11 @@
|
|
|
583
583
|
},
|
|
584
584
|
"privacySettings": {
|
|
585
585
|
"title": "Privacy Settings",
|
|
586
|
-
"subtitle": "Control who can see your profile"
|
|
587
|
-
"coming": "Privacy settings coming soon!"
|
|
586
|
+
"subtitle": "Control who can see your profile"
|
|
588
587
|
},
|
|
589
588
|
"verifyAccount": {
|
|
590
589
|
"title": "Verify Account",
|
|
591
|
-
"subtitle": "Get a verified badge"
|
|
592
|
-
"coming": "Account verification coming soon!"
|
|
590
|
+
"subtitle": "Get a verified badge"
|
|
593
591
|
},
|
|
594
592
|
"twoFactor": {
|
|
595
593
|
"title": "Two‑Factor Authentication",
|
|
@@ -684,12 +682,24 @@
|
|
|
684
682
|
"downloadData": {
|
|
685
683
|
"title": "Download My Data",
|
|
686
684
|
"subtitle": "Export your account information",
|
|
687
|
-
"
|
|
685
|
+
"confirmTitle": "Download Account Data",
|
|
686
|
+
"confirmMessage": "Choose the format for your account data export:",
|
|
687
|
+
"downloading": "Preparing download...",
|
|
688
|
+
"success": "Data downloaded successfully",
|
|
689
|
+
"error": "Failed to download data"
|
|
688
690
|
},
|
|
689
691
|
"deleteAccount": {
|
|
690
692
|
"title": "Delete Account",
|
|
691
693
|
"subtitle": "Permanently delete your account",
|
|
692
|
-
"
|
|
694
|
+
"confirmTitle": "Delete Account",
|
|
695
|
+
"confirmMessage": "This action cannot be undone. This will permanently delete your account and all associated data.\n\nAre you sure you want to delete your account?",
|
|
696
|
+
"finalConfirm": "This is your final warning. Your account will be permanently deleted and cannot be recovered. Type \"{{username}}\" to confirm.",
|
|
697
|
+
"confirm": "Delete Forever",
|
|
698
|
+
"passwordRequired": "Password confirmation required. Please use a modal with password input to complete account deletion.",
|
|
699
|
+
"missingFields": "Password and confirmation required",
|
|
700
|
+
"confirmMismatch": "Confirmation text does not match username",
|
|
701
|
+
"success": "Account deleted successfully",
|
|
702
|
+
"error": "Failed to delete account"
|
|
693
703
|
},
|
|
694
704
|
"preferences": {
|
|
695
705
|
"title": "Account Preferences",
|
|
@@ -713,11 +723,217 @@
|
|
|
713
723
|
"signOut": {
|
|
714
724
|
"title": "Sign Out",
|
|
715
725
|
"subtitle": "Sign out of your current account"
|
|
726
|
+
},
|
|
727
|
+
"history": {
|
|
728
|
+
"title": "History",
|
|
729
|
+
"subtitle": "View and manage your search history"
|
|
730
|
+
},
|
|
731
|
+
"saves": {
|
|
732
|
+
"title": "Saves & Collections",
|
|
733
|
+
"subtitle": "View your saved items and collections"
|
|
734
|
+
},
|
|
735
|
+
"searchSettings": {
|
|
736
|
+
"title": "Search Settings",
|
|
737
|
+
"subtitle": "SafeSearch and personalization"
|
|
738
|
+
},
|
|
739
|
+
"language": {
|
|
740
|
+
"title": "Language",
|
|
741
|
+
"subtitle": "Choose your preferred language"
|
|
742
|
+
},
|
|
743
|
+
"privacyPolicy": {
|
|
744
|
+
"title": "Privacy Policy",
|
|
745
|
+
"subtitle": "How we handle your data"
|
|
746
|
+
},
|
|
747
|
+
"termsOfService": {
|
|
748
|
+
"title": "Terms of Service",
|
|
749
|
+
"subtitle": "Terms and conditions of use"
|
|
716
750
|
}
|
|
717
751
|
},
|
|
718
752
|
"manageComing": "Manage your Oxy Account feature coming soon!",
|
|
719
753
|
"addAccountComing": "Add another account feature coming soon!"
|
|
720
754
|
},
|
|
755
|
+
"history": {
|
|
756
|
+
"title": "History",
|
|
757
|
+
"actions": "Actions",
|
|
758
|
+
"recent": "Recent History",
|
|
759
|
+
"loading": "Loading history...",
|
|
760
|
+
"empty": "No history yet",
|
|
761
|
+
"justNow": "Just now",
|
|
762
|
+
"minutesAgo": "minutes ago",
|
|
763
|
+
"hoursAgo": "hours ago",
|
|
764
|
+
"daysAgo": "days ago",
|
|
765
|
+
"deleteLast15Minutes": {
|
|
766
|
+
"title": "Delete Last 15 Minutes",
|
|
767
|
+
"subtitle": "Remove recent history entries",
|
|
768
|
+
"confirm": "Delete last 15 minutes of history?",
|
|
769
|
+
"success": "Last 15 minutes deleted",
|
|
770
|
+
"error": "Failed to delete history"
|
|
771
|
+
},
|
|
772
|
+
"clearAll": {
|
|
773
|
+
"title": "Clear All History",
|
|
774
|
+
"subtitle": "Remove all history entries",
|
|
775
|
+
"confirm": "Clear all history? This cannot be undone.",
|
|
776
|
+
"success": "History cleared",
|
|
777
|
+
"error": "Failed to clear history"
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"saves": {
|
|
781
|
+
"title": "Saves & Collections",
|
|
782
|
+
"tabs": {
|
|
783
|
+
"saves": "Saves",
|
|
784
|
+
"collections": "Collections"
|
|
785
|
+
},
|
|
786
|
+
"loading": "Loading...",
|
|
787
|
+
"empty": "No saved items yet",
|
|
788
|
+
"noCollections": "No collections yet",
|
|
789
|
+
"savedItems": "Saved Items",
|
|
790
|
+
"collections": "Collections",
|
|
791
|
+
"loadError": "Failed to load saved items"
|
|
792
|
+
},
|
|
793
|
+
"searchSettings": {
|
|
794
|
+
"title": "Search Settings",
|
|
795
|
+
"safeSearch": {
|
|
796
|
+
"title": "SafeSearch",
|
|
797
|
+
"label": "Enable SafeSearch",
|
|
798
|
+
"description": "Filter out explicit content from search results",
|
|
799
|
+
"updated": "SafeSearch setting updated",
|
|
800
|
+
"error": "Failed to update SafeSearch"
|
|
801
|
+
},
|
|
802
|
+
"personalization": {
|
|
803
|
+
"title": "Search Personalization",
|
|
804
|
+
"label": "Personalized Search",
|
|
805
|
+
"description": "Use your activity to improve search results",
|
|
806
|
+
"updated": "Search personalization updated",
|
|
807
|
+
"error": "Failed to update personalization"
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"privacySettings": {
|
|
811
|
+
"title": "Privacy Settings",
|
|
812
|
+
"loadError": "Failed to load privacy settings",
|
|
813
|
+
"updated": "Privacy settings updated",
|
|
814
|
+
"updateError": "Failed to update privacy setting",
|
|
815
|
+
"sections": {
|
|
816
|
+
"account": "ACCOUNT PRIVACY",
|
|
817
|
+
"interactions": "INTERACTIONS",
|
|
818
|
+
"activity": "ACTIVITY & DATA",
|
|
819
|
+
"content": "CONTENT & SAFETY"
|
|
820
|
+
},
|
|
821
|
+
"isPrivateAccount": "Private Account",
|
|
822
|
+
"isPrivateAccountDesc": "Only approved followers can see your posts",
|
|
823
|
+
"profileVisibility": "Profile Visibility",
|
|
824
|
+
"profileVisibilityDesc": "Control who can view your profile",
|
|
825
|
+
"hideOnlineStatus": "Hide Online Status",
|
|
826
|
+
"hideOnlineStatusDesc": "Don't show when you're online",
|
|
827
|
+
"hideLastSeen": "Hide Last Seen",
|
|
828
|
+
"hideLastSeenDesc": "Don't show when you were last active",
|
|
829
|
+
"allowTagging": "Allow Tagging",
|
|
830
|
+
"allowTaggingDesc": "Let others tag you in posts",
|
|
831
|
+
"allowMentions": "Allow Mentions",
|
|
832
|
+
"allowMentionsDesc": "Let others mention you",
|
|
833
|
+
"allowDirectMessages": "Allow Direct Messages",
|
|
834
|
+
"allowDirectMessagesDesc": "Let others send you direct messages",
|
|
835
|
+
"hideReadReceipts": "Hide Read Receipts",
|
|
836
|
+
"hideReadReceiptsDesc": "Don't show read receipts in messages",
|
|
837
|
+
"showActivity": "Show Activity Status",
|
|
838
|
+
"showActivityDesc": "Display your activity on your profile",
|
|
839
|
+
"dataSharing": "Data Sharing",
|
|
840
|
+
"dataSharingDesc": "Allow sharing data for personalization",
|
|
841
|
+
"locationSharing": "Location Sharing",
|
|
842
|
+
"locationSharingDesc": "Share your location",
|
|
843
|
+
"analyticsSharing": "Analytics Sharing",
|
|
844
|
+
"analyticsSharingDesc": "Allow analytics data collection",
|
|
845
|
+
"sensitiveContent": "Show Sensitive Content",
|
|
846
|
+
"sensitiveContentDesc": "Allow sensitive or explicit content",
|
|
847
|
+
"autoFilter": "Auto Filter",
|
|
848
|
+
"autoFilterDesc": "Automatically filter inappropriate content",
|
|
849
|
+
"muteKeywords": "Mute Keywords",
|
|
850
|
+
"muteKeywordsDesc": "Hide posts containing muted keywords",
|
|
851
|
+
"blockScreenshots": "Block Screenshots",
|
|
852
|
+
"blockScreenshotsDesc": "Prevent screenshots of your content"
|
|
853
|
+
},
|
|
854
|
+
"accountVerification": {
|
|
855
|
+
"title": "Account Verification",
|
|
856
|
+
"description": "Request a verified badge for your account. Verified accounts help establish authenticity and credibility.",
|
|
857
|
+
"sections": {
|
|
858
|
+
"request": "VERIFICATION REQUEST"
|
|
859
|
+
},
|
|
860
|
+
"reasonLabel": "Reason for Verification *",
|
|
861
|
+
"reasonPlaceholder": "Explain why you need a verified badge (e.g., public figure, brand, organization)",
|
|
862
|
+
"reasonRequired": "Please provide a reason for verification",
|
|
863
|
+
"evidenceLabel": "Evidence (Optional)",
|
|
864
|
+
"evidencePlaceholder": "Provide any supporting documentation or links (e.g., official website, social media profiles)",
|
|
865
|
+
"submit": "Submit Request",
|
|
866
|
+
"submitError": "Failed to submit verification request",
|
|
867
|
+
"successTitle": "Request Submitted",
|
|
868
|
+
"successMessage": "Your verification request has been submitted. Request ID: {{requestId}}",
|
|
869
|
+
"ok": "OK",
|
|
870
|
+
"error": "Service not available",
|
|
871
|
+
"note": "Note: Verification requests are reviewed manually and may take several days. We will notify you once your request has been reviewed."
|
|
872
|
+
},
|
|
873
|
+
"help": {
|
|
874
|
+
"title": "Help & Support",
|
|
875
|
+
"options": "Get Help",
|
|
876
|
+
"resources": "Resources",
|
|
877
|
+
"contactError": "Failed to open email client",
|
|
878
|
+
"reportError": "Failed to open email client",
|
|
879
|
+
"linkError": "Failed to open link",
|
|
880
|
+
"faqComing": "FAQ coming soon",
|
|
881
|
+
"faq": {
|
|
882
|
+
"title": "Frequently Asked Questions",
|
|
883
|
+
"subtitle": "Find answers to common questions"
|
|
884
|
+
},
|
|
885
|
+
"contact": {
|
|
886
|
+
"title": "Contact Support",
|
|
887
|
+
"subtitle": "Get help from our support team"
|
|
888
|
+
},
|
|
889
|
+
"reportBug": {
|
|
890
|
+
"title": "Report a Bug",
|
|
891
|
+
"subtitle": "Help us improve by reporting issues"
|
|
892
|
+
},
|
|
893
|
+
"documentation": {
|
|
894
|
+
"title": "Documentation",
|
|
895
|
+
"subtitle": "User guides and tutorials"
|
|
896
|
+
},
|
|
897
|
+
"community": {
|
|
898
|
+
"title": "Community",
|
|
899
|
+
"subtitle": "Join our community"
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
"legal": {
|
|
903
|
+
"title": "Legal Documents",
|
|
904
|
+
"documents": "Documents",
|
|
905
|
+
"policies": "Policies & Guidelines",
|
|
906
|
+
"opening": "Opening document...",
|
|
907
|
+
"openError": "Failed to open document",
|
|
908
|
+
"privacyPolicy": {
|
|
909
|
+
"title": "Privacy Policy",
|
|
910
|
+
"subtitle": "How we handle your data"
|
|
911
|
+
},
|
|
912
|
+
"termsOfService": {
|
|
913
|
+
"title": "Terms of Service",
|
|
914
|
+
"subtitle": "Terms and conditions of use"
|
|
915
|
+
},
|
|
916
|
+
"communityGuidelines": {
|
|
917
|
+
"title": "Community Guidelines",
|
|
918
|
+
"subtitle": "Rules and expectations for our community"
|
|
919
|
+
},
|
|
920
|
+
"dataRetention": {
|
|
921
|
+
"title": "Data Retention Policy",
|
|
922
|
+
"subtitle": "How long we keep your data"
|
|
923
|
+
},
|
|
924
|
+
"contentModeration": {
|
|
925
|
+
"title": "Content Moderation Policy",
|
|
926
|
+
"subtitle": "How we moderate content"
|
|
927
|
+
},
|
|
928
|
+
"childSafety": {
|
|
929
|
+
"title": "Child Safety Policy",
|
|
930
|
+
"subtitle": "Protecting minors on our platform"
|
|
931
|
+
},
|
|
932
|
+
"cookiePolicy": {
|
|
933
|
+
"title": "Cookie Policy",
|
|
934
|
+
"subtitle": "How we use cookies and similar technologies"
|
|
935
|
+
}
|
|
936
|
+
},
|
|
721
937
|
"common": {
|
|
722
938
|
"errors": {
|
|
723
939
|
"signOutFailed": "There was a problem signing you out. Please try again."
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
// Core exports
|
|
10
10
|
export { OxyServices, OxyAuthenticationError, OxyAuthenticationTimeoutError } from './core';
|
|
11
|
-
export { OXY_CLOUD_URL, oxyClient
|
|
11
|
+
export { OXY_CLOUD_URL, oxyClient } from './core';
|
|
12
12
|
|
|
13
13
|
// React context
|
|
14
14
|
export {
|
package/src/lib/sonner.ts
CHANGED
|
@@ -9,6 +9,7 @@ interface ToastFunction {
|
|
|
9
9
|
error: (message: string, options?: Record<string, unknown>) => void;
|
|
10
10
|
info: (message: string, options?: Record<string, unknown>) => void;
|
|
11
11
|
warning: (message: string, options?: Record<string, unknown>) => void;
|
|
12
|
+
loading: (message: string, options?: Record<string, unknown>) => void;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
type ToasterComponent = (props?: Record<string, unknown>) => React.ReactElement | null;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare module 'expo-document-picker' {
|
|
2
|
+
type DocumentPickerInputType = string | string[];
|
|
3
|
+
|
|
4
|
+
export interface DocumentPickerOptions {
|
|
5
|
+
type?: DocumentPickerInputType;
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
copyToCacheDirectory?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface DocumentPickerAsset {
|
|
11
|
+
name?: string | null;
|
|
12
|
+
size?: number | null;
|
|
13
|
+
mimeType?: string | null;
|
|
14
|
+
uri?: string;
|
|
15
|
+
file?: File | Blob;
|
|
16
|
+
lastModified?: number | null;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface DocumentPickerSuccessResult {
|
|
20
|
+
canceled: false;
|
|
21
|
+
assets: DocumentPickerAsset[];
|
|
22
|
+
type?: 'success';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface DocumentPickerCanceledResult {
|
|
26
|
+
canceled: true;
|
|
27
|
+
assets: [];
|
|
28
|
+
type?: 'cancel';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type DocumentPickerResult = DocumentPickerSuccessResult | DocumentPickerCanceledResult;
|
|
32
|
+
|
|
33
|
+
export function getDocumentAsync(options?: DocumentPickerOptions): Promise<DocumentPickerResult>;
|
|
34
|
+
export function isAvailableAsync(): Promise<boolean>;
|
|
35
|
+
}
|
|
36
|
+
|