@oxyhq/services 22.4.1 → 22.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/LICENSE +661 -21
  2. package/README.md +1 -1
  3. package/lib/commonjs/index.js +19 -0
  4. package/lib/commonjs/index.js.map +1 -1
  5. package/lib/commonjs/ui/components/ProfileButton.js +1 -1
  6. package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
  7. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +2 -2
  8. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  9. package/lib/commonjs/ui/hooks/queries/queryKeys.js +9 -0
  10. package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
  11. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +19 -3
  12. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
  13. package/lib/commonjs/ui/hooks/queries/userCache.js +262 -0
  14. package/lib/commonjs/ui/hooks/queries/userCache.js.map +1 -0
  15. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +1 -1
  16. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
  17. package/lib/commonjs/ui/screens/CreateAccountScreen.js +5 -5
  18. package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
  19. package/lib/module/index.js +6 -0
  20. package/lib/module/index.js.map +1 -1
  21. package/lib/module/ui/components/ProfileButton.js +1 -1
  22. package/lib/module/ui/components/ProfileButton.js.map +1 -1
  23. package/lib/module/ui/components/payment/PaymentDetailsStep.js +2 -2
  24. package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  25. package/lib/module/ui/hooks/queries/queryKeys.js +9 -0
  26. package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
  27. package/lib/module/ui/hooks/queries/useAccountQueries.js +19 -3
  28. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
  29. package/lib/module/ui/hooks/queries/userCache.js +258 -0
  30. package/lib/module/ui/hooks/queries/userCache.js.map +1 -0
  31. package/lib/module/ui/screens/ConnectedAppsScreen.js +1 -1
  32. package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
  33. package/lib/module/ui/screens/CreateAccountScreen.js +5 -5
  34. package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
  35. package/lib/typescript/commonjs/index.d.ts +2 -0
  36. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  37. package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
  38. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +9 -0
  39. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  40. package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +14 -1
  41. package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
  42. package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts +93 -0
  43. package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts.map +1 -0
  44. package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  45. package/lib/typescript/module/index.d.ts +2 -0
  46. package/lib/typescript/module/index.d.ts.map +1 -1
  47. package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
  48. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +9 -0
  49. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  50. package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +14 -1
  51. package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
  52. package/lib/typescript/module/ui/hooks/queries/userCache.d.ts +93 -0
  53. package/lib/typescript/module/ui/hooks/queries/userCache.d.ts.map +1 -0
  54. package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  55. package/package.json +3 -3
  56. package/src/index.ts +8 -0
  57. package/src/ui/components/ProfileButton.tsx +1 -2
  58. package/src/ui/components/payment/PaymentDetailsStep.tsx +2 -2
  59. package/src/ui/hooks/queries/__tests__/userCache.test.ts +332 -0
  60. package/src/ui/hooks/queries/queryKeys.ts +17 -0
  61. package/src/ui/hooks/queries/useAccountQueries.ts +19 -3
  62. package/src/ui/hooks/queries/userCache.ts +285 -0
  63. package/src/ui/screens/ConnectedAppsScreen.tsx +0 -1
  64. package/src/ui/screens/CreateAccountScreen.tsx +5 -5
@@ -120,7 +120,6 @@ const ConnectedAppsScreen: React.FC<BaseScreenProps> = ({ onClose, goBack }) =>
120
120
  t('connectedApps.item.granted', {
121
121
  relative: formatRelative(item.firstGrantedAt),
122
122
  })
123
- || `Granted ${formatRelative(item.firstGrantedAt)}`
124
123
  }
125
124
  onPress={isRevoking ? undefined : () => confirmRevoke(item)}
126
125
  disabled={isRevoking}
@@ -79,13 +79,13 @@ const organizationCategoryLabel = (
79
79
  ): string => {
80
80
  switch (category) {
81
81
  case 'agency':
82
- return t('accounts.organizationCategory.agency') || 'Real estate agency';
82
+ return t('accounts.organizationCategory.agency');
83
83
  case 'cooperative':
84
- return t('accounts.organizationCategory.cooperative') || 'Housing cooperative';
84
+ return t('accounts.organizationCategory.cooperative');
85
85
  case 'landlord':
86
- return t('accounts.organizationCategory.landlord') || 'Landlord / property manager';
86
+ return t('accounts.organizationCategory.landlord');
87
87
  default:
88
- return t('accounts.organizationCategory.other') || 'Other organization';
88
+ return t('accounts.organizationCategory.other');
89
89
  }
90
90
  };
91
91
 
@@ -309,7 +309,7 @@ const CreateAccountScreen: React.FC<BaseScreenProps> = ({
309
309
  {kind === 'organization' ? (
310
310
  <View className="gap-space-8">
311
311
  <Text className="text-body font-bodyBold text-text">
312
- {t('accounts.create.organizationCategory.label') || 'Organization type'}
312
+ {t('accounts.create.organizationCategory.label')}
313
313
  </Text>
314
314
  <View className="flex-row flex-wrap gap-space-8">
315
315
  {ORGANIZATION_CATEGORY_OPTIONS.map((option) => {