@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.
- package/LICENSE +661 -21
- package/README.md +1 -1
- package/lib/commonjs/index.js +19 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +2 -2
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +9 -0
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +19 -3
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/userCache.js +262 -0
- package/lib/commonjs/ui/hooks/queries/userCache.js.map +1 -0
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +5 -5
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js +1 -1
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +2 -2
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +9 -0
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +19 -3
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/userCache.js +258 -0
- package/lib/module/ui/hooks/queries/userCache.js.map +1 -0
- package/lib/module/ui/screens/ConnectedAppsScreen.js +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js +5 -5
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +9 -0
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +14 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts +93 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +9 -0
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +14 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts +93 -0
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +8 -0
- package/src/ui/components/ProfileButton.tsx +1 -2
- package/src/ui/components/payment/PaymentDetailsStep.tsx +2 -2
- package/src/ui/hooks/queries/__tests__/userCache.test.ts +332 -0
- package/src/ui/hooks/queries/queryKeys.ts +17 -0
- package/src/ui/hooks/queries/useAccountQueries.ts +19 -3
- package/src/ui/hooks/queries/userCache.ts +285 -0
- package/src/ui/screens/ConnectedAppsScreen.tsx +0 -1
- 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')
|
|
82
|
+
return t('accounts.organizationCategory.agency');
|
|
83
83
|
case 'cooperative':
|
|
84
|
-
return t('accounts.organizationCategory.cooperative')
|
|
84
|
+
return t('accounts.organizationCategory.cooperative');
|
|
85
85
|
case 'landlord':
|
|
86
|
-
return t('accounts.organizationCategory.landlord')
|
|
86
|
+
return t('accounts.organizationCategory.landlord');
|
|
87
87
|
default:
|
|
88
|
-
return t('accounts.organizationCategory.other')
|
|
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')
|
|
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) => {
|