@oxyhq/services 5.27.0 → 6.0.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 +113 -484
- package/lib/commonjs/index.js +82 -607
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js +0 -7
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +2 -2
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +13 -16
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +6 -7
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useDeviceManagement.js +2 -2
- package/lib/commonjs/ui/context/hooks/useDeviceManagement.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useLanguageManagement.js +7 -7
- package/lib/commonjs/ui/context/hooks/useLanguageManagement.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useSessionManagement.js +3 -3
- package/lib/commonjs/ui/context/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceManagement.js +2 -2
- package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useI18n.js +2 -2
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
- package/lib/commonjs/ui/hooks/useLanguageManagement.js +7 -7
- package/lib/commonjs/ui/hooks/useLanguageManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionSocket.js +9 -10
- package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/commonjs/ui/index.js +1 -11
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +3 -3
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +13 -13
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +2 -2
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +2 -2
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +3 -3
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +2 -2
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +3 -3
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +2 -2
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js +1 -11
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/stores/authStore.js +2 -2
- package/lib/commonjs/ui/stores/authStore.js.map +1 -1
- package/lib/commonjs/ui/utils/colorUtils.js +8 -8
- package/lib/commonjs/ui/utils/colorUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/themeUtils.js +6 -6
- package/lib/commonjs/ui/utils/themeUtils.js.map +1 -1
- package/lib/module/index.js +30 -75
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +0 -2
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +1 -1
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +4 -4
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +2 -2
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/context/hooks/useDeviceManagement.js +1 -1
- package/lib/module/ui/context/hooks/useDeviceManagement.js.map +1 -1
- package/lib/module/ui/context/hooks/useLanguageManagement.js +1 -1
- package/lib/module/ui/context/hooks/useLanguageManagement.js.map +1 -1
- package/lib/module/ui/context/hooks/useSessionManagement.js +1 -1
- package/lib/module/ui/context/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceManagement.js +1 -1
- package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -1
- package/lib/module/ui/hooks/useI18n.js +1 -1
- package/lib/module/ui/hooks/useI18n.js.map +1 -1
- package/lib/module/ui/hooks/useLanguageManagement.js +1 -1
- package/lib/module/ui/hooks/useLanguageManagement.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/hooks/useSessionSocket.js +2 -2
- package/lib/module/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/module/ui/index.js +0 -2
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +1 -1
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +1 -1
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/server.js +0 -2
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/stores/authStore.js +1 -1
- package/lib/module/ui/stores/authStore.js.map +1 -1
- package/lib/module/ui/utils/colorUtils.js +1 -1
- package/lib/module/ui/utils/colorUtils.js.map +1 -1
- package/lib/module/ui/utils/themeUtils.js +1 -1
- package/lib/module/ui/utils/themeUtils.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +18 -35
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +0 -2
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +3 -3
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts +3 -3
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useDeviceManagement.d.ts +2 -2
- package/lib/typescript/commonjs/ui/context/hooks/useDeviceManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useLanguageManagement.d.ts +2 -2
- package/lib/typescript/commonjs/ui/context/hooks/useLanguageManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useSessionManagement.d.ts +3 -3
- package/lib/typescript/commonjs/ui/context/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDeviceManagement.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/useDeviceManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useLanguageManagement.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/useLanguageManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts +3 -3
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useStorage.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useStorage.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useWebSSO.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/useWebSSO.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +0 -2
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts +0 -2
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/accountStore.d.ts +1 -1
- package/lib/typescript/commonjs/ui/stores/accountStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +1 -1
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts +1 -1
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/fileStore.d.ts +1 -1
- package/lib/typescript/commonjs/ui/stores/fileStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/followStore.d.ts +1 -1
- package/lib/typescript/commonjs/ui/stores/followStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/fileManagement.d.ts +1 -1
- package/lib/typescript/commonjs/ui/types/fileManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts +2 -2
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/colorUtils.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/colorUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/errorHandlers.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/errorHandlers.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/themeUtils.d.ts +2 -2
- package/lib/typescript/commonjs/ui/utils/themeUtils.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +18 -35
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +0 -2
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts +1 -1
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +3 -3
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts +3 -3
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useDeviceManagement.d.ts +2 -2
- package/lib/typescript/module/ui/context/hooks/useDeviceManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useLanguageManagement.d.ts +2 -2
- package/lib/typescript/module/ui/context/hooks/useLanguageManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useSessionManagement.d.ts +3 -3
- package/lib/typescript/module/ui/context/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useDeviceManagement.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/useDeviceManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useLanguageManagement.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/useLanguageManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts +3 -3
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useStorage.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useStorage.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useWebSSO.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/useWebSSO.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +0 -2
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts +0 -2
- package/lib/typescript/module/ui/server.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/accountStore.d.ts +1 -1
- package/lib/typescript/module/ui/stores/accountStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/assetStore.d.ts +1 -1
- package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/authStore.d.ts +1 -1
- package/lib/typescript/module/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/fileStore.d.ts +1 -1
- package/lib/typescript/module/ui/stores/fileStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/followStore.d.ts +1 -1
- package/lib/typescript/module/ui/stores/followStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/fileManagement.d.ts +1 -1
- package/lib/typescript/module/ui/types/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/authHelpers.d.ts +1 -1
- package/lib/typescript/module/ui/utils/authHelpers.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts +2 -2
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/colorUtils.d.ts +1 -1
- package/lib/typescript/module/ui/utils/colorUtils.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/errorHandlers.d.ts +1 -1
- package/lib/typescript/module/ui/utils/errorHandlers.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts +1 -1
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/themeUtils.d.ts +2 -2
- package/lib/typescript/module/ui/utils/themeUtils.d.ts.map +1 -1
- package/package.json +40 -186
- package/src/index.ts +56 -254
- package/src/ui/client.ts +0 -4
- package/src/ui/components/SignInModal.tsx +1 -1
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +1 -1
- package/src/ui/components/fileManagement/FileViewer.tsx +1 -1
- package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +1 -1
- package/src/ui/context/OxyContext.tsx +6 -6
- package/src/ui/context/hooks/useAuthOperations.ts +5 -5
- package/src/ui/context/hooks/useDeviceManagement.ts +3 -3
- package/src/ui/context/hooks/useLanguageManagement.ts +2 -2
- package/src/ui/context/hooks/useSessionManagement.ts +4 -4
- package/src/ui/hooks/mutations/mutationFactory.ts +1 -1
- package/src/ui/hooks/mutations/useAccountMutations.ts +1 -1
- package/src/ui/hooks/mutations/useServicesMutations.ts +1 -1
- package/src/ui/hooks/queries/useAccountQueries.ts +1 -1
- package/src/ui/hooks/queries/useSecurityQueries.ts +1 -1
- package/src/ui/hooks/queries/useServicesQueries.ts +1 -1
- package/src/ui/hooks/useAssets.ts +7 -7
- package/src/ui/hooks/useAuth.ts +1 -1
- package/src/ui/hooks/useDeviceManagement.ts +3 -3
- package/src/ui/hooks/useFileDownloadUrl.ts +1 -1
- package/src/ui/hooks/useFileFiltering.ts +1 -1
- package/src/ui/hooks/useI18n.ts +1 -1
- package/src/ui/hooks/useLanguageManagement.ts +2 -2
- package/src/ui/hooks/useSessionManagement.ts +4 -4
- package/src/ui/hooks/useSessionSocket.ts +2 -2
- package/src/ui/hooks/useStorage.ts +1 -1
- package/src/ui/hooks/useWebSSO.ts +2 -2
- package/src/ui/index.ts +0 -3
- package/src/ui/screens/AccountCenterScreen.tsx +1 -1
- package/src/ui/screens/AccountSwitcherScreen.tsx +2 -2
- package/src/ui/screens/AppInfoScreen.tsx +1 -1
- package/src/ui/screens/EditProfileFieldScreen.tsx +1 -1
- package/src/ui/screens/FeedbackScreen.tsx +1 -1
- package/src/ui/screens/FileManagementScreen.tsx +1 -1
- package/src/ui/screens/LanguageSelectorScreen.tsx +1 -1
- package/src/ui/screens/OxyAuthScreen.tsx +1 -1
- package/src/ui/screens/PrivacySettingsScreen.tsx +1 -1
- package/src/ui/screens/ProfileScreen.tsx +2 -2
- package/src/ui/screens/SearchSettingsScreen.tsx +1 -1
- package/src/ui/screens/SessionManagementScreen.tsx +1 -1
- package/src/ui/screens/UserListScreen.tsx +2 -2
- package/src/ui/server.ts +0 -4
- package/src/ui/stores/accountStore.ts +1 -1
- package/src/ui/stores/assetStore.ts +1 -1
- package/src/ui/stores/authStore.ts +2 -2
- package/src/ui/stores/fileStore.ts +1 -1
- package/src/ui/stores/followStore.ts +1 -1
- package/src/ui/types/fileManagement.ts +1 -1
- package/src/ui/types/navigation.ts +2 -2
- package/src/ui/utils/authHelpers.ts +1 -1
- package/src/ui/utils/avatarUtils.ts +2 -2
- package/src/ui/utils/colorUtils.ts +1 -1
- package/src/ui/utils/errorHandlers.ts +1 -1
- package/src/ui/utils/fileManagement.ts +1 -1
- package/src/ui/utils/sessionHelpers.ts +1 -1
- package/src/ui/utils/themeUtils.ts +2 -2
- package/dist/web/oxy-services.esm.js +0 -2
- package/dist/web/oxy-services.esm.js.map +0 -1
- package/dist/web/types/assets/icons/OxyServices.d.ts +0 -28
- package/dist/web/types/assets/illustrations/HighFive.d.ts +0 -8
- package/dist/web/types/constants/version.d.ts +0 -13
- package/dist/web/types/core/AuthManager.d.ts +0 -143
- package/dist/web/types/core/CrossDomainAuth.d.ts +0 -160
- package/dist/web/types/core/HttpService.d.ts +0 -163
- package/dist/web/types/core/OxyServices.base.d.ts +0 -126
- package/dist/web/types/core/OxyServices.d.ts +0 -81
- package/dist/web/types/core/OxyServices.errors.d.ts +0 -11
- package/dist/web/types/core/index.d.ts +0 -20
- package/dist/web/types/core/mixins/OxyServices.analytics.d.ts +0 -66
- package/dist/web/types/core/mixins/OxyServices.assets.d.ts +0 -135
- package/dist/web/types/core/mixins/OxyServices.auth.d.ts +0 -186
- package/dist/web/types/core/mixins/OxyServices.developer.d.ts +0 -99
- package/dist/web/types/core/mixins/OxyServices.devices.d.ts +0 -96
- package/dist/web/types/core/mixins/OxyServices.features.d.ts +0 -228
- package/dist/web/types/core/mixins/OxyServices.fedcm.d.ts +0 -200
- package/dist/web/types/core/mixins/OxyServices.karma.d.ts +0 -85
- package/dist/web/types/core/mixins/OxyServices.language.d.ts +0 -81
- package/dist/web/types/core/mixins/OxyServices.location.d.ts +0 -64
- package/dist/web/types/core/mixins/OxyServices.payment.d.ts +0 -111
- package/dist/web/types/core/mixins/OxyServices.popup.d.ts +0 -205
- package/dist/web/types/core/mixins/OxyServices.privacy.d.ts +0 -122
- package/dist/web/types/core/mixins/OxyServices.redirect.d.ts +0 -245
- package/dist/web/types/core/mixins/OxyServices.security.d.ts +0 -78
- package/dist/web/types/core/mixins/OxyServices.user.d.ts +0 -184
- package/dist/web/types/core/mixins/OxyServices.utility.d.ts +0 -93
- package/dist/web/types/core/mixins/index.d.ts +0 -30
- package/dist/web/types/core/mixins/mixinHelpers.d.ts +0 -31
- package/dist/web/types/crypto/index.d.ts +0 -11
- package/dist/web/types/crypto/keyManager.d.ts +0 -189
- package/dist/web/types/crypto/polyfill.d.ts +0 -12
- package/dist/web/types/crypto/recoveryPhrase.d.ts +0 -58
- package/dist/web/types/crypto/signatureService.d.ts +0 -86
- package/dist/web/types/i18n/index.d.ts +0 -3
- package/dist/web/types/index.d.ts +0 -62
- package/dist/web/types/lib/sonner-safe.d.ts +0 -8
- package/dist/web/types/lib/sonner.d.ts +0 -11
- package/dist/web/types/lib/sonner.web.d.ts +0 -14
- package/dist/web/types/models/interfaces.d.ts +0 -415
- package/dist/web/types/models/session.d.ts +0 -27
- package/dist/web/types/node/index.d.ts +0 -9
- package/dist/web/types/shared/index.d.ts +0 -28
- package/dist/web/types/shared/utils/colorUtils.d.ts +0 -104
- package/dist/web/types/shared/utils/debugUtils.d.ts +0 -48
- package/dist/web/types/shared/utils/errorUtils.d.ts +0 -97
- package/dist/web/types/shared/utils/index.d.ts +0 -13
- package/dist/web/types/shared/utils/networkUtils.d.ts +0 -139
- package/dist/web/types/shared/utils/themeUtils.d.ts +0 -90
- package/dist/web/types/ui/client.d.ts +0 -33
- package/dist/web/types/ui/components/ActivityIndicator.d.ts +0 -44
- package/dist/web/types/ui/components/AnimationExample.d.ts +0 -3
- package/dist/web/types/ui/components/AutoHeightScrollView.d.ts +0 -22
- package/dist/web/types/ui/components/Avatar.d.ts +0 -60
- package/dist/web/types/ui/components/BottomSheet.d.ts +0 -28
- package/dist/web/types/ui/components/BottomSheetRouter.d.ts +0 -8
- package/dist/web/types/ui/components/CrossFadeIcon.d.ts +0 -26
- package/dist/web/types/ui/components/EmptyState.d.ts +0 -7
- package/dist/web/types/ui/components/ErrorBoundary.d.ts +0 -30
- package/dist/web/types/ui/components/FollowButton.d.ts +0 -17
- package/dist/web/types/ui/components/FontLoader.d.ts +0 -14
- package/dist/web/types/ui/components/GroupedItem.d.ts +0 -23
- package/dist/web/types/ui/components/GroupedSection.d.ts +0 -24
- package/dist/web/types/ui/components/Header.d.ts +0 -37
- package/dist/web/types/ui/components/HelperText.d.ts +0 -46
- package/dist/web/types/ui/components/Icon.d.ts +0 -59
- package/dist/web/types/ui/components/IconButton/IconButton.d.ts +0 -98
- package/dist/web/types/ui/components/IconButton/utils.d.ts +0 -18
- package/dist/web/types/ui/components/LoadingState.d.ts +0 -8
- package/dist/web/types/ui/components/OxyLogo.d.ts +0 -28
- package/dist/web/types/ui/components/OxyPayButton.d.ts +0 -28
- package/dist/web/types/ui/components/OxyProvider.d.ts +0 -33
- package/dist/web/types/ui/components/OxySignInButton.d.ts +0 -64
- package/dist/web/types/ui/components/ProfileCard.d.ts +0 -17
- package/dist/web/types/ui/components/QuickActions.d.ts +0 -14
- package/dist/web/types/ui/components/Section.d.ts +0 -11
- package/dist/web/types/ui/components/SectionTitle.d.ts +0 -9
- package/dist/web/types/ui/components/SettingRow.d.ts +0 -19
- package/dist/web/types/ui/components/SignInModal.d.ts +0 -17
- package/dist/web/types/ui/components/StepBasedScreen.d.ts +0 -25
- package/dist/web/types/ui/components/Surface.d.ts +0 -75
- package/dist/web/types/ui/components/TextField/Addons/Outline.d.ts +0 -15
- package/dist/web/types/ui/components/TextField/Addons/Underline.d.ts +0 -18
- package/dist/web/types/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -44
- package/dist/web/types/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -72
- package/dist/web/types/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -77
- package/dist/web/types/ui/components/TextField/Adornment/enums.d.ts +0 -12
- package/dist/web/types/ui/components/TextField/Adornment/types.d.ts +0 -11
- package/dist/web/types/ui/components/TextField/Adornment/utils.d.ts +0 -11
- package/dist/web/types/ui/components/TextField/Label/InputLabel.d.ts +0 -4
- package/dist/web/types/ui/components/TextField/Label/LabelBackground.d.ts +0 -3
- package/dist/web/types/ui/components/TextField/TextFieldFlat.d.ts +0 -3
- package/dist/web/types/ui/components/TextField/TextFieldOutlined.d.ts +0 -3
- package/dist/web/types/ui/components/TextField/constants.d.ts +0 -31
- package/dist/web/types/ui/components/TextField/helpers.d.ts +0 -96
- package/dist/web/types/ui/components/TextField/types.d.ts +0 -155
- package/dist/web/types/ui/components/TextField.d.ts +0 -191
- package/dist/web/types/ui/components/TouchableRipple/Pressable.d.ts +0 -12
- package/dist/web/types/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -61
- package/dist/web/types/ui/components/TouchableRipple/utils.d.ts +0 -10
- package/dist/web/types/ui/components/Typography/AnimatedText.d.ts +0 -34
- package/dist/web/types/ui/components/Typography/types.d.ts +0 -18
- package/dist/web/types/ui/components/WebOxyProvider.d.ts +0 -51
- package/dist/web/types/ui/components/feedback/FormInput.d.ts +0 -19
- package/dist/web/types/ui/components/feedback/ProgressIndicator.d.ts +0 -10
- package/dist/web/types/ui/components/feedback/constants.d.ts +0 -4
- package/dist/web/types/ui/components/feedback/feedbackStyles.d.ts +0 -279
- package/dist/web/types/ui/components/feedback/index.d.ts +0 -6
- package/dist/web/types/ui/components/feedback/types.d.ts +0 -45
- package/dist/web/types/ui/components/feedback/useFeedbackForm.d.ts +0 -8
- package/dist/web/types/ui/components/fileManagement/AnimatedButton.d.ts +0 -15
- package/dist/web/types/ui/components/fileManagement/FileDetailsModal.d.ts +0 -14
- package/dist/web/types/ui/components/fileManagement/FileViewer.d.ts +0 -17
- package/dist/web/types/ui/components/fileManagement/UploadPreview.d.ts +0 -20
- package/dist/web/types/ui/components/fileManagement/styles.d.ts +0 -859
- package/dist/web/types/ui/components/icon/FAIRWalletIcon.d.ts +0 -8
- package/dist/web/types/ui/components/icon/OxyIcon.d.ts +0 -9
- package/dist/web/types/ui/components/icon/index.d.ts +0 -3
- package/dist/web/types/ui/components/index.d.ts +0 -16
- package/dist/web/types/ui/components/internal/GroupedPillButtons.d.ts +0 -17
- package/dist/web/types/ui/components/internal/PinInput.d.ts +0 -22
- package/dist/web/types/ui/components/modals/DeleteAccountModal.d.ts +0 -18
- package/dist/web/types/ui/components/modals/index.d.ts +0 -1
- package/dist/web/types/ui/components/payment/PaymentDetailsStep.d.ts +0 -20
- package/dist/web/types/ui/components/payment/PaymentMethodStep.d.ts +0 -13
- package/dist/web/types/ui/components/payment/PaymentReviewStep.d.ts +0 -15
- package/dist/web/types/ui/components/payment/PaymentSuccessStep.d.ts +0 -9
- package/dist/web/types/ui/components/payment/PaymentSummaryStep.d.ts +0 -14
- package/dist/web/types/ui/components/payment/constants.d.ts +0 -6
- package/dist/web/types/ui/components/payment/index.d.ts +0 -8
- package/dist/web/types/ui/components/payment/paymentStyles.d.ts +0 -395
- package/dist/web/types/ui/components/payment/types.d.ts +0 -39
- package/dist/web/types/ui/components/photogrid/JustifiedPhotoGrid.d.ts +0 -26
- package/dist/web/types/ui/components/styles/overlay.d.ts +0 -3
- package/dist/web/types/ui/components/styles/shadow.d.ts +0 -2
- package/dist/web/types/ui/components/theming.d.ts +0 -7
- package/dist/web/types/ui/components/types.d.ts +0 -79
- package/dist/web/types/ui/components/utils/forwardRef.d.ts +0 -11
- package/dist/web/types/ui/components/utils/hasTouchHandler.d.ts +0 -5
- package/dist/web/types/ui/components/utils/roundLayoutSize.d.ts +0 -1
- package/dist/web/types/ui/components/utils/splitStyles.d.ts +0 -19
- package/dist/web/types/ui/constants/iconColors.d.ts +0 -129
- package/dist/web/types/ui/constants/spacing.d.ts +0 -32
- package/dist/web/types/ui/constants/theme.d.ts +0 -96
- package/dist/web/types/ui/context/OxyContext.d.ts +0 -74
- package/dist/web/types/ui/context/ThemeContext.d.ts +0 -18
- package/dist/web/types/ui/context/hooks/useAuthOperations.d.ts +0 -39
- package/dist/web/types/ui/context/hooks/useDeviceManagement.d.ts +0 -26
- package/dist/web/types/ui/context/hooks/useLanguageManagement.d.ts +0 -24
- package/dist/web/types/ui/context/hooks/useSessionManagement.d.ts +0 -40
- package/dist/web/types/ui/hooks/index.d.ts +0 -6
- package/dist/web/types/ui/hooks/mutations/index.d.ts +0 -8
- package/dist/web/types/ui/hooks/mutations/mutationFactory.d.ts +0 -75
- package/dist/web/types/ui/hooks/mutations/useAccountMutations.d.ts +0 -68
- package/dist/web/types/ui/hooks/mutations/useServicesMutations.d.ts +0 -22
- package/dist/web/types/ui/hooks/queries/index.d.ts +0 -10
- package/dist/web/types/ui/hooks/queries/queryKeys.d.ts +0 -64
- package/dist/web/types/ui/hooks/queries/useAccountQueries.d.ts +0 -42
- package/dist/web/types/ui/hooks/queries/useSecurityQueries.d.ts +0 -14
- package/dist/web/types/ui/hooks/queries/useServicesQueries.d.ts +0 -31
- package/dist/web/types/ui/hooks/queryClient.d.ts +0 -18
- package/dist/web/types/ui/hooks/useAssets.d.ts +0 -34
- package/dist/web/types/ui/hooks/useAsyncAction.d.ts +0 -50
- package/dist/web/types/ui/hooks/useAuth.d.ts +0 -73
- package/dist/web/types/ui/hooks/useColorScheme.d.ts +0 -7
- package/dist/web/types/ui/hooks/useDeviceManagement.d.ts +0 -26
- package/dist/web/types/ui/hooks/useFileDownloadUrl.d.ts +0 -18
- package/dist/web/types/ui/hooks/useFileFiltering.d.ts +0 -28
- package/dist/web/types/ui/hooks/useFollow.d.ts +0 -61
- package/dist/web/types/ui/hooks/useFollow.types.d.ts +0 -32
- package/dist/web/types/ui/hooks/useI18n.d.ts +0 -4
- package/dist/web/types/ui/hooks/useLanguageManagement.d.ts +0 -24
- package/dist/web/types/ui/hooks/useProfileEditing.d.ts +0 -35
- package/dist/web/types/ui/hooks/useQueryClient.d.ts +0 -6
- package/dist/web/types/ui/hooks/useSessionManagement.d.ts +0 -40
- package/dist/web/types/ui/hooks/useSessionSocket.d.ts +0 -13
- package/dist/web/types/ui/hooks/useSettingToggle.d.ts +0 -56
- package/dist/web/types/ui/hooks/useStorage.d.ts +0 -15
- package/dist/web/types/ui/hooks/useThemeColors.d.ts +0 -93
- package/dist/web/types/ui/hooks/useThemeStyles.d.ts +0 -44
- package/dist/web/types/ui/hooks/useWebSSO.d.ts +0 -57
- package/dist/web/types/ui/index.d.ts +0 -7
- package/dist/web/types/ui/isFrontend.d.ts +0 -2
- package/dist/web/types/ui/navigation/bottomSheetManager.d.ts +0 -26
- package/dist/web/types/ui/navigation/routes.d.ts +0 -5
- package/dist/web/types/ui/screens/AccountCenterScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/AccountOverviewScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/AccountSettingsScreen.d.ts +0 -7
- package/dist/web/types/ui/screens/AccountSwitcherScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/AccountVerificationScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/AppInfoScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/EditProfileFieldScreen.d.ts +0 -12
- package/dist/web/types/ui/screens/FAQScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/FeedbackScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/FileManagementScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/FollowersListScreen.d.ts +0 -8
- package/dist/web/types/ui/screens/FollowingListScreen.d.ts +0 -8
- package/dist/web/types/ui/screens/HelpSupportScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/HistoryViewScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/LanguageSelectorScreen.d.ts +0 -6
- package/dist/web/types/ui/screens/LearnMoreUsernamesScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/LegalDocumentsScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/OxyAuthScreen.d.ts +0 -16
- package/dist/web/types/ui/screens/PaymentGatewayScreen.d.ts +0 -14
- package/dist/web/types/ui/screens/PremiumSubscriptionScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/PrivacySettingsScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/ProfileScreen.d.ts +0 -8
- package/dist/web/types/ui/screens/SavesCollectionsScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/SearchSettingsScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/SessionManagementScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/UserLinksScreen.d.ts +0 -14
- package/dist/web/types/ui/screens/UserListScreen.d.ts +0 -10
- package/dist/web/types/ui/screens/WelcomeNewUserScreen.d.ts +0 -12
- package/dist/web/types/ui/screens/karma/KarmaAboutScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/karma/KarmaCenterScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/karma/KarmaFAQScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/karma/KarmaLeaderboardScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/karma/KarmaRewardsScreen.d.ts +0 -4
- package/dist/web/types/ui/screens/karma/KarmaRulesScreen.d.ts +0 -4
- package/dist/web/types/ui/server.d.ts +0 -42
- package/dist/web/types/ui/stores/accountStore.d.ts +0 -33
- package/dist/web/types/ui/stores/assetStore.d.ts +0 -53
- package/dist/web/types/ui/stores/authStore.d.ts +0 -16
- package/dist/web/types/ui/stores/fileStore.d.ts +0 -30
- package/dist/web/types/ui/stores/followStore.d.ts +0 -24
- package/dist/web/types/ui/styles/authStyles.d.ts +0 -331
- package/dist/web/types/ui/styles/fonts.d.ts +0 -20
- package/dist/web/types/ui/styles/index.d.ts +0 -4
- package/dist/web/types/ui/styles/spacing.d.ts +0 -48
- package/dist/web/types/ui/styles/theme.d.ts +0 -67
- package/dist/web/types/ui/types/fileManagement.d.ts +0 -40
- package/dist/web/types/ui/types/navigation.d.ts +0 -36
- package/dist/web/types/ui/utils/authHelpers.d.ts +0 -98
- package/dist/web/types/ui/utils/avatarUtils.d.ts +0 -33
- package/dist/web/types/ui/utils/colorUtils.d.ts +0 -9
- package/dist/web/types/ui/utils/confirmAction.d.ts +0 -6
- package/dist/web/types/ui/utils/errorHandlers.d.ts +0 -34
- package/dist/web/types/ui/utils/fileManagement.d.ts +0 -86
- package/dist/web/types/ui/utils/iconNames.d.ts +0 -111
- package/dist/web/types/ui/utils/sessionHelpers.d.ts +0 -63
- package/dist/web/types/ui/utils/storageHelpers.d.ts +0 -27
- package/dist/web/types/ui/utils/themeUtils.d.ts +0 -10
- package/dist/web/types/ui/utils/userUtils.d.ts +0 -28
- package/dist/web/types/utils/apiUtils.d.ts +0 -53
- package/dist/web/types/utils/asyncUtils.d.ts +0 -58
- package/dist/web/types/utils/cache.d.ts +0 -127
- package/dist/web/types/utils/deviceManager.d.ts +0 -65
- package/dist/web/types/utils/errorUtils.d.ts +0 -46
- package/dist/web/types/utils/hookUtils.d.ts +0 -101
- package/dist/web/types/utils/index.d.ts +0 -6
- package/dist/web/types/utils/languageUtils.d.ts +0 -37
- package/dist/web/types/utils/loggerUtils.d.ts +0 -48
- package/dist/web/types/utils/platform.d.ts +0 -40
- package/dist/web/types/utils/platformInit.d.ts +0 -8
- package/dist/web/types/utils/requestUtils.d.ts +0 -123
- package/dist/web/types/utils/sessionUtils.d.ts +0 -54
- package/dist/web/types/utils/validationUtils.d.ts +0 -85
- package/dist/web/types/web/WebOxyContext.d.ts +0 -151
- package/dist/web/types/web/index.d.ts +0 -52
- package/dist/web/types/web.d.ts +0 -53
- package/lib/commonjs/constants/version.js +0 -28
- package/lib/commonjs/constants/version.js.map +0 -1
- package/lib/commonjs/core/AuthManager.js +0 -405
- package/lib/commonjs/core/AuthManager.js.map +0 -1
- package/lib/commonjs/core/CrossDomainAuth.js +0 -277
- package/lib/commonjs/core/CrossDomainAuth.js.map +0 -1
- package/lib/commonjs/core/HttpService.js +0 -697
- package/lib/commonjs/core/HttpService.js.map +0 -1
- package/lib/commonjs/core/OxyServices.base.js +0 -291
- package/lib/commonjs/core/OxyServices.base.js.map +0 -1
- package/lib/commonjs/core/OxyServices.errors.js +0 -26
- package/lib/commonjs/core/OxyServices.errors.js.map +0 -1
- package/lib/commonjs/core/OxyServices.js +0 -149
- package/lib/commonjs/core/OxyServices.js.map +0 -1
- package/lib/commonjs/core/index.js +0 -158
- package/lib/commonjs/core/index.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.analytics.js +0 -60
- package/lib/commonjs/core/mixins/OxyServices.analytics.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js +0 -390
- package/lib/commonjs/core/mixins/OxyServices.assets.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.auth.js +0 -296
- package/lib/commonjs/core/mixins/OxyServices.auth.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.developer.js +0 -115
- package/lib/commonjs/core/mixins/OxyServices.developer.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.devices.js +0 -133
- package/lib/commonjs/core/mixins/OxyServices.devices.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.features.js +0 -372
- package/lib/commonjs/core/mixins/OxyServices.features.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.fedcm.js +0 -464
- package/lib/commonjs/core/mixins/OxyServices.fedcm.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.karma.js +0 -117
- package/lib/commonjs/core/mixins/OxyServices.karma.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.language.js +0 -124
- package/lib/commonjs/core/mixins/OxyServices.language.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.location.js +0 -55
- package/lib/commonjs/core/mixins/OxyServices.location.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.payment.js +0 -168
- package/lib/commonjs/core/mixins/OxyServices.payment.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.popup.js +0 -393
- package/lib/commonjs/core/mixins/OxyServices.popup.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.privacy.js +0 -174
- package/lib/commonjs/core/mixins/OxyServices.privacy.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.redirect.js +0 -378
- package/lib/commonjs/core/mixins/OxyServices.redirect.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.security.js +0 -96
- package/lib/commonjs/core/mixins/OxyServices.security.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.user.js +0 -393
- package/lib/commonjs/core/mixins/OxyServices.user.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.utility.js +0 -165
- package/lib/commonjs/core/mixins/OxyServices.utility.js.map +0 -1
- package/lib/commonjs/core/mixins/index.js +0 -75
- package/lib/commonjs/core/mixins/index.js.map +0 -1
- package/lib/commonjs/core/mixins/mixinHelpers.js +0 -62
- package/lib/commonjs/core/mixins/mixinHelpers.js.map +0 -1
- package/lib/commonjs/crypto/index.js +0 -34
- package/lib/commonjs/crypto/index.js.map +0 -1
- package/lib/commonjs/crypto/keyManager.js +0 -942
- package/lib/commonjs/crypto/keyManager.js.map +0 -1
- package/lib/commonjs/crypto/polyfill.js +0 -86
- package/lib/commonjs/crypto/polyfill.js.map +0 -1
- package/lib/commonjs/crypto/recoveryPhrase.js +0 -152
- package/lib/commonjs/crypto/recoveryPhrase.js.map +0 -1
- package/lib/commonjs/crypto/signatureService.js +0 -289
- package/lib/commonjs/crypto/signatureService.js.map +0 -1
- package/lib/commonjs/i18n/index.js +0 -76
- package/lib/commonjs/i18n/index.js.map +0 -1
- package/lib/commonjs/i18n/locales/ar-SA.json +0 -120
- package/lib/commonjs/i18n/locales/ca-ES.json +0 -120
- package/lib/commonjs/i18n/locales/de-DE.json +0 -120
- package/lib/commonjs/i18n/locales/en-US.json +0 -956
- package/lib/commonjs/i18n/locales/es-ES.json +0 -944
- package/lib/commonjs/i18n/locales/fr-FR.json +0 -120
- package/lib/commonjs/i18n/locales/it-IT.json +0 -120
- package/lib/commonjs/i18n/locales/ja-JP.json +0 -119
- package/lib/commonjs/i18n/locales/ko-KR.json +0 -120
- package/lib/commonjs/i18n/locales/pt-PT.json +0 -120
- package/lib/commonjs/i18n/locales/zh-CN.json +0 -120
- package/lib/commonjs/models/interfaces.js +0 -61
- package/lib/commonjs/models/interfaces.js.map +0 -1
- package/lib/commonjs/models/session.js +0 -2
- package/lib/commonjs/models/session.js.map +0 -1
- package/lib/commonjs/node/index.js +0 -59
- package/lib/commonjs/node/index.js.map +0 -1
- package/lib/commonjs/shared/index.js +0 -227
- package/lib/commonjs/shared/index.js.map +0 -1
- package/lib/commonjs/shared/utils/colorUtils.js +0 -161
- package/lib/commonjs/shared/utils/colorUtils.js.map +0 -1
- package/lib/commonjs/shared/utils/debugUtils.js +0 -84
- package/lib/commonjs/shared/utils/debugUtils.js.map +0 -1
- package/lib/commonjs/shared/utils/errorUtils.js +0 -190
- package/lib/commonjs/shared/utils/errorUtils.js.map +0 -1
- package/lib/commonjs/shared/utils/index.js +0 -196
- package/lib/commonjs/shared/utils/index.js.map +0 -1
- package/lib/commonjs/shared/utils/networkUtils.js +0 -213
- package/lib/commonjs/shared/utils/networkUtils.js.map +0 -1
- package/lib/commonjs/shared/utils/themeUtils.js +0 -118
- package/lib/commonjs/shared/utils/themeUtils.js.map +0 -1
- package/lib/commonjs/utils/apiUtils.js +0 -79
- package/lib/commonjs/utils/apiUtils.js.map +0 -1
- package/lib/commonjs/utils/asyncUtils.js +0 -207
- package/lib/commonjs/utils/asyncUtils.js.map +0 -1
- package/lib/commonjs/utils/cache.js +0 -259
- package/lib/commonjs/utils/cache.js.map +0 -1
- package/lib/commonjs/utils/deviceManager.js +0 -177
- package/lib/commonjs/utils/deviceManager.js.map +0 -1
- package/lib/commonjs/utils/errorUtils.js +0 -168
- package/lib/commonjs/utils/errorUtils.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -106
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/languageUtils.js +0 -159
- package/lib/commonjs/utils/languageUtils.js.map +0 -1
- package/lib/commonjs/utils/loggerUtils.js +0 -160
- package/lib/commonjs/utils/loggerUtils.js.map +0 -1
- package/lib/commonjs/utils/platform.js +0 -129
- package/lib/commonjs/utils/platform.js.map +0 -1
- package/lib/commonjs/utils/platformInit.js +0 -13
- package/lib/commonjs/utils/platformInit.js.map +0 -1
- package/lib/commonjs/utils/platformInit.native.js +0 -16
- package/lib/commonjs/utils/platformInit.native.js.map +0 -1
- package/lib/commonjs/utils/requestUtils.js +0 -218
- package/lib/commonjs/utils/requestUtils.js.map +0 -1
- package/lib/commonjs/utils/sessionUtils.js +0 -191
- package/lib/commonjs/utils/sessionUtils.js.map +0 -1
- package/lib/commonjs/utils/validationUtils.js +0 -191
- package/lib/commonjs/utils/validationUtils.js.map +0 -1
- package/lib/commonjs/web/WebOxyContext.js +0 -384
- package/lib/commonjs/web/WebOxyContext.js.map +0 -1
- package/lib/commonjs/web/index.js +0 -319
- package/lib/commonjs/web/index.js.map +0 -1
- package/lib/commonjs/web.js +0 -659
- package/lib/commonjs/web.js.map +0 -1
- package/lib/module/constants/version.js +0 -21
- package/lib/module/constants/version.js.map +0 -1
- package/lib/module/core/AuthManager.js +0 -399
- package/lib/module/core/AuthManager.js.map +0 -1
- package/lib/module/core/CrossDomainAuth.js +0 -271
- package/lib/module/core/CrossDomainAuth.js.map +0 -1
- package/lib/module/core/HttpService.js +0 -692
- package/lib/module/core/HttpService.js.map +0 -1
- package/lib/module/core/OxyServices.base.js +0 -285
- package/lib/module/core/OxyServices.base.js.map +0 -1
- package/lib/module/core/OxyServices.errors.js +0 -20
- package/lib/module/core/OxyServices.errors.js.map +0 -1
- package/lib/module/core/OxyServices.js +0 -134
- package/lib/module/core/OxyServices.js.map +0 -1
- package/lib/module/core/index.js +0 -31
- package/lib/module/core/index.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.analytics.js +0 -56
- package/lib/module/core/mixins/OxyServices.analytics.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.assets.js +0 -386
- package/lib/module/core/mixins/OxyServices.assets.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.auth.js +0 -292
- package/lib/module/core/mixins/OxyServices.auth.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.developer.js +0 -111
- package/lib/module/core/mixins/OxyServices.developer.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.devices.js +0 -129
- package/lib/module/core/mixins/OxyServices.devices.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.features.js +0 -369
- package/lib/module/core/mixins/OxyServices.features.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.fedcm.js +0 -461
- package/lib/module/core/mixins/OxyServices.fedcm.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.karma.js +0 -113
- package/lib/module/core/mixins/OxyServices.karma.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.language.js +0 -120
- package/lib/module/core/mixins/OxyServices.language.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.location.js +0 -51
- package/lib/module/core/mixins/OxyServices.location.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.payment.js +0 -164
- package/lib/module/core/mixins/OxyServices.payment.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.popup.js +0 -390
- package/lib/module/core/mixins/OxyServices.popup.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.privacy.js +0 -170
- package/lib/module/core/mixins/OxyServices.privacy.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.redirect.js +0 -375
- package/lib/module/core/mixins/OxyServices.redirect.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.security.js +0 -92
- package/lib/module/core/mixins/OxyServices.security.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.user.js +0 -389
- package/lib/module/core/mixins/OxyServices.user.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.utility.js +0 -160
- package/lib/module/core/mixins/OxyServices.utility.js.map +0 -1
- package/lib/module/core/mixins/index.js +0 -72
- package/lib/module/core/mixins/index.js.map +0 -1
- package/lib/module/core/mixins/mixinHelpers.js +0 -56
- package/lib/module/core/mixins/mixinHelpers.js.map +0 -1
- package/lib/module/crypto/index.js +0 -18
- package/lib/module/crypto/index.js.map +0 -1
- package/lib/module/crypto/keyManager.js +0 -939
- package/lib/module/crypto/keyManager.js.map +0 -1
- package/lib/module/crypto/polyfill.js +0 -78
- package/lib/module/crypto/polyfill.js.map +0 -1
- package/lib/module/crypto/recoveryPhrase.js +0 -147
- package/lib/module/crypto/recoveryPhrase.js.map +0 -1
- package/lib/module/crypto/signatureService.js +0 -286
- package/lib/module/crypto/signatureService.js.map +0 -1
- package/lib/module/i18n/index.js +0 -71
- package/lib/module/i18n/index.js.map +0 -1
- package/lib/module/i18n/locales/ar-SA.json +0 -120
- package/lib/module/i18n/locales/ca-ES.json +0 -120
- package/lib/module/i18n/locales/de-DE.json +0 -120
- package/lib/module/i18n/locales/en-US.json +0 -956
- package/lib/module/i18n/locales/es-ES.json +0 -944
- package/lib/module/i18n/locales/fr-FR.json +0 -120
- package/lib/module/i18n/locales/it-IT.json +0 -120
- package/lib/module/i18n/locales/ja-JP.json +0 -119
- package/lib/module/i18n/locales/ko-KR.json +0 -120
- package/lib/module/i18n/locales/pt-PT.json +0 -120
- package/lib/module/i18n/locales/zh-CN.json +0 -120
- package/lib/module/models/interfaces.js +0 -57
- package/lib/module/models/interfaces.js.map +0 -1
- package/lib/module/models/session.js +0 -2
- package/lib/module/models/session.js.map +0 -1
- package/lib/module/node/index.js +0 -20
- package/lib/module/node/index.js.map +0 -1
- package/lib/module/shared/index.js +0 -37
- package/lib/module/shared/index.js.map +0 -1
- package/lib/module/shared/utils/colorUtils.js +0 -150
- package/lib/module/shared/utils/colorUtils.js.map +0 -1
- package/lib/module/shared/utils/debugUtils.js +0 -75
- package/lib/module/shared/utils/debugUtils.js.map +0 -1
- package/lib/module/shared/utils/errorUtils.js +0 -176
- package/lib/module/shared/utils/errorUtils.js.map +0 -1
- package/lib/module/shared/utils/index.js +0 -21
- package/lib/module/shared/utils/index.js.map +0 -1
- package/lib/module/shared/utils/networkUtils.js +0 -202
- package/lib/module/shared/utils/networkUtils.js.map +0 -1
- package/lib/module/shared/utils/themeUtils.js +0 -109
- package/lib/module/shared/utils/themeUtils.js.map +0 -1
- package/lib/module/utils/apiUtils.js +0 -72
- package/lib/module/utils/apiUtils.js.map +0 -1
- package/lib/module/utils/asyncUtils.js +0 -192
- package/lib/module/utils/asyncUtils.js.map +0 -1
- package/lib/module/utils/cache.js +0 -250
- package/lib/module/utils/cache.js.map +0 -1
- package/lib/module/utils/deviceManager.js +0 -171
- package/lib/module/utils/deviceManager.js.map +0 -1
- package/lib/module/utils/errorUtils.js +0 -160
- package/lib/module/utils/errorUtils.js.map +0 -1
- package/lib/module/utils/index.js +0 -11
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/languageUtils.js +0 -151
- package/lib/module/utils/languageUtils.js.map +0 -1
- package/lib/module/utils/loggerUtils.js +0 -149
- package/lib/module/utils/loggerUtils.js.map +0 -1
- package/lib/module/utils/platform.js +0 -118
- package/lib/module/utils/platform.js.map +0 -1
- package/lib/module/utils/platformInit.js +0 -13
- package/lib/module/utils/platformInit.js.map +0 -1
- package/lib/module/utils/platformInit.native.js +0 -16
- package/lib/module/utils/platformInit.native.js.map +0 -1
- package/lib/module/utils/requestUtils.js +0 -212
- package/lib/module/utils/requestUtils.js.map +0 -1
- package/lib/module/utils/sessionUtils.js +0 -180
- package/lib/module/utils/sessionUtils.js.map +0 -1
- package/lib/module/utils/validationUtils.js +0 -170
- package/lib/module/utils/validationUtils.js.map +0 -1
- package/lib/module/web/WebOxyContext.js +0 -377
- package/lib/module/web/WebOxyContext.js.map +0 -1
- package/lib/module/web/index.js +0 -72
- package/lib/module/web/index.js.map +0 -1
- package/lib/module/web.js +0 -76
- package/lib/module/web.js.map +0 -1
- package/lib/typescript/commonjs/constants/version.d.ts +0 -14
- package/lib/typescript/commonjs/constants/version.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/AuthManager.d.ts +0 -144
- package/lib/typescript/commonjs/core/AuthManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/CrossDomainAuth.d.ts +0 -161
- package/lib/typescript/commonjs/core/CrossDomainAuth.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/HttpService.d.ts +0 -164
- package/lib/typescript/commonjs/core/HttpService.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/OxyServices.base.d.ts +0 -127
- package/lib/typescript/commonjs/core/OxyServices.base.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/OxyServices.d.ts +0 -82
- package/lib/typescript/commonjs/core/OxyServices.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/OxyServices.errors.d.ts +0 -12
- package/lib/typescript/commonjs/core/OxyServices.errors.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/index.d.ts +0 -21
- package/lib/typescript/commonjs/core/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.analytics.d.ts +0 -67
- package/lib/typescript/commonjs/core/mixins/OxyServices.analytics.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.assets.d.ts +0 -136
- package/lib/typescript/commonjs/core/mixins/OxyServices.assets.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.auth.d.ts +0 -187
- package/lib/typescript/commonjs/core/mixins/OxyServices.auth.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.developer.d.ts +0 -100
- package/lib/typescript/commonjs/core/mixins/OxyServices.developer.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.devices.d.ts +0 -97
- package/lib/typescript/commonjs/core/mixins/OxyServices.devices.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.features.d.ts +0 -229
- package/lib/typescript/commonjs/core/mixins/OxyServices.features.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.fedcm.d.ts +0 -201
- package/lib/typescript/commonjs/core/mixins/OxyServices.fedcm.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.karma.d.ts +0 -86
- package/lib/typescript/commonjs/core/mixins/OxyServices.karma.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.language.d.ts +0 -82
- package/lib/typescript/commonjs/core/mixins/OxyServices.language.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.location.d.ts +0 -65
- package/lib/typescript/commonjs/core/mixins/OxyServices.location.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.payment.d.ts +0 -112
- package/lib/typescript/commonjs/core/mixins/OxyServices.payment.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.popup.d.ts +0 -206
- package/lib/typescript/commonjs/core/mixins/OxyServices.popup.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.privacy.d.ts +0 -123
- package/lib/typescript/commonjs/core/mixins/OxyServices.privacy.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.redirect.d.ts +0 -246
- package/lib/typescript/commonjs/core/mixins/OxyServices.redirect.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.security.d.ts +0 -79
- package/lib/typescript/commonjs/core/mixins/OxyServices.security.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.user.d.ts +0 -185
- package/lib/typescript/commonjs/core/mixins/OxyServices.user.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.utility.d.ts +0 -94
- package/lib/typescript/commonjs/core/mixins/OxyServices.utility.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/index.d.ts +0 -31
- package/lib/typescript/commonjs/core/mixins/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/mixins/mixinHelpers.d.ts +0 -32
- package/lib/typescript/commonjs/core/mixins/mixinHelpers.d.ts.map +0 -1
- package/lib/typescript/commonjs/crypto/index.d.ts +0 -12
- package/lib/typescript/commonjs/crypto/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/crypto/keyManager.d.ts +0 -190
- package/lib/typescript/commonjs/crypto/keyManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/crypto/polyfill.d.ts +0 -13
- package/lib/typescript/commonjs/crypto/polyfill.d.ts.map +0 -1
- package/lib/typescript/commonjs/crypto/recoveryPhrase.d.ts +0 -59
- package/lib/typescript/commonjs/crypto/recoveryPhrase.d.ts.map +0 -1
- package/lib/typescript/commonjs/crypto/signatureService.d.ts +0 -87
- package/lib/typescript/commonjs/crypto/signatureService.d.ts.map +0 -1
- package/lib/typescript/commonjs/i18n/index.d.ts +0 -4
- package/lib/typescript/commonjs/i18n/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/models/interfaces.d.ts +0 -416
- package/lib/typescript/commonjs/models/interfaces.d.ts.map +0 -1
- package/lib/typescript/commonjs/models/session.d.ts +0 -28
- package/lib/typescript/commonjs/models/session.d.ts.map +0 -1
- package/lib/typescript/commonjs/node/index.d.ts +0 -10
- package/lib/typescript/commonjs/node/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/shared/index.d.ts +0 -29
- package/lib/typescript/commonjs/shared/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/shared/utils/colorUtils.d.ts +0 -105
- package/lib/typescript/commonjs/shared/utils/colorUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/shared/utils/debugUtils.d.ts +0 -49
- package/lib/typescript/commonjs/shared/utils/debugUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/shared/utils/errorUtils.d.ts +0 -98
- package/lib/typescript/commonjs/shared/utils/errorUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/shared/utils/index.d.ts +0 -14
- package/lib/typescript/commonjs/shared/utils/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/shared/utils/networkUtils.d.ts +0 -140
- package/lib/typescript/commonjs/shared/utils/networkUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/shared/utils/themeUtils.d.ts +0 -91
- package/lib/typescript/commonjs/shared/utils/themeUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/apiUtils.d.ts +0 -54
- package/lib/typescript/commonjs/utils/apiUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/asyncUtils.d.ts +0 -59
- package/lib/typescript/commonjs/utils/asyncUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/cache.d.ts +0 -128
- package/lib/typescript/commonjs/utils/cache.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/deviceManager.d.ts +0 -66
- package/lib/typescript/commonjs/utils/deviceManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/errorUtils.d.ts +0 -47
- package/lib/typescript/commonjs/utils/errorUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/index.d.ts +0 -7
- package/lib/typescript/commonjs/utils/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/languageUtils.d.ts +0 -38
- package/lib/typescript/commonjs/utils/languageUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/loggerUtils.d.ts +0 -49
- package/lib/typescript/commonjs/utils/loggerUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/platform.d.ts +0 -41
- package/lib/typescript/commonjs/utils/platform.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/platformInit.d.ts +0 -10
- package/lib/typescript/commonjs/utils/platformInit.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/platformInit.native.d.ts +0 -2
- package/lib/typescript/commonjs/utils/platformInit.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/requestUtils.d.ts +0 -124
- package/lib/typescript/commonjs/utils/requestUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/sessionUtils.d.ts +0 -55
- package/lib/typescript/commonjs/utils/sessionUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/validationUtils.d.ts +0 -86
- package/lib/typescript/commonjs/utils/validationUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/web/WebOxyContext.d.ts +0 -152
- package/lib/typescript/commonjs/web/WebOxyContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/web/index.d.ts +0 -53
- package/lib/typescript/commonjs/web/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/web.d.ts +0 -54
- package/lib/typescript/commonjs/web.d.ts.map +0 -1
- package/lib/typescript/module/constants/version.d.ts +0 -14
- package/lib/typescript/module/constants/version.d.ts.map +0 -1
- package/lib/typescript/module/core/AuthManager.d.ts +0 -144
- package/lib/typescript/module/core/AuthManager.d.ts.map +0 -1
- package/lib/typescript/module/core/CrossDomainAuth.d.ts +0 -161
- package/lib/typescript/module/core/CrossDomainAuth.d.ts.map +0 -1
- package/lib/typescript/module/core/HttpService.d.ts +0 -164
- package/lib/typescript/module/core/HttpService.d.ts.map +0 -1
- package/lib/typescript/module/core/OxyServices.base.d.ts +0 -127
- package/lib/typescript/module/core/OxyServices.base.d.ts.map +0 -1
- package/lib/typescript/module/core/OxyServices.d.ts +0 -82
- package/lib/typescript/module/core/OxyServices.d.ts.map +0 -1
- package/lib/typescript/module/core/OxyServices.errors.d.ts +0 -12
- package/lib/typescript/module/core/OxyServices.errors.d.ts.map +0 -1
- package/lib/typescript/module/core/index.d.ts +0 -21
- package/lib/typescript/module/core/index.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.analytics.d.ts +0 -67
- package/lib/typescript/module/core/mixins/OxyServices.analytics.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.assets.d.ts +0 -136
- package/lib/typescript/module/core/mixins/OxyServices.assets.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.auth.d.ts +0 -187
- package/lib/typescript/module/core/mixins/OxyServices.auth.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.developer.d.ts +0 -100
- package/lib/typescript/module/core/mixins/OxyServices.developer.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.devices.d.ts +0 -97
- package/lib/typescript/module/core/mixins/OxyServices.devices.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.features.d.ts +0 -229
- package/lib/typescript/module/core/mixins/OxyServices.features.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.fedcm.d.ts +0 -201
- package/lib/typescript/module/core/mixins/OxyServices.fedcm.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.karma.d.ts +0 -86
- package/lib/typescript/module/core/mixins/OxyServices.karma.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.language.d.ts +0 -82
- package/lib/typescript/module/core/mixins/OxyServices.language.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.location.d.ts +0 -65
- package/lib/typescript/module/core/mixins/OxyServices.location.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.payment.d.ts +0 -112
- package/lib/typescript/module/core/mixins/OxyServices.payment.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.popup.d.ts +0 -206
- package/lib/typescript/module/core/mixins/OxyServices.popup.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.privacy.d.ts +0 -123
- package/lib/typescript/module/core/mixins/OxyServices.privacy.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.redirect.d.ts +0 -246
- package/lib/typescript/module/core/mixins/OxyServices.redirect.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.security.d.ts +0 -79
- package/lib/typescript/module/core/mixins/OxyServices.security.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.user.d.ts +0 -185
- package/lib/typescript/module/core/mixins/OxyServices.user.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/OxyServices.utility.d.ts +0 -94
- package/lib/typescript/module/core/mixins/OxyServices.utility.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/index.d.ts +0 -31
- package/lib/typescript/module/core/mixins/index.d.ts.map +0 -1
- package/lib/typescript/module/core/mixins/mixinHelpers.d.ts +0 -32
- package/lib/typescript/module/core/mixins/mixinHelpers.d.ts.map +0 -1
- package/lib/typescript/module/crypto/index.d.ts +0 -12
- package/lib/typescript/module/crypto/index.d.ts.map +0 -1
- package/lib/typescript/module/crypto/keyManager.d.ts +0 -190
- package/lib/typescript/module/crypto/keyManager.d.ts.map +0 -1
- package/lib/typescript/module/crypto/polyfill.d.ts +0 -13
- package/lib/typescript/module/crypto/polyfill.d.ts.map +0 -1
- package/lib/typescript/module/crypto/recoveryPhrase.d.ts +0 -59
- package/lib/typescript/module/crypto/recoveryPhrase.d.ts.map +0 -1
- package/lib/typescript/module/crypto/signatureService.d.ts +0 -87
- package/lib/typescript/module/crypto/signatureService.d.ts.map +0 -1
- package/lib/typescript/module/i18n/index.d.ts +0 -4
- package/lib/typescript/module/i18n/index.d.ts.map +0 -1
- package/lib/typescript/module/models/interfaces.d.ts +0 -416
- package/lib/typescript/module/models/interfaces.d.ts.map +0 -1
- package/lib/typescript/module/models/session.d.ts +0 -28
- package/lib/typescript/module/models/session.d.ts.map +0 -1
- package/lib/typescript/module/node/index.d.ts +0 -10
- package/lib/typescript/module/node/index.d.ts.map +0 -1
- package/lib/typescript/module/shared/index.d.ts +0 -29
- package/lib/typescript/module/shared/index.d.ts.map +0 -1
- package/lib/typescript/module/shared/utils/colorUtils.d.ts +0 -105
- package/lib/typescript/module/shared/utils/colorUtils.d.ts.map +0 -1
- package/lib/typescript/module/shared/utils/debugUtils.d.ts +0 -49
- package/lib/typescript/module/shared/utils/debugUtils.d.ts.map +0 -1
- package/lib/typescript/module/shared/utils/errorUtils.d.ts +0 -98
- package/lib/typescript/module/shared/utils/errorUtils.d.ts.map +0 -1
- package/lib/typescript/module/shared/utils/index.d.ts +0 -14
- package/lib/typescript/module/shared/utils/index.d.ts.map +0 -1
- package/lib/typescript/module/shared/utils/networkUtils.d.ts +0 -140
- package/lib/typescript/module/shared/utils/networkUtils.d.ts.map +0 -1
- package/lib/typescript/module/shared/utils/themeUtils.d.ts +0 -91
- package/lib/typescript/module/shared/utils/themeUtils.d.ts.map +0 -1
- package/lib/typescript/module/utils/apiUtils.d.ts +0 -54
- package/lib/typescript/module/utils/apiUtils.d.ts.map +0 -1
- package/lib/typescript/module/utils/asyncUtils.d.ts +0 -59
- package/lib/typescript/module/utils/asyncUtils.d.ts.map +0 -1
- package/lib/typescript/module/utils/cache.d.ts +0 -128
- package/lib/typescript/module/utils/cache.d.ts.map +0 -1
- package/lib/typescript/module/utils/deviceManager.d.ts +0 -66
- package/lib/typescript/module/utils/deviceManager.d.ts.map +0 -1
- package/lib/typescript/module/utils/errorUtils.d.ts +0 -47
- package/lib/typescript/module/utils/errorUtils.d.ts.map +0 -1
- package/lib/typescript/module/utils/index.d.ts +0 -7
- package/lib/typescript/module/utils/index.d.ts.map +0 -1
- package/lib/typescript/module/utils/languageUtils.d.ts +0 -38
- package/lib/typescript/module/utils/languageUtils.d.ts.map +0 -1
- package/lib/typescript/module/utils/loggerUtils.d.ts +0 -49
- package/lib/typescript/module/utils/loggerUtils.d.ts.map +0 -1
- package/lib/typescript/module/utils/platform.d.ts +0 -41
- package/lib/typescript/module/utils/platform.d.ts.map +0 -1
- package/lib/typescript/module/utils/platformInit.d.ts +0 -10
- package/lib/typescript/module/utils/platformInit.d.ts.map +0 -1
- package/lib/typescript/module/utils/platformInit.native.d.ts +0 -2
- package/lib/typescript/module/utils/platformInit.native.d.ts.map +0 -1
- package/lib/typescript/module/utils/requestUtils.d.ts +0 -124
- package/lib/typescript/module/utils/requestUtils.d.ts.map +0 -1
- package/lib/typescript/module/utils/sessionUtils.d.ts +0 -55
- package/lib/typescript/module/utils/sessionUtils.d.ts.map +0 -1
- package/lib/typescript/module/utils/validationUtils.d.ts +0 -86
- package/lib/typescript/module/utils/validationUtils.d.ts.map +0 -1
- package/lib/typescript/module/web/WebOxyContext.d.ts +0 -152
- package/lib/typescript/module/web/WebOxyContext.d.ts.map +0 -1
- package/lib/typescript/module/web/index.d.ts +0 -53
- package/lib/typescript/module/web/index.d.ts.map +0 -1
- package/lib/typescript/module/web.d.ts +0 -54
- package/lib/typescript/module/web.d.ts.map +0 -1
- package/lib/typescript/types/bip39.d.ts +0 -32
- package/lib/typescript/types/buffer.d.ts +0 -97
- package/lib/typescript/types/color.d.ts +0 -20
- package/lib/typescript/types/elliptic.d.ts +0 -62
- package/src/constants/version.ts +0 -15
- package/src/core/AuthManager.ts +0 -436
- package/src/core/CrossDomainAuth.ts +0 -307
- package/src/core/HttpService.ts +0 -752
- package/src/core/OxyServices.base.ts +0 -334
- package/src/core/OxyServices.errors.ts +0 -26
- package/src/core/OxyServices.ts +0 -129
- package/src/core/index.ts +0 -42
- package/src/core/mixins/OxyServices.analytics.ts +0 -53
- package/src/core/mixins/OxyServices.assets.ts +0 -412
- package/src/core/mixins/OxyServices.auth.ts +0 -358
- package/src/core/mixins/OxyServices.developer.ts +0 -114
- package/src/core/mixins/OxyServices.devices.ts +0 -119
- package/src/core/mixins/OxyServices.features.ts +0 -428
- package/src/core/mixins/OxyServices.fedcm.ts +0 -494
- package/src/core/mixins/OxyServices.karma.ts +0 -111
- package/src/core/mixins/OxyServices.language.ts +0 -127
- package/src/core/mixins/OxyServices.location.ts +0 -46
- package/src/core/mixins/OxyServices.payment.ts +0 -163
- package/src/core/mixins/OxyServices.popup.ts +0 -443
- package/src/core/mixins/OxyServices.privacy.ts +0 -182
- package/src/core/mixins/OxyServices.redirect.ts +0 -397
- package/src/core/mixins/OxyServices.security.ts +0 -103
- package/src/core/mixins/OxyServices.user.ts +0 -392
- package/src/core/mixins/OxyServices.utility.ts +0 -191
- package/src/core/mixins/index.ts +0 -91
- package/src/core/mixins/mixinHelpers.ts +0 -69
- package/src/crypto/index.ts +0 -25
- package/src/crypto/keyManager.ts +0 -962
- package/src/crypto/polyfill.ts +0 -81
- package/src/crypto/recoveryPhrase.ts +0 -166
- package/src/crypto/signatureService.ts +0 -323
- package/src/i18n/index.ts +0 -75
- package/src/i18n/locales/ar-SA.json +0 -120
- package/src/i18n/locales/ca-ES.json +0 -120
- package/src/i18n/locales/de-DE.json +0 -120
- package/src/i18n/locales/en-US.json +0 -956
- package/src/i18n/locales/es-ES.json +0 -944
- package/src/i18n/locales/fr-FR.json +0 -120
- package/src/i18n/locales/it-IT.json +0 -120
- package/src/i18n/locales/ja-JP.json +0 -119
- package/src/i18n/locales/ko-KR.json +0 -120
- package/src/i18n/locales/pt-PT.json +0 -120
- package/src/i18n/locales/zh-CN.json +0 -120
- package/src/models/interfaces.ts +0 -511
- package/src/models/session.ts +0 -30
- package/src/node/index.ts +0 -17
- package/src/shared/index.ts +0 -82
- package/src/shared/utils/colorUtils.ts +0 -155
- package/src/shared/utils/debugUtils.ts +0 -73
- package/src/shared/utils/errorUtils.ts +0 -181
- package/src/shared/utils/index.ts +0 -59
- package/src/shared/utils/networkUtils.ts +0 -248
- package/src/shared/utils/themeUtils.ts +0 -115
- package/src/types/bip39.d.ts +0 -32
- package/src/types/buffer.d.ts +0 -97
- package/src/types/color.d.ts +0 -20
- package/src/types/elliptic.d.ts +0 -62
- package/src/utils/__tests__/validationUtils.test.ts +0 -236
- package/src/utils/apiUtils.ts +0 -88
- package/src/utils/asyncUtils.ts +0 -252
- package/src/utils/cache.ts +0 -264
- package/src/utils/deviceManager.ts +0 -198
- package/src/utils/errorUtils.ts +0 -216
- package/src/utils/index.ts +0 -21
- package/src/utils/languageUtils.ts +0 -174
- package/src/utils/loggerUtils.ts +0 -153
- package/src/utils/platform.ts +0 -117
- package/src/utils/platformInit.native.ts +0 -13
- package/src/utils/platformInit.ts +0 -11
- package/src/utils/requestUtils.ts +0 -237
- package/src/utils/sessionUtils.ts +0 -206
- package/src/utils/validationUtils.ts +0 -174
- package/src/web/WebOxyContext.tsx +0 -470
- package/src/web/index.ts +0 -157
- package/src/web.ts +0 -230
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* User Management Methods Mixin
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { buildSearchParams, buildPaginationParams } from "../../utils/apiUtils.js";
|
|
8
|
-
export function OxyServicesUserMixin(Base) {
|
|
9
|
-
return class extends Base {
|
|
10
|
-
constructor(...args) {
|
|
11
|
-
super(...args);
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Get profile by username
|
|
15
|
-
*/
|
|
16
|
-
async getProfileByUsername(username) {
|
|
17
|
-
try {
|
|
18
|
-
return await this.makeRequest('GET', `/api/profiles/username/${username}`, undefined, {
|
|
19
|
-
cache: true,
|
|
20
|
-
cacheTTL: 5 * 60 * 1000 // 5 minutes cache for profiles
|
|
21
|
-
});
|
|
22
|
-
} catch (error) {
|
|
23
|
-
throw this.handleError(error);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Search user profiles
|
|
29
|
-
*/
|
|
30
|
-
async searchProfiles(query, pagination) {
|
|
31
|
-
try {
|
|
32
|
-
const params = {
|
|
33
|
-
query,
|
|
34
|
-
...pagination
|
|
35
|
-
};
|
|
36
|
-
const searchParams = buildSearchParams(params);
|
|
37
|
-
const paramsObj = Object.fromEntries(searchParams.entries());
|
|
38
|
-
const response = await this.makeRequest('GET', '/api/profiles/search', paramsObj, {
|
|
39
|
-
cache: true,
|
|
40
|
-
cacheTTL: 2 * 60 * 1000 // 2 minutes cache
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
// New API shape: { data: User[], pagination: {...} }
|
|
44
|
-
const isSearchProfilesResponse = payload => typeof payload === 'object' && payload !== null && Array.isArray(payload.data);
|
|
45
|
-
if (isSearchProfilesResponse(response)) {
|
|
46
|
-
const typedResponse = response;
|
|
47
|
-
const paginationInfo = typedResponse.pagination ?? {
|
|
48
|
-
total: typedResponse.data.length,
|
|
49
|
-
limit: pagination?.limit ?? typedResponse.data.length,
|
|
50
|
-
offset: pagination?.offset ?? 0,
|
|
51
|
-
hasMore: typedResponse.data.length === (pagination?.limit ?? typedResponse.data.length) && (pagination?.limit ?? typedResponse.data.length) > 0
|
|
52
|
-
};
|
|
53
|
-
return {
|
|
54
|
-
data: typedResponse.data,
|
|
55
|
-
pagination: paginationInfo
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Legacy API shape: returns raw User[]
|
|
60
|
-
if (Array.isArray(response)) {
|
|
61
|
-
const fallbackLimit = pagination?.limit ?? response.length;
|
|
62
|
-
const fallbackPagination = {
|
|
63
|
-
total: response.length,
|
|
64
|
-
limit: fallbackLimit,
|
|
65
|
-
offset: pagination?.offset ?? 0,
|
|
66
|
-
hasMore: fallbackLimit > 0 && response.length === fallbackLimit
|
|
67
|
-
};
|
|
68
|
-
return {
|
|
69
|
-
data: response,
|
|
70
|
-
pagination: fallbackPagination
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// If response is unexpected, throw an error
|
|
75
|
-
throw new Error('Unexpected search response format');
|
|
76
|
-
} catch (error) {
|
|
77
|
-
throw this.handleError(error);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Get profile recommendations
|
|
83
|
-
*/
|
|
84
|
-
async getProfileRecommendations() {
|
|
85
|
-
return this.withAuthRetry(async () => {
|
|
86
|
-
return await this.makeRequest('GET', '/api/profiles/recommendations', undefined, {
|
|
87
|
-
cache: true
|
|
88
|
-
});
|
|
89
|
-
}, 'getProfileRecommendations');
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Get user by ID
|
|
94
|
-
*/
|
|
95
|
-
async getUserById(userId) {
|
|
96
|
-
try {
|
|
97
|
-
return await this.makeRequest('GET', `/api/users/${userId}`, undefined, {
|
|
98
|
-
cache: true,
|
|
99
|
-
cacheTTL: 5 * 60 * 1000 // 5 minutes cache
|
|
100
|
-
});
|
|
101
|
-
} catch (error) {
|
|
102
|
-
throw this.handleError(error);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Get current user
|
|
108
|
-
*/
|
|
109
|
-
async getCurrentUser() {
|
|
110
|
-
return this.withAuthRetry(async () => {
|
|
111
|
-
return await this.makeRequest('GET', '/api/users/me', undefined, {
|
|
112
|
-
cache: true,
|
|
113
|
-
cacheTTL: 1 * 60 * 1000 // 1 minute cache for current user
|
|
114
|
-
});
|
|
115
|
-
}, 'getCurrentUser');
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Update user profile
|
|
120
|
-
* TanStack Query handles offline queuing automatically
|
|
121
|
-
*/
|
|
122
|
-
async updateProfile(updates) {
|
|
123
|
-
try {
|
|
124
|
-
return await this.makeRequest('PUT', '/api/users/me', updates, {
|
|
125
|
-
cache: false
|
|
126
|
-
});
|
|
127
|
-
} catch (error) {
|
|
128
|
-
const errorAny = error;
|
|
129
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
130
|
-
const status = errorAny?.status || errorAny?.response?.status;
|
|
131
|
-
|
|
132
|
-
// Check if it's an authentication error (401)
|
|
133
|
-
const isAuthError = status === 401 || errorMessage.includes('Authentication required') || errorMessage.includes('Invalid or missing authorization header');
|
|
134
|
-
|
|
135
|
-
// If authentication error and we don't have a token, this might be an offline session
|
|
136
|
-
// The caller should handle syncing the session before retrying
|
|
137
|
-
if (isAuthError && !this.hasValidToken()) {
|
|
138
|
-
// Re-throw with a specific message so the caller knows to sync
|
|
139
|
-
throw new Error('AUTH_REQUIRED_OFFLINE_SESSION: Session needs to be synced to get a token');
|
|
140
|
-
}
|
|
141
|
-
throw this.handleError(error);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Get privacy settings for a user
|
|
147
|
-
* @param userId - The user ID (defaults to current user)
|
|
148
|
-
*/
|
|
149
|
-
async getPrivacySettings(userId) {
|
|
150
|
-
try {
|
|
151
|
-
const id = userId || (await this.getCurrentUser()).id;
|
|
152
|
-
return await this.makeRequest('GET', `/api/privacy/${id}/privacy`, undefined, {
|
|
153
|
-
cache: true,
|
|
154
|
-
cacheTTL: 2 * 60 * 1000 // 2 minutes cache
|
|
155
|
-
});
|
|
156
|
-
} catch (error) {
|
|
157
|
-
throw this.handleError(error);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Update privacy settings
|
|
163
|
-
* @param settings - Partial privacy settings object
|
|
164
|
-
* @param userId - The user ID (defaults to current user)
|
|
165
|
-
*/
|
|
166
|
-
async updatePrivacySettings(settings, userId) {
|
|
167
|
-
try {
|
|
168
|
-
const id = userId || (await this.getCurrentUser()).id;
|
|
169
|
-
return await this.makeRequest('PATCH', `/api/privacy/${id}/privacy`, settings, {
|
|
170
|
-
cache: false
|
|
171
|
-
});
|
|
172
|
-
} catch (error) {
|
|
173
|
-
throw this.handleError(error);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Request account verification
|
|
179
|
-
*/
|
|
180
|
-
async requestAccountVerification(reason, evidence) {
|
|
181
|
-
try {
|
|
182
|
-
return await this.makeRequest('POST', '/api/users/verify/request', {
|
|
183
|
-
reason,
|
|
184
|
-
evidence
|
|
185
|
-
}, {
|
|
186
|
-
cache: false
|
|
187
|
-
});
|
|
188
|
-
} catch (error) {
|
|
189
|
-
throw this.handleError(error);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Download account data export
|
|
195
|
-
*/
|
|
196
|
-
async downloadAccountData(format = 'json') {
|
|
197
|
-
try {
|
|
198
|
-
// Use httpService for blob responses (it handles blob responses automatically)
|
|
199
|
-
const result = await this.getClient().request({
|
|
200
|
-
method: 'GET',
|
|
201
|
-
url: `/api/users/me/data`,
|
|
202
|
-
params: {
|
|
203
|
-
format
|
|
204
|
-
},
|
|
205
|
-
cache: false
|
|
206
|
-
});
|
|
207
|
-
return result;
|
|
208
|
-
} catch (error) {
|
|
209
|
-
throw this.handleError(error);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Delete account permanently
|
|
215
|
-
* @param password - User password for confirmation
|
|
216
|
-
* @param confirmText - Confirmation text (usually username)
|
|
217
|
-
*/
|
|
218
|
-
async deleteAccount(password, confirmText) {
|
|
219
|
-
try {
|
|
220
|
-
return await this.makeRequest('DELETE', '/api/users/me', {
|
|
221
|
-
password,
|
|
222
|
-
confirmText
|
|
223
|
-
}, {
|
|
224
|
-
cache: false
|
|
225
|
-
});
|
|
226
|
-
} catch (error) {
|
|
227
|
-
throw this.handleError(error);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Follow a user
|
|
233
|
-
*/
|
|
234
|
-
async followUser(userId) {
|
|
235
|
-
try {
|
|
236
|
-
return await this.makeRequest('POST', `/api/users/${userId}/follow`, undefined, {
|
|
237
|
-
cache: false
|
|
238
|
-
});
|
|
239
|
-
} catch (error) {
|
|
240
|
-
throw this.handleError(error);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Unfollow a user
|
|
246
|
-
*/
|
|
247
|
-
async unfollowUser(userId) {
|
|
248
|
-
try {
|
|
249
|
-
return await this.makeRequest('DELETE', `/api/users/${userId}/follow`, undefined, {
|
|
250
|
-
cache: false
|
|
251
|
-
});
|
|
252
|
-
} catch (error) {
|
|
253
|
-
throw this.handleError(error);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Get follow status
|
|
259
|
-
*/
|
|
260
|
-
async getFollowStatus(userId) {
|
|
261
|
-
try {
|
|
262
|
-
return await this.makeRequest('GET', `/api/users/${userId}/follow-status`, undefined, {
|
|
263
|
-
cache: true,
|
|
264
|
-
cacheTTL: 1 * 60 * 1000 // 1 minute cache
|
|
265
|
-
});
|
|
266
|
-
} catch (error) {
|
|
267
|
-
throw this.handleError(error);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* Get user followers
|
|
273
|
-
*/
|
|
274
|
-
async getUserFollowers(userId, pagination) {
|
|
275
|
-
try {
|
|
276
|
-
const params = buildPaginationParams(pagination || {});
|
|
277
|
-
const response = await this.makeRequest('GET', `/api/users/${userId}/followers`, params, {
|
|
278
|
-
cache: true,
|
|
279
|
-
cacheTTL: 2 * 60 * 1000 // 2 minutes cache
|
|
280
|
-
});
|
|
281
|
-
return {
|
|
282
|
-
followers: response.data || [],
|
|
283
|
-
total: response.pagination.total,
|
|
284
|
-
hasMore: response.pagination.hasMore
|
|
285
|
-
};
|
|
286
|
-
} catch (error) {
|
|
287
|
-
throw this.handleError(error);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Get user following
|
|
293
|
-
*/
|
|
294
|
-
async getUserFollowing(userId, pagination) {
|
|
295
|
-
try {
|
|
296
|
-
const params = buildPaginationParams(pagination || {});
|
|
297
|
-
const response = await this.makeRequest('GET', `/api/users/${userId}/following`, params, {
|
|
298
|
-
cache: true,
|
|
299
|
-
cacheTTL: 2 * 60 * 1000 // 2 minutes cache
|
|
300
|
-
});
|
|
301
|
-
return {
|
|
302
|
-
following: response.data || [],
|
|
303
|
-
total: response.pagination.total,
|
|
304
|
-
hasMore: response.pagination.hasMore
|
|
305
|
-
};
|
|
306
|
-
} catch (error) {
|
|
307
|
-
throw this.handleError(error);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Get notifications
|
|
313
|
-
*/
|
|
314
|
-
async getNotifications() {
|
|
315
|
-
return this.withAuthRetry(async () => {
|
|
316
|
-
return await this.makeRequest('GET', '/api/notifications', undefined, {
|
|
317
|
-
cache: false // Don't cache notifications - always get fresh data
|
|
318
|
-
});
|
|
319
|
-
}, 'getNotifications');
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Get unread notification count
|
|
324
|
-
*/
|
|
325
|
-
async getUnreadCount() {
|
|
326
|
-
try {
|
|
327
|
-
const res = await this.makeRequest('GET', '/api/notifications/unread-count', undefined, {
|
|
328
|
-
cache: false // Don't cache unread count - always get fresh data
|
|
329
|
-
});
|
|
330
|
-
return res.count;
|
|
331
|
-
} catch (error) {
|
|
332
|
-
throw this.handleError(error);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Create notification
|
|
338
|
-
*/
|
|
339
|
-
async createNotification(data) {
|
|
340
|
-
try {
|
|
341
|
-
return await this.makeRequest('POST', '/api/notifications', data, {
|
|
342
|
-
cache: false
|
|
343
|
-
});
|
|
344
|
-
} catch (error) {
|
|
345
|
-
throw this.handleError(error);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Mark notification as read
|
|
351
|
-
*/
|
|
352
|
-
async markNotificationAsRead(notificationId) {
|
|
353
|
-
try {
|
|
354
|
-
await this.makeRequest('PUT', `/api/notifications/${notificationId}/read`, undefined, {
|
|
355
|
-
cache: false
|
|
356
|
-
});
|
|
357
|
-
} catch (error) {
|
|
358
|
-
throw this.handleError(error);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Mark all notifications as read
|
|
364
|
-
*/
|
|
365
|
-
async markAllNotificationsAsRead() {
|
|
366
|
-
try {
|
|
367
|
-
await this.makeRequest('PUT', '/api/notifications/read-all', undefined, {
|
|
368
|
-
cache: false
|
|
369
|
-
});
|
|
370
|
-
} catch (error) {
|
|
371
|
-
throw this.handleError(error);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Delete notification
|
|
377
|
-
*/
|
|
378
|
-
async deleteNotification(notificationId) {
|
|
379
|
-
try {
|
|
380
|
-
await this.makeRequest('DELETE', `/api/notifications/${notificationId}`, undefined, {
|
|
381
|
-
cache: false
|
|
382
|
-
});
|
|
383
|
-
} catch (error) {
|
|
384
|
-
throw this.handleError(error);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
//# sourceMappingURL=OxyServices.user.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["buildSearchParams","buildPaginationParams","OxyServicesUserMixin","Base","constructor","args","getProfileByUsername","username","makeRequest","undefined","cache","cacheTTL","error","handleError","searchProfiles","query","pagination","params","searchParams","paramsObj","Object","fromEntries","entries","response","isSearchProfilesResponse","payload","Array","isArray","data","typedResponse","paginationInfo","total","length","limit","offset","hasMore","fallbackLimit","fallbackPagination","Error","getProfileRecommendations","withAuthRetry","getUserById","userId","getCurrentUser","updateProfile","updates","errorAny","errorMessage","message","String","status","isAuthError","includes","hasValidToken","getPrivacySettings","id","updatePrivacySettings","settings","requestAccountVerification","reason","evidence","downloadAccountData","format","result","getClient","request","method","url","deleteAccount","password","confirmText","followUser","unfollowUser","getFollowStatus","getUserFollowers","followers","getUserFollowing","following","getNotifications","getUnreadCount","res","count","createNotification","markNotificationAsRead","notificationId","markAllNotificationsAsRead","deleteNotification"],"sourceRoot":"../../../../src","sources":["core/mixins/OxyServices.user.ts"],"mappings":";;AAAA;AACA;AACA;;AAGA,SAASA,iBAAiB,EAAEC,qBAAqB,QAA+B,yBAAsB;AAEtG,OAAO,SAASC,oBAAoBA,CAAmCC,IAAO,EAAE;EAC9E,OAAO,cAAcA,IAAI,CAAC;IACxBC,WAAWA,CAAC,GAAGC,IAAW,EAAE;MAC1B,KAAK,C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AAS,EAAE;UAAEC,KAAK,EAAE;QAAM,CAAC,CAAC;MACvG,CAAC,CAAC,OAAOE,KAAK,EAAE;QACd,MAAM,IAAI,CAACC,WAAW,CAACD,KAAK,CAAC;MAC/B;IACF;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Utility Methods Mixin
|
|
5
|
-
*
|
|
6
|
-
* Provides utility methods including link metadata fetching
|
|
7
|
-
* and Express.js authentication middleware
|
|
8
|
-
*/
|
|
9
|
-
import { jwtDecode } from 'jwt-decode';
|
|
10
|
-
import { CACHE_TIMES } from "./mixinHelpers.js";
|
|
11
|
-
export function OxyServicesUtilityMixin(Base) {
|
|
12
|
-
return class extends Base {
|
|
13
|
-
constructor(...args) {
|
|
14
|
-
super(...args);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Fetch link metadata
|
|
18
|
-
*/
|
|
19
|
-
async fetchLinkMetadata(url) {
|
|
20
|
-
try {
|
|
21
|
-
return await this.makeRequest('GET', '/api/link-metadata', {
|
|
22
|
-
url
|
|
23
|
-
}, {
|
|
24
|
-
cache: true,
|
|
25
|
-
cacheTTL: CACHE_TIMES.EXTRA_LONG
|
|
26
|
-
});
|
|
27
|
-
} catch (error) {
|
|
28
|
-
throw this.handleError(error);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Simple Express.js authentication middleware
|
|
34
|
-
*
|
|
35
|
-
* Built-in authentication middleware that validates JWT tokens and adds user data to requests.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```typescript
|
|
39
|
-
* // Basic usage - just add it to your routes
|
|
40
|
-
* app.use('/api/protected', oxyServices.auth());
|
|
41
|
-
*
|
|
42
|
-
* // With debug logging
|
|
43
|
-
* app.use('/api/protected', oxyServices.auth({ debug: true }));
|
|
44
|
-
*
|
|
45
|
-
* // With custom error handling
|
|
46
|
-
* app.use('/api/protected', oxyServices.auth({
|
|
47
|
-
* onError: (error) => console.error('Auth failed:', error)
|
|
48
|
-
* }));
|
|
49
|
-
*
|
|
50
|
-
* // Load full user data
|
|
51
|
-
* app.use('/api/protected', oxyServices.auth({ loadUser: true }));
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @param options Optional configuration
|
|
55
|
-
* @param options.debug Enable debug logging (default: false)
|
|
56
|
-
* @param options.onError Custom error handler
|
|
57
|
-
* @param options.loadUser Load full user data (default: false for performance)
|
|
58
|
-
* @param options.session Use session-based validation (default: false)
|
|
59
|
-
* @returns Express middleware function
|
|
60
|
-
*/
|
|
61
|
-
auth(options = {}) {
|
|
62
|
-
const {
|
|
63
|
-
debug = false,
|
|
64
|
-
onError,
|
|
65
|
-
loadUser = false,
|
|
66
|
-
session = false
|
|
67
|
-
} = options;
|
|
68
|
-
|
|
69
|
-
// Return a synchronous middleware function
|
|
70
|
-
return (req, res, next) => {
|
|
71
|
-
try {
|
|
72
|
-
// Extract token from Authorization header
|
|
73
|
-
const authHeader = req.headers['authorization'];
|
|
74
|
-
const token = authHeader?.startsWith('Bearer ') ? authHeader.substring(7) : null;
|
|
75
|
-
if (debug) {
|
|
76
|
-
console.log(`🔐 Auth: Processing ${req.method} ${req.path}`);
|
|
77
|
-
console.log(`🔐 Auth: Token present: ${!!token}`);
|
|
78
|
-
}
|
|
79
|
-
if (!token) {
|
|
80
|
-
const error = {
|
|
81
|
-
message: 'Access token required',
|
|
82
|
-
code: 'MISSING_TOKEN',
|
|
83
|
-
status: 401
|
|
84
|
-
};
|
|
85
|
-
if (debug) console.log(`❌ Auth: Missing token`);
|
|
86
|
-
if (onError) return onError(error);
|
|
87
|
-
return res.status(401).json(error);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// Decode and validate token
|
|
91
|
-
let decoded;
|
|
92
|
-
try {
|
|
93
|
-
decoded = jwtDecode(token);
|
|
94
|
-
if (debug) {
|
|
95
|
-
console.log(`🔐 Auth: Token decoded, User ID: ${decoded.userId || decoded.id}`);
|
|
96
|
-
}
|
|
97
|
-
} catch (decodeError) {
|
|
98
|
-
const error = {
|
|
99
|
-
message: 'Invalid token format',
|
|
100
|
-
code: 'INVALID_TOKEN_FORMAT',
|
|
101
|
-
status: 403
|
|
102
|
-
};
|
|
103
|
-
if (debug) console.log(`❌ Auth: Token decode failed`);
|
|
104
|
-
if (onError) return onError(error);
|
|
105
|
-
return res.status(403).json(error);
|
|
106
|
-
}
|
|
107
|
-
const userId = decoded.userId || decoded.id;
|
|
108
|
-
if (!userId) {
|
|
109
|
-
const error = {
|
|
110
|
-
message: 'Token missing user ID',
|
|
111
|
-
code: 'INVALID_TOKEN_PAYLOAD',
|
|
112
|
-
status: 403
|
|
113
|
-
};
|
|
114
|
-
if (debug) console.log(`❌ Auth: Token missing user ID`);
|
|
115
|
-
if (onError) return onError(error);
|
|
116
|
-
return res.status(403).json(error);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Check token expiration
|
|
120
|
-
if (decoded.exp && decoded.exp < Math.floor(Date.now() / 1000)) {
|
|
121
|
-
const error = {
|
|
122
|
-
message: 'Token expired',
|
|
123
|
-
code: 'TOKEN_EXPIRED',
|
|
124
|
-
status: 403
|
|
125
|
-
};
|
|
126
|
-
if (debug) console.log(`❌ Auth: Token expired`);
|
|
127
|
-
if (onError) return onError(error);
|
|
128
|
-
return res.status(403).json(error);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
// For now, skip session validation to keep it simple
|
|
132
|
-
// Session validation can be added later if needed
|
|
133
|
-
|
|
134
|
-
// Set request properties immediately
|
|
135
|
-
req.userId = userId;
|
|
136
|
-
req.accessToken = token;
|
|
137
|
-
req.user = {
|
|
138
|
-
id: userId
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
// Automatically authenticate the OxyServices instance so all subsequent API calls are authenticated
|
|
142
|
-
this.setTokens(token);
|
|
143
|
-
if (debug) {
|
|
144
|
-
console.log(`✅ Auth: Authentication successful for user ${userId}`);
|
|
145
|
-
}
|
|
146
|
-
next();
|
|
147
|
-
} catch (error) {
|
|
148
|
-
const apiError = this.handleError(error);
|
|
149
|
-
if (debug) {
|
|
150
|
-
// Debug logging - using console.log is acceptable here for development
|
|
151
|
-
console.log(`❌ Auth: Unexpected error:`, apiError);
|
|
152
|
-
}
|
|
153
|
-
if (onError) return onError(apiError);
|
|
154
|
-
return res.status(apiError && apiError.status || 500).json(apiError);
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
//# sourceMappingURL=OxyServices.utility.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["jwtDecode","CACHE_TIMES","OxyServicesUtilityMixin","Base","constructor","args","fetchLinkMetadata","url","makeRequest","cache","cacheTTL","EXTRA_LONG","error","handleError","auth","options","debug","onError","loadUser","session","req","res","next","authHeader","headers","token","startsWith","substring","console","log","method","path","message","code","status","json","decoded","userId","id","decodeError","exp","Math","floor","Date","now","accessToken","user","setTokens","apiError"],"sourceRoot":"../../../../src","sources":["core/mixins/OxyServices.utility.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,SAAS,QAAQ,YAAY;AAGtC,SAASC,WAAW,QAAQ,mBAAgB;AAU5C,OAAO,SAASC,uBAAuBA,CAAmCC,IAAO,EAAE;EACjF,OAAO,cAAcA,IAAI,CAAC;IACxBC,WAAWA,CAAC,GAAGC,IAAW,EAAE;MAC1B,KAAK,CAAC,GAAIA,IAAc,CAAC;IAC3B;IACA;AACJ;AACA;IACI,MAAMC,iBAAiBA,CAACC,GAAW,EAKhC;MACD,IAAI;QACF,OAAO,MAAM,IAAI,CAACC,WAAW,CAK1B,KAAK,EAAE,oBAAoB,EAAE;UAAED;QAAI,CAAC,EAAE;UACvCE,KAAK,EAAE,IAAI;UACXC,QAAQ,EAAET,WAAW,CAAC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Ae;cACrBC,MAAM,EAAE;YACV,CAAC;YAED,IAAIlB,KAAK,EAAEY,OAAO,CAACC,GAAG,CAAC,uBAAuB,CAAC;YAE/C,IAAIZ,OAAO,EAAE,OAAOA,OAAO,CAACL,KAAK,CAAC;YAClC,OAAOS,GAAG,CAACa,MAAM,CAAC,GAAG,CAAC,CAACC,IAAI,CAACvB,KAAK,CAAC;UACpC;;UAEA;UACA;;UAEA;UACAQ,GAAG,CAACiB,MAAM,GAAGA,MAAM;UACnBjB,GAAG,CAACyB,WAAW,GAAGpB,KAAK;UACvBL,GAAG,CAAC0B,IAAI,GAAG;YAAER,EAAE,EAAED;UAAO,CAAS;;UAEjC;UACA,IAAI,CAACU,SAAS,CAACtB,KAAK,CAAC;UAErB,IAAIT,KAAK,EAAE;YACTY,OAAO,CAACC,GAAG,CAAC,8CAA8CQ,MAAM,EAAE,CAAC;UACrE;UAEAf,IAAI,CAAC,CAAC;QACR,CAAC,CAAC,OAAOV,KAAK,EAAE;UACd,MAAMoC,QAAQ,GAAG,IAAI,CAACnC,WAAW,CAACD,KAAK,CAAQ;UAE/C,IAAII,KAAK,EAAE;YACT;YACAY,OAAO,CAACC,GAAG,CAAC,2BAA2B,EAAEmB,QAAQ,CAAC;UACpD;UAEA,IAAI/B,OAAO,EAAE,OAAOA,OAAO,CAAC+B,QAAQ,CAAC;UACrC,OAAO3B,GAAG,CAACa,MAAM,CAAEc,QAAQ,IAAIA,QAAQ,CAACd,MAAM,IAAK,GAAG,CAAC,CAACC,IAAI,CAACa,QAAQ,CAAC;QACxE;MACF,CAAC;IACH;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Centralized mixin exports and composition helper
|
|
5
|
-
*
|
|
6
|
-
* This module provides a clean way to compose all mixins
|
|
7
|
-
* and ensures consistent ordering for better maintainability
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import { OxyServicesBase } from "../OxyServices.base.js";
|
|
11
|
-
import { OxyServicesAuthMixin } from "./OxyServices.auth.js";
|
|
12
|
-
import { OxyServicesFedCMMixin } from "./OxyServices.fedcm.js";
|
|
13
|
-
import { OxyServicesPopupAuthMixin } from "./OxyServices.popup.js";
|
|
14
|
-
import { OxyServicesRedirectAuthMixin } from "./OxyServices.redirect.js";
|
|
15
|
-
import { OxyServicesUserMixin } from "./OxyServices.user.js";
|
|
16
|
-
import { OxyServicesPrivacyMixin } from "./OxyServices.privacy.js";
|
|
17
|
-
import { OxyServicesLanguageMixin } from "./OxyServices.language.js";
|
|
18
|
-
import { OxyServicesPaymentMixin } from "./OxyServices.payment.js";
|
|
19
|
-
import { OxyServicesKarmaMixin } from "./OxyServices.karma.js";
|
|
20
|
-
import { OxyServicesAssetsMixin } from "./OxyServices.assets.js";
|
|
21
|
-
import { OxyServicesDeveloperMixin } from "./OxyServices.developer.js";
|
|
22
|
-
import { OxyServicesLocationMixin } from "./OxyServices.location.js";
|
|
23
|
-
import { OxyServicesAnalyticsMixin } from "./OxyServices.analytics.js";
|
|
24
|
-
import { OxyServicesDevicesMixin } from "./OxyServices.devices.js";
|
|
25
|
-
import { OxyServicesSecurityMixin } from "./OxyServices.security.js";
|
|
26
|
-
import { OxyServicesUtilityMixin } from "./OxyServices.utility.js";
|
|
27
|
-
import { OxyServicesFeaturesMixin } from "./OxyServices.features.js";
|
|
28
|
-
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Mixin pipeline - applied in order from first to last.
|
|
33
|
-
*
|
|
34
|
-
* Order matters for dependencies:
|
|
35
|
-
* 1. Base auth mixin first (required by all others)
|
|
36
|
-
* 2. Cross-domain auth mixins (FedCM, Popup, Redirect)
|
|
37
|
-
* 3. User mixin (requires auth)
|
|
38
|
-
* 4. Feature mixins (can depend on user)
|
|
39
|
-
* 5. Utility mixin last (augments all)
|
|
40
|
-
*
|
|
41
|
-
* To add a new mixin: insert it at the appropriate position in this array.
|
|
42
|
-
*/
|
|
43
|
-
const MIXIN_PIPELINE = [
|
|
44
|
-
// Base authentication
|
|
45
|
-
OxyServicesAuthMixin,
|
|
46
|
-
// Cross-domain authentication (web-only)
|
|
47
|
-
// - FedCM: Modern browser-native identity federation (Google-style)
|
|
48
|
-
// - Popup: OAuth2-style popup authentication
|
|
49
|
-
// - Redirect: Traditional redirect-based authentication
|
|
50
|
-
OxyServicesFedCMMixin, OxyServicesPopupAuthMixin, OxyServicesRedirectAuthMixin,
|
|
51
|
-
// User management (requires auth)
|
|
52
|
-
OxyServicesUserMixin, OxyServicesPrivacyMixin,
|
|
53
|
-
// Feature mixins
|
|
54
|
-
OxyServicesLanguageMixin, OxyServicesPaymentMixin, OxyServicesKarmaMixin, OxyServicesAssetsMixin, OxyServicesDeveloperMixin, OxyServicesLocationMixin, OxyServicesAnalyticsMixin, OxyServicesDevicesMixin, OxyServicesSecurityMixin, OxyServicesFeaturesMixin,
|
|
55
|
-
// Utility (last, can use all above)
|
|
56
|
-
OxyServicesUtilityMixin];
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Composes all OxyServices mixins using a pipeline pattern.
|
|
60
|
-
*
|
|
61
|
-
* This is equivalent to the nested calls but more readable and maintainable.
|
|
62
|
-
* Adding a new mixin: just add it to MIXIN_PIPELINE at the appropriate position.
|
|
63
|
-
*
|
|
64
|
-
* @returns The fully composed OxyServices class with all mixins applied
|
|
65
|
-
*/
|
|
66
|
-
export function composeOxyServices() {
|
|
67
|
-
return MIXIN_PIPELINE.reduce((Base, mixin) => mixin(Base), OxyServicesBase);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Export the pipeline for testing/debugging
|
|
71
|
-
export { MIXIN_PIPELINE };
|
|
72
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["OxyServicesBase","OxyServicesAuthMixin","OxyServicesFedCMMixin","OxyServicesPopupAuthMixin","OxyServicesRedirectAuthMixin","OxyServicesUserMixin","OxyServicesPrivacyMixin","OxyServicesLanguageMixin","OxyServicesPaymentMixin","OxyServicesKarmaMixin","OxyServicesAssetsMixin","OxyServicesDeveloperMixin","OxyServicesLocationMixin","OxyServicesAnalyticsMixin","OxyServicesDevicesMixin","OxyServicesSecurityMixin","OxyServicesUtilityMixin","OxyServicesFeaturesMixin","MIXIN_PIPELINE","composeOxyServices","reduce","Base","mixin"],"sourceRoot":"../../../../src","sources":["core/mixins/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,eAAe,QAAQ,wBAAqB;AACrD,SAASC,oBAAoB,QAAQ,uBAAoB;AACzD,SAASC,qBAAqB,QAAQ,wBAAqB;AAC3D,SAASC,yBAAyB,QAAQ,wBAAqB;AAC/D,SAASC,4BAA4B,QAAQ,2BAAwB;AACrE,SAASC,oBAAoB,QAAQ,uBAAoB;AACzD,SAASC,uBAAuB,QAAQ,0BAAuB;AAC/D,SAASC,wBAAwB,QAAQ,2BAAwB;AACjE,SAASC,uBAAuB,QAAQ,0BAAuB;AAC/D,SAASC,qBAAqB,QAAQ,wBAAqB;AAC3D,SAASC,sBAAsB,QAAQ,yBAAsB;AAC7D,SAASC,yBAAyB,QAAQ,4BAAyB;AACnE,SAASC,wBAAwB,QAAQ,2BAAwB;AACjE,SAASC,yBAAyB,QAAQ,4BAAyB;AACnE,SAASC,uBAAuB,QAAQ,0BAAuB;AAC/D,SAASC,wBAAwB,QAAQ,2BAAwB;AACjE,SAASC,uBAAuB,QAAQ,0BAAuB;AAC/D,SAASC,wBAAwB,QAAQ,2BAAwB;;AAEjE;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,cAA+B,GAAG;AACpC;AACAjB,oBAAoB;AAEpB;AACA;AACA;AACA;AACAC,qBAAqB,EACrBC,yBAAyB,EACzBC,4BAA4B;AAE5B;AAC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