@sublay/core 7.1.1 → 7.3.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/dist/cjs/hooks/auth/index.d.ts +2 -0
- package/dist/cjs/hooks/auth/index.js +5 -1
- package/dist/cjs/hooks/auth/index.js.map +1 -1
- package/dist/cjs/hooks/auth/useConfirmAccountDeletion.d.ts +14 -0
- package/dist/cjs/hooks/auth/useConfirmAccountDeletion.js +36 -0
- package/dist/cjs/hooks/auth/useConfirmAccountDeletion.js.map +1 -0
- package/dist/cjs/hooks/auth/useRequestAccountDeletion.d.ts +13 -0
- package/dist/cjs/hooks/auth/useRequestAccountDeletion.js +30 -0
- package/dist/cjs/hooks/auth/useRequestAccountDeletion.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/useConversations.d.ts +1 -0
- package/dist/cjs/hooks/chat/conversations/useConversations.js.map +1 -1
- package/dist/cjs/hooks/chat/index.d.ts +2 -2
- package/dist/cjs/hooks/chat/index.js +4 -1
- package/dist/cjs/hooks/chat/index.js.map +1 -1
- package/dist/cjs/hooks/chat/messages/index.d.ts +6 -0
- package/dist/cjs/hooks/chat/messages/index.js +10 -1
- package/dist/cjs/hooks/chat/messages/index.js.map +1 -1
- package/dist/cjs/hooks/chat/messages/useChatMessages.d.ts +10 -14
- package/dist/cjs/hooks/chat/messages/useChatMessages.js +7 -136
- package/dist/cjs/hooks/chat/messages/useChatMessages.js.map +1 -1
- package/dist/cjs/hooks/chat/messages/useFetchManyChatMessages.d.ts +45 -0
- package/dist/cjs/hooks/chat/messages/useFetchManyChatMessages.js +43 -0
- package/dist/cjs/hooks/chat/messages/useFetchManyChatMessages.js.map +1 -0
- package/dist/cjs/hooks/chat/messages/useFetchManyChatMessagesWrapper.d.ts +35 -0
- package/dist/cjs/hooks/chat/messages/useFetchManyChatMessagesWrapper.js +100 -0
- package/dist/cjs/hooks/chat/messages/useFetchManyChatMessagesWrapper.js.map +1 -0
- package/dist/cjs/hooks/chat/messages/useLiveChatMessages.d.ts +26 -0
- package/dist/cjs/hooks/chat/messages/useLiveChatMessages.js +149 -0
- package/dist/cjs/hooks/chat/messages/useLiveChatMessages.js.map +1 -0
- package/dist/cjs/hooks/chat/messages/useMessageThread.js +2 -2
- package/dist/cjs/hooks/chat/messages/useMessageThread.js.map +1 -1
- package/dist/cjs/hooks/chat/useConversationData.js +2 -2
- package/dist/cjs/hooks/chat/useConversationData.js.map +1 -1
- package/dist/cjs/hooks/spaces/index.d.ts +2 -0
- package/dist/cjs/hooks/spaces/index.js +3 -1
- package/dist/cjs/hooks/spaces/index.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchMutualSpaces.d.ts +11 -0
- package/dist/cjs/hooks/spaces/useFetchMutualSpaces.js +28 -0
- package/dist/cjs/hooks/spaces/useFetchMutualSpaces.js.map +1 -0
- package/dist/cjs/hooks/tables/index.d.ts +2 -0
- package/dist/cjs/hooks/tables/index.js +10 -0
- package/dist/cjs/hooks/tables/index.js.map +1 -0
- package/dist/cjs/hooks/tables/useTable.d.ts +37 -0
- package/dist/cjs/hooks/tables/useTable.js +115 -0
- package/dist/cjs/hooks/tables/useTable.js.map +1 -0
- package/dist/cjs/index.d.ts +6 -4
- package/dist/cjs/index.js +14 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/models/Conversation.d.ts +2 -0
- package/dist/cjs/interfaces/models/Table.d.ts +29 -0
- package/dist/cjs/interfaces/models/Table.js +8 -0
- package/dist/cjs/interfaces/models/Table.js.map +1 -0
- package/dist/cjs/store/api/appNotificationsApi.d.ts +181 -181
- package/dist/cjs/store/api/baseApi.d.ts +2 -2
- package/dist/cjs/store/api/baseApi.js +1 -0
- package/dist/cjs/store/api/baseApi.js.map +1 -1
- package/dist/cjs/store/api/collectionsApi.d.ts +319 -319
- package/dist/cjs/store/api/entityListsApi.d.ts +107 -107
- package/dist/cjs/store/api/index.d.ts +1 -0
- package/dist/cjs/store/api/index.js +2 -0
- package/dist/cjs/store/api/index.js.map +1 -1
- package/dist/cjs/store/api/spacesApi.d.ts +1021 -1021
- package/dist/cjs/store/api/tablesApi.d.ts +2554 -0
- package/dist/cjs/store/api/tablesApi.js +84 -0
- package/dist/cjs/store/api/tablesApi.js.map +1 -0
- package/dist/cjs/store/api/userApi.d.ts +3 -3
- package/dist/cjs/store/hooks.d.ts +2 -1
- package/dist/cjs/store/index.d.ts +4 -2
- package/dist/cjs/store/rootReducer.d.ts +5 -2
- package/dist/cjs/store/slices/authThunks.d.ts +4 -0
- package/dist/cjs/store/slices/authThunks.js +52 -1
- package/dist/cjs/store/slices/authThunks.js.map +1 -1
- package/dist/cjs/store/slices/tablesSlice.d.ts +113 -0
- package/dist/cjs/store/slices/tablesSlice.js +40 -0
- package/dist/cjs/store/slices/tablesSlice.js.map +1 -0
- package/dist/cjs/store/sublayReducers.d.ts +2 -0
- package/dist/cjs/store/sublayReducers.js +2 -0
- package/dist/cjs/store/sublayReducers.js.map +1 -1
- package/dist/esm/hooks/auth/index.d.ts +2 -0
- package/dist/esm/hooks/auth/index.js +2 -0
- package/dist/esm/hooks/auth/index.js.map +1 -1
- package/dist/esm/hooks/auth/useConfirmAccountDeletion.d.ts +14 -0
- package/dist/esm/hooks/auth/useConfirmAccountDeletion.js +31 -0
- package/dist/esm/hooks/auth/useConfirmAccountDeletion.js.map +1 -0
- package/dist/esm/hooks/auth/useRequestAccountDeletion.d.ts +13 -0
- package/dist/esm/hooks/auth/useRequestAccountDeletion.js +25 -0
- package/dist/esm/hooks/auth/useRequestAccountDeletion.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/useConversations.d.ts +1 -0
- package/dist/esm/hooks/chat/conversations/useConversations.js.map +1 -1
- package/dist/esm/hooks/chat/index.d.ts +2 -2
- package/dist/esm/hooks/chat/index.js +1 -1
- package/dist/esm/hooks/chat/index.js.map +1 -1
- package/dist/esm/hooks/chat/messages/index.d.ts +6 -0
- package/dist/esm/hooks/chat/messages/index.js +6 -0
- package/dist/esm/hooks/chat/messages/index.js.map +1 -1
- package/dist/esm/hooks/chat/messages/useChatMessages.d.ts +10 -14
- package/dist/esm/hooks/chat/messages/useChatMessages.js +7 -136
- package/dist/esm/hooks/chat/messages/useChatMessages.js.map +1 -1
- package/dist/esm/hooks/chat/messages/useFetchManyChatMessages.d.ts +45 -0
- package/dist/esm/hooks/chat/messages/useFetchManyChatMessages.js +38 -0
- package/dist/esm/hooks/chat/messages/useFetchManyChatMessages.js.map +1 -0
- package/dist/esm/hooks/chat/messages/useFetchManyChatMessagesWrapper.d.ts +35 -0
- package/dist/esm/hooks/chat/messages/useFetchManyChatMessagesWrapper.js +95 -0
- package/dist/esm/hooks/chat/messages/useFetchManyChatMessagesWrapper.js.map +1 -0
- package/dist/esm/hooks/chat/messages/useLiveChatMessages.d.ts +26 -0
- package/dist/esm/hooks/chat/messages/useLiveChatMessages.js +144 -0
- package/dist/esm/hooks/chat/messages/useLiveChatMessages.js.map +1 -0
- package/dist/esm/hooks/chat/messages/useMessageThread.js +2 -2
- package/dist/esm/hooks/chat/messages/useMessageThread.js.map +1 -1
- package/dist/esm/hooks/chat/useConversationData.js +2 -2
- package/dist/esm/hooks/chat/useConversationData.js.map +1 -1
- package/dist/esm/hooks/spaces/index.d.ts +2 -0
- package/dist/esm/hooks/spaces/index.js +1 -0
- package/dist/esm/hooks/spaces/index.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchMutualSpaces.d.ts +11 -0
- package/dist/esm/hooks/spaces/useFetchMutualSpaces.js +23 -0
- package/dist/esm/hooks/spaces/useFetchMutualSpaces.js.map +1 -0
- package/dist/esm/hooks/tables/index.d.ts +2 -0
- package/dist/esm/hooks/tables/index.js +2 -0
- package/dist/esm/hooks/tables/index.js.map +1 -0
- package/dist/esm/hooks/tables/useTable.d.ts +37 -0
- package/dist/esm/hooks/tables/useTable.js +109 -0
- package/dist/esm/hooks/tables/useTable.js.map +1 -0
- package/dist/esm/index.d.ts +6 -4
- package/dist/esm/index.js +5 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/models/Conversation.d.ts +2 -0
- package/dist/esm/interfaces/models/Table.d.ts +29 -0
- package/dist/esm/interfaces/models/Table.js +7 -0
- package/dist/esm/interfaces/models/Table.js.map +1 -0
- package/dist/esm/store/api/appNotificationsApi.d.ts +181 -181
- package/dist/esm/store/api/baseApi.d.ts +2 -2
- package/dist/esm/store/api/baseApi.js +1 -0
- package/dist/esm/store/api/baseApi.js.map +1 -1
- package/dist/esm/store/api/collectionsApi.d.ts +319 -319
- package/dist/esm/store/api/entityListsApi.d.ts +107 -107
- package/dist/esm/store/api/index.d.ts +1 -0
- package/dist/esm/store/api/index.js +2 -0
- package/dist/esm/store/api/index.js.map +1 -1
- package/dist/esm/store/api/spacesApi.d.ts +1021 -1021
- package/dist/esm/store/api/tablesApi.d.ts +2554 -0
- package/dist/esm/store/api/tablesApi.js +80 -0
- package/dist/esm/store/api/tablesApi.js.map +1 -0
- package/dist/esm/store/api/userApi.d.ts +3 -3
- package/dist/esm/store/hooks.d.ts +2 -1
- package/dist/esm/store/index.d.ts +4 -2
- package/dist/esm/store/rootReducer.d.ts +5 -2
- package/dist/esm/store/slices/authThunks.d.ts +4 -0
- package/dist/esm/store/slices/authThunks.js +51 -0
- package/dist/esm/store/slices/authThunks.js.map +1 -1
- package/dist/esm/store/slices/tablesSlice.d.ts +113 -0
- package/dist/esm/store/slices/tablesSlice.js +36 -0
- package/dist/esm/store/slices/tablesSlice.js.map +1 -0
- package/dist/esm/store/sublayReducers.d.ts +2 -0
- package/dist/esm/store/sublayReducers.js +2 -0
- package/dist/esm/store/sublayReducers.js.map +1 -1
- package/package.json +10 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { SublayProvider, SublayIntegrationProvider, EntityProvider, CommentSecti
|
|
|
10
10
|
export { sublayReducers, sublayApiReducer, sublayMiddleware, sublayApi, type SublayState, } from "./store/integration";
|
|
11
11
|
export { useProject, useProjectData } from "./hooks/projects";
|
|
12
12
|
export { useSignTestingJwt, type SignTestingJwtProps } from "./hooks/crypto";
|
|
13
|
-
export { useAuth, useRequestPasswordReset, useSendVerificationEmail, useVerifyEmail, type UseAuthValues, type SignUpWithEmailAndPasswordProps, type SignInWithEmailAndPasswordProps, type ChangePasswordProps, type RequestPasswordResetProps, type SendVerificationEmailProps, type VerifyEmailProps, } from "./hooks/auth";
|
|
13
|
+
export { useAuth, useRequestPasswordReset, useSendVerificationEmail, useVerifyEmail, useRequestAccountDeletion, useConfirmAccountDeletion, type UseAuthValues, type SignUpWithEmailAndPasswordProps, type SignInWithEmailAndPasswordProps, type ChangePasswordProps, type RequestPasswordResetProps, type SendVerificationEmailProps, type VerifyEmailProps, type ConfirmAccountDeletionProps, } from "./hooks/auth";
|
|
14
14
|
export { useAccountSync, useAccounts, useSwitchAccount, useAddAccount, useRemoveAccount, useSignOutAll, type UseAccountsReturn, type UseSwitchAccountReturn, type UseAddAccountReturn, type UseRemoveAccountReturn, type UseSignOutAllReturn, } from "./hooks/auth";
|
|
15
15
|
export { useOAuthIdentities, type OAuthIdentity, type UseOAuthIdentitiesReturn, } from "./hooks/auth";
|
|
16
16
|
export { OAUTH_BASE_URL, requestOAuthAuthorizationUrl, parseOAuthRedirectUrl, handleOAuthRedirect, type OAuthRedirectParams, type HandleOAuthRedirectResult, } from "./hooks/auth/oauthCore";
|
|
@@ -24,7 +24,8 @@ export { useAppNotifications, useAppNotificationsActions, type UseAppNotificatio
|
|
|
24
24
|
export { useCollections, useCollectionsActions, useCollectionEntitiesWrapper, type UseCollectionsProps, type UseCollectionsValues, type CreateCollectionProps, type UpdateCollectionProps, type DeleteCollectionProps, type AddToCollectionProps, type RemoveFromCollectionProps, type UseCollectionEntitiesWrapperProps, type UseCollectionEntitiesWrapperValues, } from "./hooks/collections";
|
|
25
25
|
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useFetchManyEntitiesWrapper, useUpdateEntity, useFetchDrafts, usePublishDraft, useIsEntitySaved, type CreateEntityProps, type DeleteEntityProps, type FetchEntityProps, type FetchEntityByForeignIdProps, type FetchEntityByShortIdProps, type PublishDraftProps, type UseFetchManyEntitiesWrapperProps, type UseFetchManyEntitiesWrapperValues, type UseIsEntitySavedValues, } from "./hooks/entities";
|
|
26
26
|
export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListCreateEntityProps, type EntityListDeleteEntityProps, type EntityListFilters, type EntityListSort, type EntityListConfig, type EntityListFetchOptions, } from "./hooks/entity-lists";
|
|
27
|
-
export {
|
|
27
|
+
export { useTable, type UseTableOptions, type UseTableValues, } from "./hooks/tables";
|
|
28
|
+
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers, useFetchSpaceTeam, useFetchUserSpaces, useFetchMutualSpaces, useUpdateMemberRole, useApproveMember, useDeclineMember, useRemoveMember, useUnbanMember, useModerateSpaceEntity, useModerateSpaceComment, useSpacePermissions, useSpaceMentions, useCheckMyMembership, useFetchDigestConfig, useUpdateDigestConfig, useCreateRule, useUpdateRule, useDeleteRule, useFetchRule, useFetchManyRules, useReorderRules, type UseSpaceDataProps, type UseSpaceDataValues, type FetchSpaceProps, type FetchSpaceByShortIdProps, type FetchSpaceBySlugProps, type FetchSpaceBreadcrumbProps, type FetchSpaceChildrenProps, type FetchManySpacesProps, type CheckSlugAvailabilityProps, type CreateSpaceProps, type UpdateSpaceProps, type DeleteSpaceProps, type JoinSpaceProps, type LeaveSpaceProps, type FetchSpaceMembersProps, type FetchSpaceTeamProps, type FetchUserSpacesProps, type FetchMutualSpacesProps, type CheckMyMembershipProps, type UpdateMemberRoleProps, type ApproveMemberProps, type DeclineMemberProps, type RemoveMemberProps, type UnbanMemberProps, type ModerateSpaceEntityProps, type ModerateSpaceCommentProps, type UseSpacePermissionsProps, type UseSpacePermissionsValues, type UseSpaceMentionsProps, type UseSpaceMentionsValues, type FetchDigestConfigProps, type UpdateDigestConfigProps, type CreateRuleProps, type UpdateRuleProps, type DeleteRuleProps, type FetchRuleProps, type FetchManyRulesProps, type ReorderRulesProps, } from "./hooks/spaces";
|
|
28
29
|
export { useSpaceList, useSpaceListActions, type UseSpaceListProps, type UseSpaceListValues, type SpaceListCreateSpaceProps, type SpaceListDeleteSpaceProps, type FetchSpacesOptions, type CreateSpaceOptions, type DeleteSpaceOptions, } from "./hooks/space-lists";
|
|
29
30
|
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useDeleteComment, useEntityComments, useFetchManyCommentsWrapper, type CommentSectionCreateCommentProps, type CommentSectionUpdateCommentProps, type CommentSectionDeleteCommentProps, type CreateCommentProps, type FetchManyCommentsProps, type FetchCommentProps, type FetchCommentByForeignIdProps, type UseRepliesProps, type UpdateCommentProps, type DeleteCommentProps, type UseFetchManyCommentsWrapperProps, type UseFetchManyCommentsWrapperValues, type MentionTriggers, } from "./hooks/comments";
|
|
30
31
|
export { useFetchEntityReactions, useFetchCommentReactions, useFetchEntityReactionsWrapper, useFetchCommentReactionsWrapper, useAddReaction, useRemoveReaction, useReactionToggle, type UseFetchEntityReactionsWrapperProps, type UseFetchEntityReactionsWrapperValues, type UseFetchCommentReactionsWrapperProps, type UseFetchCommentReactionsWrapperValues, type UseReactionToggleProps, type UseReactionToggleValues, type ToggleReactionProps, type AddReactionProps, type RemoveReactionProps, type FetchEntityReactionsProps, type FetchCommentReactionsProps, } from "./hooks/reactions";
|
|
@@ -42,6 +43,7 @@ export type { UserFull, User, AuthUser, UserRole, UserInclude, UserIncludeArray,
|
|
|
42
43
|
export * as AppNotification from "./interfaces/models/AppNotification";
|
|
43
44
|
export type { Entity, EntityInclude, EntityIncludeArray, EntityIncludeParam, } from "./interfaces/models/Entity";
|
|
44
45
|
export type { Collection } from "./interfaces/models/Collection";
|
|
46
|
+
export type { TableRow, TableQuery, DbFilter, DbFilterOperator, } from "./interfaces/models/Table";
|
|
45
47
|
export type { Comment, GifData, CommentInclude, CommentIncludeArray, CommentIncludeParam, } from "./interfaces/models/Comment";
|
|
46
48
|
export type { Reaction, ReactionType, ReactionCounts, } from "./interfaces/models/Reaction";
|
|
47
49
|
export type { Mention, UserMention, SpaceMention, } from "./interfaces/models/Mention";
|
|
@@ -57,8 +59,8 @@ export type { TimeFrame } from "./interfaces/TimeFrame";
|
|
|
57
59
|
export type { Connection, EstablishedConnection, PendingConnection, ConnectionRequestParams, ConnectionActionResponse, ConnectionWithdrawResponse, ConnectionCountResponse, RemoveConnectionByUserIdResponse, ConnectionStatusResponse, ConnectionStatus, } from "./interfaces/models/Connection";
|
|
58
60
|
export type { Image, ImageVariant, UploadImageOptions, } from "./interfaces/models/Image";
|
|
59
61
|
export type { File } from "./interfaces/models/File";
|
|
60
|
-
export { useConversations, useConversation, useFetchConversation, useUpdateConversation, useDeleteConversation, useCreateDirectConversation, useFetchSpaceConversation, useConversationMembers, useChatMessages, useSendMessage, useEditMessage, useDeleteMessage, useToggleReaction, useMessageThread, useTotalUnreadCount, useUnreadConversationCount, useMarkConversationAsRead, useReportMessage, useConversationData, useTypingIndicator, useChatSocket, } from "./hooks/chat";
|
|
61
|
-
export type { UseConversationsProps, UseConversationsValues, UseConversationProps, UseConversationValues, UpdateConversationParams, FetchConversationProps, DeleteConversationProps, CreateDirectConversationProps, UseFetchSpaceConversationProps, UseFetchSpaceConversationValues, UseConversationMembersProps, UseConversationMembersValues, UseChatMessagesProps, UseChatMessagesValues, SendMessageParams, UseSendMessageProps, EditMessageParams, DeleteMessageParams, ToggleReactionParams, ToggleReactionResult, UseMessageThreadProps, UseMessageThreadValues, UseMarkConversationAsReadProps, ReportMessageParams, UseConversationDataProps, UseConversationDataValues, UseTypingIndicatorProps, UseTypingIndicatorValues, UseChatSocketValues, } from "./hooks/chat";
|
|
62
|
+
export { useConversations, useConversation, useFetchConversation, useUpdateConversation, useDeleteConversation, useCreateDirectConversation, useFetchSpaceConversation, useConversationMembers, useLiveChatMessages, useChatMessages, useFetchManyChatMessages, useFetchManyChatMessagesWrapper, useSendMessage, useEditMessage, useDeleteMessage, useToggleReaction, useMessageThread, useTotalUnreadCount, useUnreadConversationCount, useMarkConversationAsRead, useReportMessage, useConversationData, useTypingIndicator, useChatSocket, } from "./hooks/chat";
|
|
63
|
+
export type { UseConversationsProps, UseConversationsValues, UseConversationProps, UseConversationValues, UpdateConversationParams, FetchConversationProps, DeleteConversationProps, CreateDirectConversationProps, UseFetchSpaceConversationProps, UseFetchSpaceConversationValues, UseConversationMembersProps, UseConversationMembersValues, UseLiveChatMessagesProps, UseLiveChatMessagesValues, UseChatMessagesProps, UseChatMessagesValues, FetchManyChatMessagesProps, FetchManyChatMessagesResponse, UseFetchManyChatMessagesWrapperProps, UseFetchManyChatMessagesWrapperValues, MessageFilters, SendMessageParams, UseSendMessageProps, EditMessageParams, DeleteMessageParams, ToggleReactionParams, ToggleReactionResult, UseMessageThreadProps, UseMessageThreadValues, UseMarkConversationAsReadProps, ReportMessageParams, UseConversationDataProps, UseConversationDataValues, UseTypingIndicatorProps, UseTypingIndicatorValues, UseChatSocketValues, } from "./hooks/chat";
|
|
62
64
|
export type { Conversation, ConversationPreview, } from "./interfaces/models/Conversation";
|
|
63
65
|
export type { ConversationMember, ConversationMemberRole, } from "./interfaces/models/ConversationMember";
|
|
64
66
|
export type { ChatMessage } from "./interfaces/models/ChatMessage";
|
package/dist/cjs/index.js
CHANGED
|
@@ -36,11 +36,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.selectSocketConnected = exports.selectTypingUsers = exports.selectThreadHasMore = exports.selectThreadLoading = exports.selectThreadReplies = exports.selectNewestMessageId = exports.selectOldestMessageId = exports.selectMessagesHasMore = exports.selectMessagesLoading = exports.selectMessages = exports.selectConversationListCursor = exports.selectConversationListHasMore = exports.selectConversationListLoading = exports.selectConversationList = exports.selectConversationLoading = exports.selectConversation = exports.setSocketConnected = exports.setTypingUsers = exports.setThreadLoading = exports.setThreadReplies = exports.updateReactions = exports.removeMessage = exports.failOptimisticMessage = exports.addOptimisticMessage = exports.upsertMessage = exports.setMessagesHasMore = exports.setMessagesLoading = exports.clearUnread = exports.incrementUnread = exports.upsertConversationPreview = exports.setConversationListCursor = void 0;
|
|
39
|
+
exports.selectAccessToken = exports.setInitialized = exports.setTokens = exports.useSublaySelector = exports.useSublayDispatch = exports.handleOAuthRedirect = exports.parseOAuthRedirectUrl = exports.requestOAuthAuthorizationUrl = exports.OAUTH_BASE_URL = exports.useOAuthIdentities = exports.useSignOutAll = exports.useRemoveAccount = exports.useAddAccount = exports.useSwitchAccount = exports.useAccounts = exports.useAccountSync = exports.useConfirmAccountDeletion = exports.useRequestAccountDeletion = exports.useVerifyEmail = exports.useSendVerificationEmail = exports.useRequestPasswordReset = exports.useAuth = exports.useSignTestingJwt = exports.useProjectData = exports.useProject = exports.sublayApi = exports.sublayMiddleware = exports.sublayApiReducer = exports.sublayReducers = exports.useMessageThreadContext = exports.useConversationContext = exports.useChatContext = exports.MessageThreadProvider = exports.ConversationProvider = exports.ChatProvider = exports.SpaceProvider = exports.CommentSectionProvider = exports.EntityProvider = exports.SublayIntegrationProvider = exports.SublayProvider = exports.reportReasons = exports.getEnvVar = exports.getApiBaseUrl = exports.isProduction = exports.isDevelopment = exports.getPublicFileUrl = exports.getUserName = exports.safeMergeStyleProps = exports.keywordHelpers = exports.handleError = void 0;
|
|
40
|
+
exports.useModerateSpaceComment = exports.useModerateSpaceEntity = exports.useUnbanMember = exports.useRemoveMember = exports.useDeclineMember = exports.useApproveMember = exports.useUpdateMemberRole = exports.useFetchMutualSpaces = exports.useFetchUserSpaces = exports.useFetchSpaceTeam = exports.useFetchSpaceMembers = exports.useLeaveSpace = exports.useJoinSpace = exports.useDeleteSpace = exports.useUpdateSpace = exports.useCreateSpace = exports.useCheckSlugAvailability = exports.useFetchManySpaces = exports.useFetchSpaceChildren = exports.useFetchSpaceBreadcrumb = exports.useFetchSpaceBySlug = exports.useFetchSpaceByShortId = exports.useFetchSpace = exports.useSpaceData = exports.useSpace = exports.useTable = exports.useEntityListActions = exports.useEntityList = exports.useIsEntitySaved = exports.usePublishDraft = exports.useFetchDrafts = exports.useUpdateEntity = exports.useFetchManyEntitiesWrapper = exports.useFetchManyEntities = exports.useFetchEntityByShortId = exports.useFetchEntityByForeignId = exports.useFetchEntity = exports.useDeleteEntity = exports.useCreateEntity = exports.useEntityData = exports.useEntity = exports.useCollectionEntitiesWrapper = exports.useCollectionsActions = exports.useCollections = exports.useAppNotificationsActions = exports.useAppNotifications = exports.useUserActions = exports.useUser = exports.MAX_ACCOUNTS = exports.requestNewAccessTokenThunk = void 0;
|
|
41
|
+
exports.useUnfollowUserByUserId = exports.useUnfollowByFollowId = exports.useFollowUser = exports.useFollowManager = exports.useFetchFollowingCountByUserId = exports.useFetchFollowingCount = exports.useFetchFollowingByUserId = exports.useFetchFollowing = exports.useFetchFollowersCountByUserId = exports.useFetchFollowersCount = exports.useFetchFollowersByUserId = exports.useFetchFollowers = exports.useFetchFollowStatus = exports.useUserMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserByUsername = exports.useFetchUserByForeignId = exports.useFetchUser = exports.useReactionToggle = exports.useRemoveReaction = exports.useAddReaction = exports.useFetchCommentReactionsWrapper = exports.useFetchEntityReactionsWrapper = exports.useFetchCommentReactions = exports.useFetchEntityReactions = exports.useFetchManyCommentsWrapper = exports.useEntityComments = exports.useDeleteComment = exports.useUpdateComment = exports.useReplies = exports.useFetchCommentByForeignId = exports.useFetchComment = exports.useFetchManyComments = exports.useCreateComment = exports.useCommentSectionData = exports.useCommentSection = exports.useSpaceListActions = exports.useSpaceList = exports.useReorderRules = exports.useFetchManyRules = exports.useFetchRule = exports.useDeleteRule = exports.useUpdateRule = exports.useCreateRule = exports.useUpdateDigestConfig = exports.useFetchDigestConfig = exports.useCheckMyMembership = exports.useSpaceMentions = exports.useSpacePermissions = void 0;
|
|
42
|
+
exports.useConversationData = exports.useReportMessage = exports.useMarkConversationAsRead = exports.useUnreadConversationCount = exports.useTotalUnreadCount = exports.useMessageThread = exports.useToggleReaction = exports.useDeleteMessage = exports.useEditMessage = exports.useSendMessage = exports.useFetchManyChatMessagesWrapper = exports.useFetchManyChatMessages = exports.useChatMessages = exports.useLiveChatMessages = exports.useConversationMembers = exports.useFetchSpaceConversation = exports.useCreateDirectConversation = exports.useDeleteConversation = exports.useUpdateConversation = exports.useFetchConversation = exports.useConversation = exports.useConversations = exports.validateSortType = exports.validateMetadataPropertyName = exports.validateSortBy = exports.AppNotification = exports.useUploadImage = exports.useUploadFile = exports.useAskContent = exports.useSearchSpaces = exports.useSearchUsers = exports.useSearchContent = exports.useGetMetadata = exports.useHandleSpaceCommentReport = exports.useHandleSpaceEntityReport = exports.useFetchModeratedReports = exports.useCreateReport = exports.useConnectionManager = exports.useFetchConnectionsCountByUserId = exports.useFetchConnectionsByUserId = exports.useFetchReceivedPendingConnections = exports.useFetchSentPendingConnections = exports.useFetchConnectionsCount = exports.useRemoveConnectionByUserId = exports.useFetchConnectionStatus = exports.useFetchConnections = exports.useRemoveConnection = exports.useDeclineConnection = exports.useAcceptConnection = exports.useRequestConnection = void 0;
|
|
43
|
+
exports.selectSocketConnected = exports.selectTypingUsers = exports.selectThreadHasMore = exports.selectThreadLoading = exports.selectThreadReplies = exports.selectNewestMessageId = exports.selectOldestMessageId = exports.selectMessagesHasMore = exports.selectMessagesLoading = exports.selectMessages = exports.selectConversationListCursor = exports.selectConversationListHasMore = exports.selectConversationListLoading = exports.selectConversationList = exports.selectConversationLoading = exports.selectConversation = exports.setSocketConnected = exports.setTypingUsers = exports.setThreadLoading = exports.setThreadReplies = exports.updateReactions = exports.removeMessage = exports.failOptimisticMessage = exports.addOptimisticMessage = exports.upsertMessage = exports.setMessagesHasMore = exports.setMessagesLoading = exports.clearUnread = exports.incrementUnread = exports.upsertConversationPreview = exports.setConversationListCursor = exports.setConversationListHasMore = exports.setConversationListLoading = exports.setConversationList = exports.setConversationLoading = exports.setConversation = exports.useChatSocket = exports.useTypingIndicator = void 0;
|
|
44
44
|
// Helpers & Utilities
|
|
45
45
|
var handleError_1 = require("./utils/handleError");
|
|
46
46
|
Object.defineProperty(exports, "handleError", { enumerable: true, get: function () { return handleError_1.handleError; } });
|
|
@@ -92,6 +92,8 @@ Object.defineProperty(exports, "useAuth", { enumerable: true, get: function () {
|
|
|
92
92
|
Object.defineProperty(exports, "useRequestPasswordReset", { enumerable: true, get: function () { return auth_1.useRequestPasswordReset; } });
|
|
93
93
|
Object.defineProperty(exports, "useSendVerificationEmail", { enumerable: true, get: function () { return auth_1.useSendVerificationEmail; } });
|
|
94
94
|
Object.defineProperty(exports, "useVerifyEmail", { enumerable: true, get: function () { return auth_1.useVerifyEmail; } });
|
|
95
|
+
Object.defineProperty(exports, "useRequestAccountDeletion", { enumerable: true, get: function () { return auth_1.useRequestAccountDeletion; } });
|
|
96
|
+
Object.defineProperty(exports, "useConfirmAccountDeletion", { enumerable: true, get: function () { return auth_1.useConfirmAccountDeletion; } });
|
|
95
97
|
// -- authentication (accounts)
|
|
96
98
|
var auth_2 = require("./hooks/auth");
|
|
97
99
|
Object.defineProperty(exports, "useAccountSync", { enumerable: true, get: function () { return auth_2.useAccountSync; } });
|
|
@@ -153,6 +155,9 @@ Object.defineProperty(exports, "useIsEntitySaved", { enumerable: true, get: func
|
|
|
153
155
|
var entity_lists_1 = require("./hooks/entity-lists");
|
|
154
156
|
Object.defineProperty(exports, "useEntityList", { enumerable: true, get: function () { return entity_lists_1.useEntityList; } });
|
|
155
157
|
Object.defineProperty(exports, "useEntityListActions", { enumerable: true, get: function () { return entity_lists_1.useEntityListActions; } });
|
|
158
|
+
// -- custom tables
|
|
159
|
+
var tables_1 = require("./hooks/tables");
|
|
160
|
+
Object.defineProperty(exports, "useTable", { enumerable: true, get: function () { return tables_1.useTable; } });
|
|
156
161
|
// -- spaces
|
|
157
162
|
var spaces_1 = require("./hooks/spaces");
|
|
158
163
|
Object.defineProperty(exports, "useSpace", { enumerable: true, get: function () { return spaces_1.useSpace; } });
|
|
@@ -172,6 +177,7 @@ Object.defineProperty(exports, "useLeaveSpace", { enumerable: true, get: functio
|
|
|
172
177
|
Object.defineProperty(exports, "useFetchSpaceMembers", { enumerable: true, get: function () { return spaces_1.useFetchSpaceMembers; } });
|
|
173
178
|
Object.defineProperty(exports, "useFetchSpaceTeam", { enumerable: true, get: function () { return spaces_1.useFetchSpaceTeam; } });
|
|
174
179
|
Object.defineProperty(exports, "useFetchUserSpaces", { enumerable: true, get: function () { return spaces_1.useFetchUserSpaces; } });
|
|
180
|
+
Object.defineProperty(exports, "useFetchMutualSpaces", { enumerable: true, get: function () { return spaces_1.useFetchMutualSpaces; } });
|
|
175
181
|
Object.defineProperty(exports, "useUpdateMemberRole", { enumerable: true, get: function () { return spaces_1.useUpdateMemberRole; } });
|
|
176
182
|
Object.defineProperty(exports, "useApproveMember", { enumerable: true, get: function () { return spaces_1.useApproveMember; } });
|
|
177
183
|
Object.defineProperty(exports, "useDeclineMember", { enumerable: true, get: function () { return spaces_1.useDeclineMember; } });
|
|
@@ -290,7 +296,10 @@ Object.defineProperty(exports, "useDeleteConversation", { enumerable: true, get:
|
|
|
290
296
|
Object.defineProperty(exports, "useCreateDirectConversation", { enumerable: true, get: function () { return chat_1.useCreateDirectConversation; } });
|
|
291
297
|
Object.defineProperty(exports, "useFetchSpaceConversation", { enumerable: true, get: function () { return chat_1.useFetchSpaceConversation; } });
|
|
292
298
|
Object.defineProperty(exports, "useConversationMembers", { enumerable: true, get: function () { return chat_1.useConversationMembers; } });
|
|
299
|
+
Object.defineProperty(exports, "useLiveChatMessages", { enumerable: true, get: function () { return chat_1.useLiveChatMessages; } });
|
|
293
300
|
Object.defineProperty(exports, "useChatMessages", { enumerable: true, get: function () { return chat_1.useChatMessages; } });
|
|
301
|
+
Object.defineProperty(exports, "useFetchManyChatMessages", { enumerable: true, get: function () { return chat_1.useFetchManyChatMessages; } });
|
|
302
|
+
Object.defineProperty(exports, "useFetchManyChatMessagesWrapper", { enumerable: true, get: function () { return chat_1.useFetchManyChatMessagesWrapper; } });
|
|
294
303
|
Object.defineProperty(exports, "useSendMessage", { enumerable: true, get: function () { return chat_1.useSendMessage; } });
|
|
295
304
|
Object.defineProperty(exports, "useEditMessage", { enumerable: true, get: function () { return chat_1.useEditMessage; } });
|
|
296
305
|
Object.defineProperty(exports, "useDeleteMessage", { enumerable: true, get: function () { return chat_1.useDeleteMessage; } });
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;AACpB,yDAAwD;AAA/C,gHAAA,cAAc,OAAA;AACvB,qEAAoE;AAA3D,0HAAA,mBAAmB,OAAA;AAC5B,qDAAoD;AAA3C,0GAAA,WAAW,OAAA;AACpB,+DAAyE;AAAhE,qIAAA,OAAO,OAAoB;AACpC,mCAKqB;AAJnB,oGAAA,aAAa,OAAA;AACb,mGAAA,YAAY,OAAA;AACZ,oGAAA,aAAa,OAAA;AACb,gGAAA,SAAS,OAAA;AAGX,YAAY;AACZ,2DAA0D;AAAjD,8GAAA,aAAa,OAAA;AAGtB,+CAA+C;AAC/C,qCAkBmB;AAjBjB,yGAAA,cAAc,OAAA;AAC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BAAkB,OAAA;AAClB,0GAAA,aAAa,OAAA;AACb,iHAAA,oBAAoB,OAAA;AACpB,kHAAA,qBAAqB,OAAA;AACrB,0GAAA,aAAa,OAAA;AACb,4GAAA,eAAe,OAAA;AACf,6GAAA,gBAAgB,OAAA;AAChB,6GAAA,gBAAgB,OAAA;AAChB,2GAAA,cAAc,OAAA;AACd,+GAAA,kBAAkB,OAAA;AAClB,+GAAA,kBAAkB,OAAA;AAClB,sHAAA,yBAAyB,OAAA;AACzB,mHAAA,sBAAsB,OAAA;AACtB,0HAAA,6BAA6B,OAAA;AAC7B,0HAAA,6BAA6B,OAAA;AAC7B,yHAAA,4BAA4B,OAAA;AAC5B,2GAAA,cAAc,OAAA;AACd,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,gHAAA,mBAAmB,OAAA;AACnB,gHAAA,mBAAmB,OAAA;AACnB,gHAAA,mBAAmB,OAAA;AACnB,8GAAA,iBAAiB,OAAA;AACjB,kHAAA,qBAAqB,OAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { File } from "./File";
|
|
2
2
|
import { ChatMessage } from "./ChatMessage";
|
|
3
3
|
import { ConversationMember } from "./ConversationMember";
|
|
4
|
+
import { User } from "./User";
|
|
4
5
|
export interface Conversation {
|
|
5
6
|
id: string;
|
|
6
7
|
projectId: string;
|
|
@@ -22,4 +23,5 @@ export interface Conversation {
|
|
|
22
23
|
export interface ConversationPreview extends Conversation {
|
|
23
24
|
unreadCount: number;
|
|
24
25
|
lastMessage: ChatMessage | null;
|
|
26
|
+
otherMembers?: Pick<User, "id" | "name" | "username" | "avatar">[];
|
|
25
27
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom-table types for the `/db` surface. Names mirror the server's `/db`
|
|
3
|
+
* read contract exactly (page/limit/sortBy/sortDir/filters/includeDeleted; the
|
|
4
|
+
* 10 filter operators).
|
|
5
|
+
*/
|
|
6
|
+
export type DbFilterOperator = "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "in" | "contains" | "like" | "isNull";
|
|
7
|
+
export interface DbFilter {
|
|
8
|
+
column: string;
|
|
9
|
+
operator: DbFilterOperator;
|
|
10
|
+
value?: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface TableQuery {
|
|
13
|
+
page?: number;
|
|
14
|
+
limit?: number;
|
|
15
|
+
sortBy?: string;
|
|
16
|
+
sortDir?: "asc" | "desc";
|
|
17
|
+
/** AND-combined filter clauses. */
|
|
18
|
+
filters?: DbFilter[];
|
|
19
|
+
/** Surface soft-deleted rows on a paranoid table. */
|
|
20
|
+
includeDeleted?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** Shape every custom-table row shares (managed columns + free columns). */
|
|
23
|
+
export interface TableRow {
|
|
24
|
+
id: string;
|
|
25
|
+
createdAt?: string;
|
|
26
|
+
updatedAt?: string;
|
|
27
|
+
deletedAt?: string | null;
|
|
28
|
+
[column: string]: unknown;
|
|
29
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Custom-table types for the `/db` surface. Names mirror the server's `/db`
|
|
4
|
+
* read contract exactly (page/limit/sortBy/sortDir/filters/includeDeleted; the
|
|
5
|
+
* 10 filter operators).
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
//# sourceMappingURL=Table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../src/interfaces/models/Table.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|