@jmruthers/pace-core 0.5.186 → 0.5.188
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/dist/{DataTable-IX2NBUTP.js → DataTable-GUFUNZ3N.js} +7 -7
- package/dist/{DataTable-Z9NLVJh0.d.ts → DataTable-IVYljGJ6.d.ts} +1 -1
- package/dist/{PublicPageProvider-DIzEzwKl.d.ts → PublicPageProvider-DrLDztHt.d.ts} +211 -106
- package/dist/{UnifiedAuthProvider-A4BCQRJY.js → UnifiedAuthProvider-643PUAIM.js} +2 -2
- package/dist/{api-BMFCXVQX.js → api-YP7XD5L6.js} +3 -3
- package/dist/{audit-WRS3KJKI.js → audit-B5P6FFIR.js} +2 -2
- package/dist/{chunk-HGPQUCBC.js → chunk-2UUZZJFT.js} +3 -3
- package/dist/{chunk-445GEP27.js → chunk-3GOZZZYH.js} +33 -8
- package/dist/chunk-3GOZZZYH.js.map +1 -0
- package/dist/{chunk-FSFQFJCU.js → chunk-63FOKYGO.js} +174 -6
- package/dist/chunk-63FOKYGO.js.map +1 -0
- package/dist/{chunk-DAGICKHT.js → chunk-DDM4CCYT.js} +3 -3
- package/dist/{chunk-XAUHJD3L.js → chunk-E7UAOUMY.js} +2 -2
- package/dist/{chunk-HDCUMOOI.js → chunk-EFCLXK7F.js} +792 -559
- package/dist/chunk-EFCLXK7F.js.map +1 -0
- package/dist/{chunk-U6WNSFX5.js → chunk-HEHYGYOX.js} +279 -44
- package/dist/chunk-HEHYGYOX.js.map +1 -0
- package/dist/{chunk-GRIQLQ52.js → chunk-IM4QE42D.js} +27 -23
- package/dist/chunk-IM4QE42D.js.map +1 -0
- package/dist/{chunk-OALXJH4Y.js → chunk-IPCH26AG.js} +8 -8
- package/dist/chunk-IPCH26AG.js.map +1 -0
- package/dist/{chunk-UQWSHFVX.js → chunk-SAUPYVLF.js} +1 -1
- package/dist/{chunk-UQWSHFVX.js.map → chunk-SAUPYVLF.js.map} +1 -1
- package/dist/{chunk-TC7D3CR3.js → chunk-UNOTYLQF.js} +556 -101
- package/dist/chunk-UNOTYLQF.js.map +1 -0
- package/dist/{chunk-FXFJRTKI.js → chunk-VGZZXKBR.js} +5 -5
- package/dist/chunk-VGZZXKBR.js.map +1 -0
- package/dist/chunk-YHCN776L.js +447 -0
- package/dist/chunk-YHCN776L.js.map +1 -0
- package/dist/components.d.ts +4 -4
- package/dist/components.js +12 -10
- package/dist/components.js.map +1 -1
- package/dist/{file-reference-PRTSLxKx.d.ts → file-reference-D037xOFK.d.ts} +0 -1
- package/dist/hooks.d.ts +221 -6
- package/dist/hooks.js +146 -49
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +24 -9
- package/dist/index.js +62 -28
- package/dist/index.js.map +1 -1
- package/dist/providers.js +1 -1
- package/dist/rbac/index.d.ts +124 -7
- package/dist/rbac/index.js +27 -7
- package/dist/{types-DUyCRSTj.d.ts → types-Bwgl--Xo.d.ts} +162 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/{usePublicRouteParams-D71QLlg4.d.ts → usePublicRouteParams-CTDELQ7H.d.ts} +2 -2
- package/dist/utils.d.ts +213 -3
- package/dist/utils.js +22 -2
- package/dist/utils.js.map +1 -1
- package/docs/api/classes/ColumnFactory.md +1 -1
- package/docs/api/classes/ErrorBoundary.md +1 -1
- package/docs/api/classes/InvalidScopeError.md +1 -1
- package/docs/api/classes/Logger.md +1 -1
- package/docs/api/classes/MissingUserContextError.md +1 -1
- package/docs/api/classes/OrganisationContextRequiredError.md +1 -1
- package/docs/api/classes/PermissionDeniedError.md +1 -1
- package/docs/api/classes/RBACAuditManager.md +21 -17
- package/docs/api/classes/RBACCache.md +31 -23
- package/docs/api/classes/RBACEngine.md +5 -5
- package/docs/api/classes/RBACError.md +1 -1
- package/docs/api/classes/RBACNotInitializedError.md +1 -1
- package/docs/api/classes/SecureSupabaseClient.md +1 -1
- package/docs/api/classes/StorageUtils.md +1 -1
- package/docs/api/enums/FileCategory.md +1 -1
- package/docs/api/enums/LogLevel.md +1 -1
- package/docs/api/enums/RBACErrorCode.md +1 -1
- package/docs/api/enums/RPCFunction.md +1 -1
- package/docs/api/interfaces/AddressFieldProps.md +241 -0
- package/docs/api/interfaces/AddressFieldRef.md +94 -0
- package/docs/api/interfaces/AggregateConfig.md +1 -1
- package/docs/api/interfaces/AutocompleteOptions.md +75 -0
- package/docs/api/interfaces/BadgeProps.md +1 -1
- package/docs/api/interfaces/ButtonProps.md +1 -1
- package/docs/api/interfaces/CalendarProps.md +1 -1
- package/docs/api/interfaces/CardProps.md +1 -1
- package/docs/api/interfaces/ColorPalette.md +1 -1
- package/docs/api/interfaces/ColorShade.md +1 -1
- package/docs/api/interfaces/ComplianceResult.md +1 -1
- package/docs/api/interfaces/DataAccessRecord.md +1 -1
- package/docs/api/interfaces/DataRecord.md +1 -1
- package/docs/api/interfaces/DataTableAction.md +1 -1
- package/docs/api/interfaces/DataTableColumn.md +1 -1
- package/docs/api/interfaces/DataTableProps.md +1 -1
- package/docs/api/interfaces/DataTableToolbarButton.md +1 -1
- package/docs/api/interfaces/DatabaseComplianceResult.md +1 -1
- package/docs/api/interfaces/DatabaseIssue.md +1 -1
- package/docs/api/interfaces/EmptyStateConfig.md +1 -1
- package/docs/api/interfaces/EnhancedNavigationMenuProps.md +1 -1
- package/docs/api/interfaces/EventAppRoleData.md +1 -1
- package/docs/api/interfaces/ExportColumn.md +1 -1
- package/docs/api/interfaces/ExportOptions.md +1 -1
- package/docs/api/interfaces/FileDisplayProps.md +15 -15
- package/docs/api/interfaces/FileMetadata.md +1 -1
- package/docs/api/interfaces/FileReference.md +1 -1
- package/docs/api/interfaces/FileSizeLimits.md +1 -1
- package/docs/api/interfaces/FileUploadOptions.md +1 -1
- package/docs/api/interfaces/FileUploadProps.md +1 -1
- package/docs/api/interfaces/FooterProps.md +1 -1
- package/docs/api/interfaces/FormFieldProps.md +1 -1
- package/docs/api/interfaces/FormProps.md +1 -1
- package/docs/api/interfaces/GrantEventAppRoleParams.md +1 -1
- package/docs/api/interfaces/InactivityWarningModalProps.md +1 -1
- package/docs/api/interfaces/InputProps.md +1 -1
- package/docs/api/interfaces/LabelProps.md +1 -1
- package/docs/api/interfaces/LoggerConfig.md +1 -1
- package/docs/api/interfaces/LoginFormProps.md +1 -1
- package/docs/api/interfaces/NavigationAccessRecord.md +1 -1
- package/docs/api/interfaces/NavigationContextType.md +1 -1
- package/docs/api/interfaces/NavigationGuardProps.md +1 -1
- package/docs/api/interfaces/NavigationItem.md +1 -1
- package/docs/api/interfaces/NavigationMenuProps.md +1 -1
- package/docs/api/interfaces/NavigationProviderProps.md +1 -1
- package/docs/api/interfaces/Organisation.md +1 -1
- package/docs/api/interfaces/OrganisationContextType.md +1 -1
- package/docs/api/interfaces/OrganisationMembership.md +1 -1
- package/docs/api/interfaces/OrganisationProviderProps.md +1 -1
- package/docs/api/interfaces/OrganisationSecurityError.md +1 -1
- package/docs/api/interfaces/PaceAppLayoutProps.md +1 -1
- package/docs/api/interfaces/PaceLoginPageProps.md +1 -1
- package/docs/api/interfaces/PageAccessRecord.md +1 -1
- package/docs/api/interfaces/PagePermissionContextType.md +1 -1
- package/docs/api/interfaces/PagePermissionGuardProps.md +11 -11
- package/docs/api/interfaces/PagePermissionProviderProps.md +1 -1
- package/docs/api/interfaces/PaletteData.md +1 -1
- package/docs/api/interfaces/ParsedAddress.md +120 -0
- package/docs/api/interfaces/PermissionEnforcerProps.md +1 -1
- package/docs/api/interfaces/ProgressProps.md +1 -1
- package/docs/api/interfaces/ProtectedRouteProps.md +1 -1
- package/docs/api/interfaces/PublicPageFooterProps.md +1 -1
- package/docs/api/interfaces/PublicPageHeaderProps.md +1 -1
- package/docs/api/interfaces/PublicPageLayoutProps.md +1 -1
- package/docs/api/interfaces/QuickFix.md +1 -1
- package/docs/api/interfaces/RBACAccessValidateParams.md +1 -1
- package/docs/api/interfaces/RBACAccessValidateResult.md +1 -1
- package/docs/api/interfaces/RBACAuditLogParams.md +1 -1
- package/docs/api/interfaces/RBACAuditLogResult.md +1 -1
- package/docs/api/interfaces/RBACConfig.md +26 -3
- package/docs/api/interfaces/RBACContext.md +1 -1
- package/docs/api/interfaces/RBACLogger.md +5 -5
- package/docs/api/interfaces/RBACPageAccessCheckParams.md +1 -1
- package/docs/api/interfaces/RBACPerformanceMetrics.md +138 -0
- package/docs/api/interfaces/RBACPermissionCheckParams.md +1 -1
- package/docs/api/interfaces/RBACPermissionCheckResult.md +1 -1
- package/docs/api/interfaces/RBACPermissionsGetParams.md +1 -1
- package/docs/api/interfaces/RBACPermissionsGetResult.md +1 -1
- package/docs/api/interfaces/RBACResult.md +1 -1
- package/docs/api/interfaces/RBACRoleGrantParams.md +1 -1
- package/docs/api/interfaces/RBACRoleGrantResult.md +1 -1
- package/docs/api/interfaces/RBACRoleRevokeParams.md +1 -1
- package/docs/api/interfaces/RBACRoleRevokeResult.md +1 -1
- package/docs/api/interfaces/RBACRoleValidateParams.md +1 -1
- package/docs/api/interfaces/RBACRoleValidateResult.md +1 -1
- package/docs/api/interfaces/RBACRolesListParams.md +1 -1
- package/docs/api/interfaces/RBACRolesListResult.md +1 -1
- package/docs/api/interfaces/RBACSessionTrackParams.md +1 -1
- package/docs/api/interfaces/RBACSessionTrackResult.md +1 -1
- package/docs/api/interfaces/ResourcePermissions.md +1 -1
- package/docs/api/interfaces/RevokeEventAppRoleParams.md +1 -1
- package/docs/api/interfaces/RoleBasedRouterContextType.md +1 -1
- package/docs/api/interfaces/RoleBasedRouterProps.md +1 -1
- package/docs/api/interfaces/RoleManagementResult.md +1 -1
- package/docs/api/interfaces/RouteAccessRecord.md +1 -1
- package/docs/api/interfaces/RouteConfig.md +1 -1
- package/docs/api/interfaces/RuntimeComplianceResult.md +1 -1
- package/docs/api/interfaces/SecureDataContextType.md +1 -1
- package/docs/api/interfaces/SecureDataProviderProps.md +1 -1
- package/docs/api/interfaces/SessionRestorationLoaderProps.md +1 -1
- package/docs/api/interfaces/SetupIssue.md +1 -1
- package/docs/api/interfaces/StorageConfig.md +1 -1
- package/docs/api/interfaces/StorageFileInfo.md +1 -1
- package/docs/api/interfaces/StorageFileMetadata.md +1 -1
- package/docs/api/interfaces/StorageListOptions.md +1 -1
- package/docs/api/interfaces/StorageListResult.md +1 -1
- package/docs/api/interfaces/StorageUploadOptions.md +1 -1
- package/docs/api/interfaces/StorageUploadResult.md +1 -1
- package/docs/api/interfaces/StorageUrlOptions.md +1 -1
- package/docs/api/interfaces/StyleImport.md +1 -1
- package/docs/api/interfaces/SwitchProps.md +1 -1
- package/docs/api/interfaces/TabsContentProps.md +1 -1
- package/docs/api/interfaces/TabsListProps.md +1 -1
- package/docs/api/interfaces/TabsProps.md +1 -1
- package/docs/api/interfaces/TabsTriggerProps.md +1 -1
- package/docs/api/interfaces/TextareaProps.md +1 -1
- package/docs/api/interfaces/ToastActionElement.md +1 -1
- package/docs/api/interfaces/ToastProps.md +1 -1
- package/docs/api/interfaces/UnifiedAuthContextType.md +1 -1
- package/docs/api/interfaces/UnifiedAuthProviderProps.md +1 -1
- package/docs/api/interfaces/UseFormDialogOptions.md +1 -1
- package/docs/api/interfaces/UseFormDialogReturn.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerOptions.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventReturn.md +1 -1
- package/docs/api/interfaces/UsePublicFileDisplayOptions.md +1 -1
- package/docs/api/interfaces/UsePublicFileDisplayReturn.md +1 -1
- package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
- package/docs/api/interfaces/UseResolvedScopeOptions.md +1 -1
- package/docs/api/interfaces/UseResolvedScopeReturn.md +1 -1
- package/docs/api/interfaces/UseResourcePermissionsOptions.md +1 -1
- package/docs/api/interfaces/UserEventAccess.md +1 -1
- package/docs/api/interfaces/UserMenuProps.md +1 -1
- package/docs/api/interfaces/UserProfile.md +1 -1
- package/docs/api/modules.md +318 -59
- package/docs/best-practices/performance.md +11 -0
- package/docs/getting-started/examples/README.md +2 -2
- package/docs/implementation-guides/file-upload-storage.md +29 -0
- package/docs/implementation-guides/public-pages.md +140 -1230
- package/docs/rbac/README.md +2 -1
- package/docs/rbac/api-reference.md +11 -0
- package/docs/rbac/performance.md +320 -0
- package/docs/standards/01-architecture-standard.md +5 -0
- package/docs/standards/05-security-standard.md +14 -0
- package/docs/standards/07-rbac-and-rls-standard.md +356 -0
- package/package.json +1 -1
- package/src/__tests__/public-recipe-view.test.ts +199 -0
- package/src/__tests__/rls-policies.test.ts +333 -0
- package/src/components/AddressField/AddressField.test.tsx +411 -0
- package/src/components/AddressField/AddressField.tsx +323 -0
- package/src/components/AddressField/README.md +336 -0
- package/src/components/AddressField/index.ts +10 -0
- package/src/components/AddressField/types.ts +65 -0
- package/src/components/FileDisplay/FileDisplay.test.tsx +454 -0
- package/src/components/FileDisplay/FileDisplay.tsx +28 -1
- package/src/components/index.ts +2 -0
- package/src/hooks/__tests__/useFileDisplay.unit.test.ts +30 -5
- package/src/hooks/__tests__/useOrganisationSecurity.unit.test.tsx +11 -10
- package/src/hooks/__tests__/usePublicFileDisplay.test.ts +31 -6
- package/src/hooks/index.ts +6 -0
- package/src/hooks/public/usePublicFileDisplay.ts +8 -10
- package/src/hooks/useAddressAutocomplete.test.ts +318 -0
- package/src/hooks/useAddressAutocomplete.ts +268 -0
- package/src/hooks/useFileDisplay.ts +3 -15
- package/src/hooks/useFileReference.test.ts +20 -3
- package/src/hooks/useFileReference.ts +3 -24
- package/src/hooks/useFileUrlCache.ts +246 -0
- package/src/hooks/useInactivityTracker.ts +31 -20
- package/src/hooks/useOrganisationSecurity.test.ts +10 -7
- package/src/hooks/useOrganisationSecurity.ts +3 -3
- package/src/hooks/useQueryCache.ts +315 -0
- package/src/index.ts +2 -0
- package/src/providers/services/EventServiceProvider.tsx +4 -1
- package/src/rbac/api.test.ts +21 -6
- package/src/rbac/api.ts +32 -11
- package/src/rbac/audit-batched.ts +223 -0
- package/src/rbac/audit-enhanced.ts +2 -2
- package/src/rbac/audit.test.ts +6 -5
- package/src/rbac/audit.ts +34 -6
- package/src/rbac/cache-invalidation.ts +63 -12
- package/src/rbac/cache.test.ts +2 -2
- package/src/rbac/cache.ts +61 -14
- package/src/rbac/components/PagePermissionGuard.tsx +19 -10
- package/src/rbac/components/__tests__/PagePermissionGuard.performance.test.tsx +248 -0
- package/src/rbac/config.ts +9 -0
- package/src/rbac/engine.ts +2 -21
- package/src/rbac/hooks/usePermissions.ts +21 -5
- package/src/rbac/index.ts +19 -0
- package/src/rbac/performance.ts +210 -0
- package/src/rbac/request-deduplication.ts +87 -0
- package/src/rbac/utils/deep-equal.ts +93 -0
- package/src/services/OrganisationService.ts +5 -4
- package/src/types/file-reference.ts +0 -1
- package/src/utils/file-reference/__tests__/file-reference.test.ts +31 -4
- package/src/utils/file-reference/index.ts +44 -15
- package/src/utils/google-places/googlePlacesUtils.test.ts +403 -0
- package/src/utils/google-places/googlePlacesUtils.ts +475 -0
- package/src/utils/google-places/index.ts +26 -0
- package/src/utils/google-places/loadGoogleMapsScript.ts +207 -0
- package/src/utils/google-places/types.ts +94 -0
- package/src/utils/index.ts +23 -0
- package/src/utils/request-deduplication.ts +165 -0
- package/src/utils/storage/helpers.ts +143 -4
- package/dist/chunk-445GEP27.js.map +0 -1
- package/dist/chunk-FMUCXFII.js +0 -76
- package/dist/chunk-FMUCXFII.js.map +0 -1
- package/dist/chunk-FSFQFJCU.js.map +0 -1
- package/dist/chunk-FXFJRTKI.js.map +0 -1
- package/dist/chunk-GRIQLQ52.js.map +0 -1
- package/dist/chunk-HDCUMOOI.js.map +0 -1
- package/dist/chunk-OALXJH4Y.js.map +0 -1
- package/dist/chunk-TC7D3CR3.js.map +0 -1
- package/dist/chunk-U6WNSFX5.js.map +0 -1
- /package/dist/{DataTable-IX2NBUTP.js.map → DataTable-GUFUNZ3N.js.map} +0 -0
- /package/dist/{UnifiedAuthProvider-A4BCQRJY.js.map → UnifiedAuthProvider-643PUAIM.js.map} +0 -0
- /package/dist/{api-BMFCXVQX.js.map → api-YP7XD5L6.js.map} +0 -0
- /package/dist/{audit-WRS3KJKI.js.map → audit-B5P6FFIR.js.map} +0 -0
- /package/dist/{chunk-HGPQUCBC.js.map → chunk-2UUZZJFT.js.map} +0 -0
- /package/dist/{chunk-DAGICKHT.js.map → chunk-DDM4CCYT.js.map} +0 -0
- /package/dist/{chunk-XAUHJD3L.js.map → chunk-E7UAOUMY.js.map} +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.188](../README.md) / [Exports](../modules.md) / RBACCache
|
|
2
2
|
|
|
3
3
|
# Class: RBACCache
|
|
4
4
|
|
|
5
5
|
In-memory cache for RBAC operations
|
|
6
6
|
|
|
7
|
-
Provides
|
|
7
|
+
Provides two-tier caching:
|
|
8
|
+
- Short-term cache: 120 seconds for frequently changing permissions
|
|
9
|
+
- Session cache: 15 minutes for stable permissions (page-level checks)
|
|
8
10
|
|
|
9
11
|
## Table of contents
|
|
10
12
|
|
|
@@ -40,10 +42,12 @@ Provides 60-second TTL and pattern-based invalidation for permission checks.
|
|
|
40
42
|
|
|
41
43
|
### get
|
|
42
44
|
|
|
43
|
-
▸ **get**\<`T`\>(`key`): ``null`` \| `T`
|
|
45
|
+
▸ **get**\<`T`\>(`key`, `useSessionCache?`): ``null`` \| `T`
|
|
44
46
|
|
|
45
47
|
Get a value from the cache
|
|
46
48
|
|
|
49
|
+
Checks both short-term cache and session cache.
|
|
50
|
+
|
|
47
51
|
#### Type parameters
|
|
48
52
|
|
|
49
53
|
| Name |
|
|
@@ -52,9 +56,10 @@ Get a value from the cache
|
|
|
52
56
|
|
|
53
57
|
#### Parameters
|
|
54
58
|
|
|
55
|
-
| Name | Type | Description |
|
|
56
|
-
| :------ | :------ | :------ |
|
|
57
|
-
| `key` | `string` | Cache key |
|
|
59
|
+
| Name | Type | Default value | Description |
|
|
60
|
+
| :------ | :------ | :------ | :------ |
|
|
61
|
+
| `key` | `string` | `undefined` | Cache key |
|
|
62
|
+
| `useSessionCache` | `boolean` | `true` | Whether to check session cache (default: true) |
|
|
58
63
|
|
|
59
64
|
#### Returns
|
|
60
65
|
|
|
@@ -64,13 +69,13 @@ Cached value or null if not found/expired
|
|
|
64
69
|
|
|
65
70
|
#### Defined in
|
|
66
71
|
|
|
67
|
-
[packages/core/src/rbac/cache.ts:
|
|
72
|
+
[packages/core/src/rbac/cache.ts:36](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L36)
|
|
68
73
|
|
|
69
74
|
___
|
|
70
75
|
|
|
71
76
|
### set
|
|
72
77
|
|
|
73
|
-
▸ **set**\<`T`\>(`key`, `data`, `ttl?`): `void`
|
|
78
|
+
▸ **set**\<`T`\>(`key`, `data`, `ttl?`, `useSessionCache?`): `void`
|
|
74
79
|
|
|
75
80
|
Set a value in the cache
|
|
76
81
|
|
|
@@ -82,11 +87,12 @@ Set a value in the cache
|
|
|
82
87
|
|
|
83
88
|
#### Parameters
|
|
84
89
|
|
|
85
|
-
| Name | Type | Description |
|
|
86
|
-
| :------ | :------ | :------ |
|
|
87
|
-
| `key` | `string` | Cache key |
|
|
88
|
-
| `data` | `T` | Data to cache |
|
|
89
|
-
| `ttl` | `number` | Time to live in milliseconds (defaults to 60s) |
|
|
90
|
+
| Name | Type | Default value | Description |
|
|
91
|
+
| :------ | :------ | :------ | :------ |
|
|
92
|
+
| `key` | `string` | `undefined` | Cache key |
|
|
93
|
+
| `data` | `T` | `undefined` | Data to cache |
|
|
94
|
+
| `ttl` | `number` | `undefined` | Time to live in milliseconds (defaults to 60s) |
|
|
95
|
+
| `useSessionCache` | `boolean` | `false` | Whether to also store in session cache (default: false for page-level checks) |
|
|
90
96
|
|
|
91
97
|
#### Returns
|
|
92
98
|
|
|
@@ -94,7 +100,7 @@ Set a value in the cache
|
|
|
94
100
|
|
|
95
101
|
#### Defined in
|
|
96
102
|
|
|
97
|
-
[packages/core/src/rbac/cache.ts:
|
|
103
|
+
[packages/core/src/rbac/cache.ts:70](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L70)
|
|
98
104
|
|
|
99
105
|
___
|
|
100
106
|
|
|
@@ -116,7 +122,7 @@ Delete a specific key from the cache
|
|
|
116
122
|
|
|
117
123
|
#### Defined in
|
|
118
124
|
|
|
119
|
-
[packages/core/src/rbac/cache.ts:
|
|
125
|
+
[packages/core/src/rbac/cache.ts:96](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L96)
|
|
120
126
|
|
|
121
127
|
___
|
|
122
128
|
|
|
@@ -138,7 +144,7 @@ Invalidate cache entries matching a pattern
|
|
|
138
144
|
|
|
139
145
|
#### Defined in
|
|
140
146
|
|
|
141
|
-
[packages/core/src/rbac/cache.ts:
|
|
147
|
+
[packages/core/src/rbac/cache.ts:106](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L106)
|
|
142
148
|
|
|
143
149
|
___
|
|
144
150
|
|
|
@@ -154,7 +160,7 @@ Clear all cache entries
|
|
|
154
160
|
|
|
155
161
|
#### Defined in
|
|
156
162
|
|
|
157
|
-
[packages/core/src/rbac/cache.ts:
|
|
163
|
+
[packages/core/src/rbac/cache.ts:154](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L154)
|
|
158
164
|
|
|
159
165
|
___
|
|
160
166
|
|
|
@@ -171,12 +177,14 @@ Get cache statistics
|
|
|
171
177
|
| Name | Type |
|
|
172
178
|
| :------ | :------ |
|
|
173
179
|
| `size` | `number` |
|
|
180
|
+
| `sessionSize` | `number` |
|
|
174
181
|
| `ttl` | `number` |
|
|
182
|
+
| `sessionTtl` | `number` |
|
|
175
183
|
| `keys` | `string`[] |
|
|
176
184
|
|
|
177
185
|
#### Defined in
|
|
178
186
|
|
|
179
|
-
[packages/core/src/rbac/cache.ts:
|
|
187
|
+
[packages/core/src/rbac/cache.ts:162](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L162)
|
|
180
188
|
|
|
181
189
|
___
|
|
182
190
|
|
|
@@ -204,7 +212,7 @@ Add an invalidation callback
|
|
|
204
212
|
|
|
205
213
|
#### Defined in
|
|
206
214
|
|
|
207
|
-
[packages/core/src/rbac/cache.ts:
|
|
215
|
+
[packages/core/src/rbac/cache.ts:183](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L183)
|
|
208
216
|
|
|
209
217
|
___
|
|
210
218
|
|
|
@@ -233,7 +241,7 @@ String cache key
|
|
|
233
241
|
|
|
234
242
|
#### Defined in
|
|
235
243
|
|
|
236
|
-
[packages/core/src/rbac/cache.ts:
|
|
244
|
+
[packages/core/src/rbac/cache.ts:203](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L203)
|
|
237
245
|
|
|
238
246
|
___
|
|
239
247
|
|
|
@@ -257,7 +265,7 @@ String cache key
|
|
|
257
265
|
|
|
258
266
|
#### Defined in
|
|
259
267
|
|
|
260
|
-
[packages/core/src/rbac/cache.ts:
|
|
268
|
+
[packages/core/src/rbac/cache.ts:230](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L230)
|
|
261
269
|
|
|
262
270
|
___
|
|
263
271
|
|
|
@@ -284,7 +292,7 @@ String cache key
|
|
|
284
292
|
|
|
285
293
|
#### Defined in
|
|
286
294
|
|
|
287
|
-
[packages/core/src/rbac/cache.ts:
|
|
295
|
+
[packages/core/src/rbac/cache.ts:253](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L253)
|
|
288
296
|
|
|
289
297
|
___
|
|
290
298
|
|
|
@@ -311,4 +319,4 @@ String cache key
|
|
|
311
319
|
|
|
312
320
|
#### Defined in
|
|
313
321
|
|
|
314
|
-
[packages/core/src/rbac/cache.ts:
|
|
322
|
+
[packages/core/src/rbac/cache.ts:279](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L279)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.188](../README.md) / [Exports](../modules.md) / RBACEngine
|
|
2
2
|
|
|
3
3
|
# Class: RBACEngine
|
|
4
4
|
|
|
@@ -95,7 +95,7 @@ Promise resolving to access level
|
|
|
95
95
|
|
|
96
96
|
#### Defined in
|
|
97
97
|
|
|
98
|
-
[packages/core/src/rbac/engine.ts:
|
|
98
|
+
[packages/core/src/rbac/engine.ts:272](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L272)
|
|
99
99
|
|
|
100
100
|
___
|
|
101
101
|
|
|
@@ -124,7 +124,7 @@ Promise resolving to permission map
|
|
|
124
124
|
|
|
125
125
|
#### Defined in
|
|
126
126
|
|
|
127
|
-
[packages/core/src/rbac/engine.ts:
|
|
127
|
+
[packages/core/src/rbac/engine.ts:357](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L357)
|
|
128
128
|
|
|
129
129
|
___
|
|
130
130
|
|
|
@@ -146,7 +146,7 @@ ___
|
|
|
146
146
|
|
|
147
147
|
#### Defined in
|
|
148
148
|
|
|
149
|
-
[packages/core/src/rbac/engine.ts:
|
|
149
|
+
[packages/core/src/rbac/engine.ts:438](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L438)
|
|
150
150
|
|
|
151
151
|
___
|
|
152
152
|
|
|
@@ -168,4 +168,4 @@ ___
|
|
|
168
168
|
|
|
169
169
|
#### Defined in
|
|
170
170
|
|
|
171
|
-
[packages/core/src/rbac/engine.ts:
|
|
171
|
+
[packages/core/src/rbac/engine.ts:472](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L472)
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
[@jmruthers/pace-core - v0.5.188](../README.md) / [Exports](../modules.md) / AddressFieldProps
|
|
2
|
+
|
|
3
|
+
# Interface: AddressFieldProps
|
|
4
|
+
|
|
5
|
+
Props for AddressField component
|
|
6
|
+
|
|
7
|
+
## Hierarchy
|
|
8
|
+
|
|
9
|
+
- `Omit`\<`React.InputHTMLAttributes`\<`HTMLInputElement`\>, ``"onChange"`` \| ``"value"`` \| ``"defaultValue"`` \| ``"size"``\>
|
|
10
|
+
|
|
11
|
+
↳ **`AddressFieldProps`**
|
|
12
|
+
|
|
13
|
+
## Table of contents
|
|
14
|
+
|
|
15
|
+
### Properties
|
|
16
|
+
|
|
17
|
+
- [apiKey](AddressFieldProps.md#apikey)
|
|
18
|
+
- [value](AddressFieldProps.md#value)
|
|
19
|
+
- [defaultValue](AddressFieldProps.md#defaultvalue)
|
|
20
|
+
- [onChange](AddressFieldProps.md#onchange)
|
|
21
|
+
- [onInputChange](AddressFieldProps.md#oninputchange)
|
|
22
|
+
- [placeholder](AddressFieldProps.md#placeholder)
|
|
23
|
+
- [error](AddressFieldProps.md#error)
|
|
24
|
+
- [disabled](AddressFieldProps.md#disabled)
|
|
25
|
+
- [size](AddressFieldProps.md#size)
|
|
26
|
+
- [variant](AddressFieldProps.md#variant)
|
|
27
|
+
- [autocompleteOptions](AddressFieldProps.md#autocompleteoptions)
|
|
28
|
+
- [debounceDelay](AddressFieldProps.md#debouncedelay)
|
|
29
|
+
- [cacheEnabled](AddressFieldProps.md#cacheenabled)
|
|
30
|
+
- [cacheTTL](AddressFieldProps.md#cachettl)
|
|
31
|
+
|
|
32
|
+
## Properties
|
|
33
|
+
|
|
34
|
+
### apiKey
|
|
35
|
+
|
|
36
|
+
• **apiKey**: `string`
|
|
37
|
+
|
|
38
|
+
Google Places API key (required)
|
|
39
|
+
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[packages/core/src/components/AddressField/types.ts:16](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L16)
|
|
43
|
+
|
|
44
|
+
___
|
|
45
|
+
|
|
46
|
+
### value
|
|
47
|
+
|
|
48
|
+
• `Optional` **value**: `string`
|
|
49
|
+
|
|
50
|
+
Controlled input value
|
|
51
|
+
|
|
52
|
+
#### Defined in
|
|
53
|
+
|
|
54
|
+
[packages/core/src/components/AddressField/types.ts:18](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L18)
|
|
55
|
+
|
|
56
|
+
___
|
|
57
|
+
|
|
58
|
+
### defaultValue
|
|
59
|
+
|
|
60
|
+
• `Optional` **defaultValue**: `string`
|
|
61
|
+
|
|
62
|
+
Uncontrolled default value
|
|
63
|
+
|
|
64
|
+
#### Defined in
|
|
65
|
+
|
|
66
|
+
[packages/core/src/components/AddressField/types.ts:20](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L20)
|
|
67
|
+
|
|
68
|
+
___
|
|
69
|
+
|
|
70
|
+
### onChange
|
|
71
|
+
|
|
72
|
+
• `Optional` **onChange**: (`address`: ``null`` \| [`ParsedAddress`](ParsedAddress.md)) => `void`
|
|
73
|
+
|
|
74
|
+
Callback when address is selected
|
|
75
|
+
|
|
76
|
+
#### Type declaration
|
|
77
|
+
|
|
78
|
+
▸ (`address`): `void`
|
|
79
|
+
|
|
80
|
+
##### Parameters
|
|
81
|
+
|
|
82
|
+
| Name | Type |
|
|
83
|
+
| :------ | :------ |
|
|
84
|
+
| `address` | ``null`` \| [`ParsedAddress`](ParsedAddress.md) |
|
|
85
|
+
|
|
86
|
+
##### Returns
|
|
87
|
+
|
|
88
|
+
`void`
|
|
89
|
+
|
|
90
|
+
#### Defined in
|
|
91
|
+
|
|
92
|
+
[packages/core/src/components/AddressField/types.ts:22](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L22)
|
|
93
|
+
|
|
94
|
+
___
|
|
95
|
+
|
|
96
|
+
### onInputChange
|
|
97
|
+
|
|
98
|
+
• `Optional` **onInputChange**: (`value`: `string`) => `void`
|
|
99
|
+
|
|
100
|
+
Callback when input value changes
|
|
101
|
+
|
|
102
|
+
#### Type declaration
|
|
103
|
+
|
|
104
|
+
▸ (`value`): `void`
|
|
105
|
+
|
|
106
|
+
##### Parameters
|
|
107
|
+
|
|
108
|
+
| Name | Type |
|
|
109
|
+
| :------ | :------ |
|
|
110
|
+
| `value` | `string` |
|
|
111
|
+
|
|
112
|
+
##### Returns
|
|
113
|
+
|
|
114
|
+
`void`
|
|
115
|
+
|
|
116
|
+
#### Defined in
|
|
117
|
+
|
|
118
|
+
[packages/core/src/components/AddressField/types.ts:24](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L24)
|
|
119
|
+
|
|
120
|
+
___
|
|
121
|
+
|
|
122
|
+
### placeholder
|
|
123
|
+
|
|
124
|
+
• `Optional` **placeholder**: `string`
|
|
125
|
+
|
|
126
|
+
Placeholder text
|
|
127
|
+
|
|
128
|
+
#### Overrides
|
|
129
|
+
|
|
130
|
+
Omit.placeholder
|
|
131
|
+
|
|
132
|
+
#### Defined in
|
|
133
|
+
|
|
134
|
+
[packages/core/src/components/AddressField/types.ts:26](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L26)
|
|
135
|
+
|
|
136
|
+
___
|
|
137
|
+
|
|
138
|
+
### error
|
|
139
|
+
|
|
140
|
+
• `Optional` **error**: `boolean`
|
|
141
|
+
|
|
142
|
+
Error state styling
|
|
143
|
+
|
|
144
|
+
#### Defined in
|
|
145
|
+
|
|
146
|
+
[packages/core/src/components/AddressField/types.ts:28](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L28)
|
|
147
|
+
|
|
148
|
+
___
|
|
149
|
+
|
|
150
|
+
### disabled
|
|
151
|
+
|
|
152
|
+
• `Optional` **disabled**: `boolean`
|
|
153
|
+
|
|
154
|
+
Disabled state
|
|
155
|
+
|
|
156
|
+
#### Overrides
|
|
157
|
+
|
|
158
|
+
Omit.disabled
|
|
159
|
+
|
|
160
|
+
#### Defined in
|
|
161
|
+
|
|
162
|
+
[packages/core/src/components/AddressField/types.ts:30](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L30)
|
|
163
|
+
|
|
164
|
+
___
|
|
165
|
+
|
|
166
|
+
### size
|
|
167
|
+
|
|
168
|
+
• `Optional` **size**: ``"sm"`` \| ``"lg"`` \| ``"md"``
|
|
169
|
+
|
|
170
|
+
Input size
|
|
171
|
+
|
|
172
|
+
#### Defined in
|
|
173
|
+
|
|
174
|
+
[packages/core/src/components/AddressField/types.ts:32](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L32)
|
|
175
|
+
|
|
176
|
+
___
|
|
177
|
+
|
|
178
|
+
### variant
|
|
179
|
+
|
|
180
|
+
• `Optional` **variant**: ``"default"`` \| ``"destructive"``
|
|
181
|
+
|
|
182
|
+
Input variant
|
|
183
|
+
|
|
184
|
+
#### Defined in
|
|
185
|
+
|
|
186
|
+
[packages/core/src/components/AddressField/types.ts:34](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L34)
|
|
187
|
+
|
|
188
|
+
___
|
|
189
|
+
|
|
190
|
+
### autocompleteOptions
|
|
191
|
+
|
|
192
|
+
• `Optional` **autocompleteOptions**: [`AutocompleteOptions`](AutocompleteOptions.md)
|
|
193
|
+
|
|
194
|
+
Google Places API autocomplete options
|
|
195
|
+
|
|
196
|
+
#### Defined in
|
|
197
|
+
|
|
198
|
+
[packages/core/src/components/AddressField/types.ts:36](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L36)
|
|
199
|
+
|
|
200
|
+
___
|
|
201
|
+
|
|
202
|
+
### debounceDelay
|
|
203
|
+
|
|
204
|
+
• `Optional` **debounceDelay**: `number`
|
|
205
|
+
|
|
206
|
+
Debounce delay in milliseconds
|
|
207
|
+
|
|
208
|
+
#### Defined in
|
|
209
|
+
|
|
210
|
+
[packages/core/src/components/AddressField/types.ts:38](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L38)
|
|
211
|
+
|
|
212
|
+
___
|
|
213
|
+
|
|
214
|
+
### cacheEnabled
|
|
215
|
+
|
|
216
|
+
• `Optional` **cacheEnabled**: `boolean`
|
|
217
|
+
|
|
218
|
+
Enable caching (default: true)
|
|
219
|
+
|
|
220
|
+
#### Defined in
|
|
221
|
+
|
|
222
|
+
[packages/core/src/components/AddressField/types.ts:40](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L40)
|
|
223
|
+
|
|
224
|
+
___
|
|
225
|
+
|
|
226
|
+
### cacheTTL
|
|
227
|
+
|
|
228
|
+
• `Optional` **cacheTTL**: `Object`
|
|
229
|
+
|
|
230
|
+
Cache TTL configuration
|
|
231
|
+
|
|
232
|
+
#### Type declaration
|
|
233
|
+
|
|
234
|
+
| Name | Type | Description |
|
|
235
|
+
| :------ | :------ | :------ |
|
|
236
|
+
| `autocomplete?` | `number` | Autocomplete cache TTL in seconds |
|
|
237
|
+
| `placeDetails?` | `number` | Place details cache TTL in seconds |
|
|
238
|
+
|
|
239
|
+
#### Defined in
|
|
240
|
+
|
|
241
|
+
[packages/core/src/components/AddressField/types.ts:42](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L42)
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
[@jmruthers/pace-core - v0.5.188](../README.md) / [Exports](../modules.md) / AddressFieldRef
|
|
2
|
+
|
|
3
|
+
# Interface: AddressFieldRef
|
|
4
|
+
|
|
5
|
+
Ref type for AddressField component
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Properties
|
|
10
|
+
|
|
11
|
+
- [focus](AddressFieldRef.md#focus)
|
|
12
|
+
- [blur](AddressFieldRef.md#blur)
|
|
13
|
+
- [getValue](AddressFieldRef.md#getvalue)
|
|
14
|
+
- [clear](AddressFieldRef.md#clear)
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
### focus
|
|
19
|
+
|
|
20
|
+
• **focus**: () => `void`
|
|
21
|
+
|
|
22
|
+
Focus the input
|
|
23
|
+
|
|
24
|
+
#### Type declaration
|
|
25
|
+
|
|
26
|
+
▸ (): `void`
|
|
27
|
+
|
|
28
|
+
##### Returns
|
|
29
|
+
|
|
30
|
+
`void`
|
|
31
|
+
|
|
32
|
+
#### Defined in
|
|
33
|
+
|
|
34
|
+
[packages/core/src/components/AddressField/types.ts:55](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L55)
|
|
35
|
+
|
|
36
|
+
___
|
|
37
|
+
|
|
38
|
+
### blur
|
|
39
|
+
|
|
40
|
+
• **blur**: () => `void`
|
|
41
|
+
|
|
42
|
+
Blur the input
|
|
43
|
+
|
|
44
|
+
#### Type declaration
|
|
45
|
+
|
|
46
|
+
▸ (): `void`
|
|
47
|
+
|
|
48
|
+
##### Returns
|
|
49
|
+
|
|
50
|
+
`void`
|
|
51
|
+
|
|
52
|
+
#### Defined in
|
|
53
|
+
|
|
54
|
+
[packages/core/src/components/AddressField/types.ts:57](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L57)
|
|
55
|
+
|
|
56
|
+
___
|
|
57
|
+
|
|
58
|
+
### getValue
|
|
59
|
+
|
|
60
|
+
• **getValue**: () => `string`
|
|
61
|
+
|
|
62
|
+
Get current input value
|
|
63
|
+
|
|
64
|
+
#### Type declaration
|
|
65
|
+
|
|
66
|
+
▸ (): `string`
|
|
67
|
+
|
|
68
|
+
##### Returns
|
|
69
|
+
|
|
70
|
+
`string`
|
|
71
|
+
|
|
72
|
+
#### Defined in
|
|
73
|
+
|
|
74
|
+
[packages/core/src/components/AddressField/types.ts:59](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L59)
|
|
75
|
+
|
|
76
|
+
___
|
|
77
|
+
|
|
78
|
+
### clear
|
|
79
|
+
|
|
80
|
+
• **clear**: () => `void`
|
|
81
|
+
|
|
82
|
+
Clear the input and suggestions
|
|
83
|
+
|
|
84
|
+
#### Type declaration
|
|
85
|
+
|
|
86
|
+
▸ (): `void`
|
|
87
|
+
|
|
88
|
+
##### Returns
|
|
89
|
+
|
|
90
|
+
`void`
|
|
91
|
+
|
|
92
|
+
#### Defined in
|
|
93
|
+
|
|
94
|
+
[packages/core/src/components/AddressField/types.ts:61](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/AddressField/types.ts#L61)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
[@jmruthers/pace-core - v0.5.188](../README.md) / [Exports](../modules.md) / AutocompleteOptions
|
|
2
|
+
|
|
3
|
+
# Interface: AutocompleteOptions
|
|
4
|
+
|
|
5
|
+
Options for Google Places Autocomplete API
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Properties
|
|
10
|
+
|
|
11
|
+
- [components](AutocompleteOptions.md#components)
|
|
12
|
+
- [location](AutocompleteOptions.md#location)
|
|
13
|
+
- [radius](AutocompleteOptions.md#radius)
|
|
14
|
+
- [types](AutocompleteOptions.md#types)
|
|
15
|
+
- [language](AutocompleteOptions.md#language)
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### components
|
|
20
|
+
|
|
21
|
+
• `Optional` **components**: `string`
|
|
22
|
+
|
|
23
|
+
Restrict results to specific countries (ISO 3166-1 Alpha-2 country codes)
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[packages/core/src/utils/google-places/types.ts:84](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/google-places/types.ts#L84)
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### location
|
|
32
|
+
|
|
33
|
+
• `Optional` **location**: `string`
|
|
34
|
+
|
|
35
|
+
Location bias (lat,lng)
|
|
36
|
+
|
|
37
|
+
#### Defined in
|
|
38
|
+
|
|
39
|
+
[packages/core/src/utils/google-places/types.ts:86](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/google-places/types.ts#L86)
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### radius
|
|
44
|
+
|
|
45
|
+
• `Optional` **radius**: `number`
|
|
46
|
+
|
|
47
|
+
Radius in meters for location bias
|
|
48
|
+
|
|
49
|
+
#### Defined in
|
|
50
|
+
|
|
51
|
+
[packages/core/src/utils/google-places/types.ts:88](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/google-places/types.ts#L88)
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### types
|
|
56
|
+
|
|
57
|
+
• `Optional` **types**: `string`
|
|
58
|
+
|
|
59
|
+
Restrict results to specific place types
|
|
60
|
+
|
|
61
|
+
#### Defined in
|
|
62
|
+
|
|
63
|
+
[packages/core/src/utils/google-places/types.ts:90](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/google-places/types.ts#L90)
|
|
64
|
+
|
|
65
|
+
___
|
|
66
|
+
|
|
67
|
+
### language
|
|
68
|
+
|
|
69
|
+
• `Optional` **language**: `string`
|
|
70
|
+
|
|
71
|
+
Language code for results
|
|
72
|
+
|
|
73
|
+
#### Defined in
|
|
74
|
+
|
|
75
|
+
[packages/core/src/utils/google-places/types.ts:92](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/google-places/types.ts#L92)
|