Skip to content

Commit

Permalink
chore: use explicit exports in entry file
Browse files Browse the repository at this point in the history
Offers more transparency and prevents accidental API exposure
  • Loading branch information
achou11 committed Dec 17, 2024
1 parent 9b672fa commit e1e7244
Showing 1 changed file with 69 additions and 11 deletions.
80 changes: 69 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,69 @@
export * from './contexts/ClientApi'
export * from './hooks/client'
export * from './hooks/documents'
export * from './hooks/maps'
export * from './hooks/projects'
export * from './lib/react-query/client'
export * from './lib/react-query/documents'
export * from './lib/react-query/invites'
export * from './lib/react-query/maps'
export * from './lib/react-query/projects'
export * from './lib/react-query/shared'
export { ClientApiContext, ClientApiProvider } from './contexts/ClientApi'
export {
useClientApi,
useIsArchiveDevice,
useOwnDeviceInfo,
} from './hooks/client'
export {
useManyDocs,
useSingleDocByDocId,
useSingleDocByVersionId,
} from './hooks/documents'
export { useMapStyleUrl } from './hooks/maps'
export {
useAttachmentUrl,
useDocumentCreatedBy,
useIconUrl,
useManyMembers,
useManyProjects,
useProjectSettings,
useSingleMember,
useSingleProject,
} from './hooks/projects'
export {
deviceInfoQueryOptions,
getClientQueryKey,
getDeviceInfoQueryKey,
getIsArchiveDeviceQueryKey,
isArchiveDeviceQueryOptions,
} from './lib/react-query/client'
export {
documentByDocumentIdQueryOptions,
documentByVersionIdQueryOptions,
documentsQueryOptions,
getDocumentByDocIdQueryKey,
getDocumentByVersionIdQueryKey,
getDocumentsQueryKey,
getManyDocumentsQueryKey,
type DocumentType,
} from './lib/react-query/documents'
export {
getInvitesQueryKey,
getPendingInvitesQueryKey,
pendingInvitesQueryOptions,
} from './lib/react-query/invites'
export {
getMapsQueryKey,
getStyleJsonUrlQueryKey,
mapStyleJsonUrlQueryOptions,
} from './lib/react-query/maps'
export {
attachmentUrlQueryOptions,
documentCreatedByQueryOptions,
getAttachmentUrlQueryKey,
getDocumentCreatedByQueryKey,
getIconUrlQueryKey,
getMemberByIdQueryKey,
getMembersQueryKey,
getProjectByIdQueryKey,
getProjectRoleQueryKey,
getProjectSettingsQueryKey,
getProjectsQueryKey,
iconUrlQueryOptions,
projectByIdQueryOptions,
projectMembersQueryOptions,
projectOwnRoleQueryOptions,
projectSettingsQueryOptions,
projectsQueryOptions,
} from './lib/react-query/projects'
export { ROOT_QUERY_KEY, baseQueryOptions } from './lib/react-query/shared'

0 comments on commit e1e7244

Please sign in to comment.