@sublay/js 7.9.0 → 7.9.2
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 +202 -0
- package/NOTICE +9 -0
- package/README.md +23 -14
- package/dist/index.d.mts +38 -7
- package/dist/index.d.ts +4363 -35
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +29 -18
- package/dist/core/client.d.ts +0 -64
- package/dist/core/multipart.d.ts +0 -22
- package/dist/core/spaceReputationParams.d.ts +0 -57
- package/dist/interfaces/AppNotification.d.ts +0 -258
- package/dist/interfaces/ChatMessage.d.ts +0 -40
- package/dist/interfaces/Collection.d.ts +0 -10
- package/dist/interfaces/Comment.d.ts +0 -50
- package/dist/interfaces/Connection.d.ts +0 -67
- package/dist/interfaces/Conversation.d.ts +0 -27
- package/dist/interfaces/ConversationMember.d.ts +0 -17
- package/dist/interfaces/Entity.d.ts +0 -63
- package/dist/interfaces/Event.d.ts +0 -66
- package/dist/interfaces/File.d.ts +0 -39
- package/dist/interfaces/Follow.d.ts +0 -19
- package/dist/interfaces/HostedApp.d.ts +0 -11
- package/dist/interfaces/IPaginatedResponse.d.ts +0 -11
- package/dist/interfaces/ImageProcessing.d.ts +0 -62
- package/dist/interfaces/Mention.d.ts +0 -12
- package/dist/interfaces/OAuthIdentity.d.ts +0 -14
- package/dist/interfaces/Project.d.ts +0 -14
- package/dist/interfaces/Push.d.ts +0 -74
- package/dist/interfaces/Reaction.d.ts +0 -23
- package/dist/interfaces/Report.d.ts +0 -38
- package/dist/interfaces/ReputationGrant.d.ts +0 -85
- package/dist/interfaces/Rule.d.ts +0 -22
- package/dist/interfaces/Space.d.ts +0 -130
- package/dist/interfaces/SpaceMember.d.ts +0 -29
- package/dist/interfaces/SpaceReputation.d.ts +0 -100
- package/dist/interfaces/Table.d.ts +0 -63
- package/dist/interfaces/User.d.ts +0 -46
- package/dist/interfaces/UserSearch.d.ts +0 -13
- package/dist/interfaces/Workspace.d.ts +0 -178
- package/dist/modules/app-notifications/countUnreadNotifications.d.ts +0 -2
- package/dist/modules/app-notifications/fetchNotifications.d.ts +0 -8
- package/dist/modules/app-notifications/index.d.ts +0 -4
- package/dist/modules/app-notifications/markAllNotificationsAsRead.d.ts +0 -5
- package/dist/modules/app-notifications/markNotificationAsRead.d.ts +0 -5
- package/dist/modules/auth/changePassword.d.ts +0 -34
- package/dist/modules/auth/confirmAccountDeletion.d.ts +0 -11
- package/dist/modules/auth/index.d.ts +0 -13
- package/dist/modules/auth/requestAccountDeletion.d.ts +0 -14
- package/dist/modules/auth/requestNewAccessToken.d.ts +0 -16
- package/dist/modules/auth/requestPasswordReset.d.ts +0 -5
- package/dist/modules/auth/resetPassword.d.ts +0 -6
- package/dist/modules/auth/sendVerificationEmail.d.ts +0 -13
- package/dist/modules/auth/setPassword.d.ts +0 -9
- package/dist/modules/auth/signIn.d.ts +0 -12
- package/dist/modules/auth/signOut.d.ts +0 -103
- package/dist/modules/auth/signUp.d.ts +0 -24
- package/dist/modules/auth/verifyEmail.d.ts +0 -5
- package/dist/modules/auth/verifyExternalUser.d.ts +0 -11
- package/dist/modules/chat/addMember.d.ts +0 -8
- package/dist/modules/chat/changeMemberRole.d.ts +0 -9
- package/dist/modules/chat/createDirectConversation.d.ts +0 -7
- package/dist/modules/chat/createGroupConversation.d.ts +0 -10
- package/dist/modules/chat/deleteConversation.d.ts +0 -8
- package/dist/modules/chat/deleteMessage.d.ts +0 -11
- package/dist/modules/chat/editMessage.d.ts +0 -14
- package/dist/modules/chat/getConversation.d.ts +0 -6
- package/dist/modules/chat/getMessage.d.ts +0 -13
- package/dist/modules/chat/getUnreadCount.d.ts +0 -6
- package/dist/modules/chat/index.d.ts +0 -21
- package/dist/modules/chat/leaveConversation.d.ts +0 -7
- package/dist/modules/chat/listConversations.d.ts +0 -17
- package/dist/modules/chat/listMembers.d.ts +0 -11
- package/dist/modules/chat/listMessages.d.ts +0 -44
- package/dist/modules/chat/listReactions.d.ts +0 -24
- package/dist/modules/chat/markAsRead.d.ts +0 -9
- package/dist/modules/chat/muteConversation.d.ts +0 -23
- package/dist/modules/chat/removeMember.d.ts +0 -9
- package/dist/modules/chat/reportMessage.d.ts +0 -12
- package/dist/modules/chat/sendMessage.d.ts +0 -22
- package/dist/modules/chat/toggleReaction.d.ts +0 -16
- package/dist/modules/chat/updateConversation.d.ts +0 -12
- package/dist/modules/collections/addEntityToCollection.d.ts +0 -13
- package/dist/modules/collections/createNewCollection.d.ts +0 -8
- package/dist/modules/collections/deleteCollection.d.ts +0 -5
- package/dist/modules/collections/fetchCollectionEntities.d.ts +0 -13
- package/dist/modules/collections/fetchRootCollection.d.ts +0 -3
- package/dist/modules/collections/fetchSubCollections.d.ts +0 -6
- package/dist/modules/collections/index.d.ts +0 -8
- package/dist/modules/collections/removeEntityFromCollection.d.ts +0 -7
- package/dist/modules/collections/updateCollection.d.ts +0 -7
- package/dist/modules/comments/addReaction.d.ts +0 -8
- package/dist/modules/comments/createComment.d.ts +0 -15
- package/dist/modules/comments/deleteComment.d.ts +0 -5
- package/dist/modules/comments/fetchComment.d.ts +0 -8
- package/dist/modules/comments/fetchCommentByForeignId.d.ts +0 -7
- package/dist/modules/comments/fetchManyComments.d.ts +0 -26
- package/dist/modules/comments/fetchReactions.d.ts +0 -16
- package/dist/modules/comments/getUserReaction.d.ts +0 -9
- package/dist/modules/comments/index.d.ts +0 -10
- package/dist/modules/comments/removeReaction.d.ts +0 -6
- package/dist/modules/comments/updateComment.d.ts +0 -10
- package/dist/modules/connections/acceptConnection.d.ts +0 -6
- package/dist/modules/connections/declineConnection.d.ts +0 -6
- package/dist/modules/connections/fetchConnections.d.ts +0 -9
- package/dist/modules/connections/fetchConnectionsCount.d.ts +0 -3
- package/dist/modules/connections/fetchReceivedPendingConnections.d.ts +0 -8
- package/dist/modules/connections/fetchSentPendingConnections.d.ts +0 -8
- package/dist/modules/connections/index.d.ts +0 -7
- package/dist/modules/connections/removeConnection.d.ts +0 -5
- package/dist/modules/entities/addReaction.d.ts +0 -8
- package/dist/modules/entities/createEntity.d.ts +0 -23
- package/dist/modules/entities/deleteEntity.d.ts +0 -5
- package/dist/modules/entities/fetchDrafts.d.ts +0 -11
- package/dist/modules/entities/fetchEntity.d.ts +0 -8
- package/dist/modules/entities/fetchEntityByForeignId.d.ts +0 -8
- package/dist/modules/entities/fetchEntityByShortId.d.ts +0 -7
- package/dist/modules/entities/fetchManyEntities.d.ts +0 -65
- package/dist/modules/entities/fetchReactions.d.ts +0 -16
- package/dist/modules/entities/fetchTopComment.d.ts +0 -6
- package/dist/modules/entities/getUserReaction.d.ts +0 -9
- package/dist/modules/entities/index.d.ts +0 -15
- package/dist/modules/entities/isEntitySaved.d.ts +0 -12
- package/dist/modules/entities/publishDraft.d.ts +0 -6
- package/dist/modules/entities/removeReaction.d.ts +0 -6
- package/dist/modules/entities/updateEntity.d.ts +0 -18
- package/dist/modules/events/addHost.d.ts +0 -8
- package/dist/modules/events/addInvite.d.ts +0 -8
- package/dist/modules/events/cancelEvent.d.ts +0 -6
- package/dist/modules/events/createEvent.d.ts +0 -49
- package/dist/modules/events/deleteEvent.d.ts +0 -5
- package/dist/modules/events/fetchEvent.d.ts +0 -8
- package/dist/modules/events/fetchEventRsvps.d.ts +0 -19
- package/dist/modules/events/fetchInvitees.d.ts +0 -12
- package/dist/modules/events/fetchManyEvents.d.ts +0 -42
- package/dist/modules/events/index.d.ts +0 -14
- package/dist/modules/events/removeHost.d.ts +0 -8
- package/dist/modules/events/removeInvite.d.ts +0 -8
- package/dist/modules/events/setRsvp.d.ts +0 -7
- package/dist/modules/events/updateEvent.d.ts +0 -43
- package/dist/modules/events/withdrawRsvp.d.ts +0 -6
- package/dist/modules/follows/deleteFollow.d.ts +0 -5
- package/dist/modules/follows/fetchFollowers.d.ts +0 -9
- package/dist/modules/follows/fetchFollowersCount.d.ts +0 -5
- package/dist/modules/follows/fetchFollowing.d.ts +0 -9
- package/dist/modules/follows/fetchFollowingCount.d.ts +0 -5
- package/dist/modules/follows/index.d.ts +0 -5
- package/dist/modules/oauth/authorize.d.ts +0 -25
- package/dist/modules/oauth/index.d.ts +0 -4
- package/dist/modules/oauth/linkIdentity.d.ts +0 -14
- package/dist/modules/oauth/listIdentities.d.ts +0 -4
- package/dist/modules/oauth/unlinkIdentity.d.ts +0 -12
- package/dist/modules/push/getNotificationPreferences.d.ts +0 -11
- package/dist/modules/push/index.d.ts +0 -2
- package/dist/modules/push/updateNotificationPreferences.d.ts +0 -16
- package/dist/modules/reports/createReport.d.ts +0 -9
- package/dist/modules/reports/fetchModeratedReports.d.ts +0 -13
- package/dist/modules/reports/index.d.ts +0 -2
- package/dist/modules/reputation/createGrant.d.ts +0 -45
- package/dist/modules/reputation/index.d.ts +0 -2
- package/dist/modules/reputation/listGrants.d.ts +0 -45
- package/dist/modules/search/askContent.d.ts +0 -58
- package/dist/modules/search/index.d.ts +0 -5
- package/dist/modules/search/matchUsers.d.ts +0 -36
- package/dist/modules/search/searchContent.d.ts +0 -24
- package/dist/modules/search/searchSpaces.d.ts +0 -11
- package/dist/modules/search/searchUsers.d.ts +0 -11
- package/dist/modules/spaces/approveMembership.d.ts +0 -7
- package/dist/modules/spaces/banMember.d.ts +0 -13
- package/dist/modules/spaces/checkMyMembership.d.ts +0 -6
- package/dist/modules/spaces/checkSlugAvailability.d.ts +0 -8
- package/dist/modules/spaces/createRule.d.ts +0 -8
- package/dist/modules/spaces/createSpace.d.ts +0 -29
- package/dist/modules/spaces/declineMembership.d.ts +0 -7
- package/dist/modules/spaces/deleteRule.d.ts +0 -7
- package/dist/modules/spaces/deleteSpace.d.ts +0 -6
- package/dist/modules/spaces/fetchChildSpaces.d.ts +0 -11
- package/dist/modules/spaces/fetchDigestConfig.d.ts +0 -6
- package/dist/modules/spaces/fetchManyRules.d.ts +0 -6
- package/dist/modules/spaces/fetchManySpaces.d.ts +0 -17
- package/dist/modules/spaces/fetchMutualSpaces.d.ts +0 -11
- package/dist/modules/spaces/fetchRule.d.ts +0 -7
- package/dist/modules/spaces/fetchSpace.d.ts +0 -6
- package/dist/modules/spaces/fetchSpaceBreadcrumb.d.ts +0 -6
- package/dist/modules/spaces/fetchSpaceByShortId.d.ts +0 -6
- package/dist/modules/spaces/fetchSpaceBySlug.d.ts +0 -6
- package/dist/modules/spaces/fetchSpaceMembers.d.ts +0 -11
- package/dist/modules/spaces/fetchSpaceTeam.d.ts +0 -7
- package/dist/modules/spaces/fetchUserSpaces.d.ts +0 -17
- package/dist/modules/spaces/getSpaceConversation.d.ts +0 -6
- package/dist/modules/spaces/handleCommentReport.d.ts +0 -14
- package/dist/modules/spaces/handleEntityReport.d.ts +0 -17
- package/dist/modules/spaces/handleSpaceChatReport.d.ts +0 -18
- package/dist/modules/spaces/index.d.ts +0 -36
- package/dist/modules/spaces/joinSpace.d.ts +0 -6
- package/dist/modules/spaces/leaveSpace.d.ts +0 -6
- package/dist/modules/spaces/moderateSpaceChatMessage.d.ts +0 -12
- package/dist/modules/spaces/moderateSpaceComment.d.ts +0 -9
- package/dist/modules/spaces/moderateSpaceEntity.d.ts +0 -12
- package/dist/modules/spaces/reorderRules.d.ts +0 -7
- package/dist/modules/spaces/setSpaceEntityNsfw.d.ts +0 -16
- package/dist/modules/spaces/unbanMember.d.ts +0 -13
- package/dist/modules/spaces/updateDigestConfig.d.ts +0 -11
- package/dist/modules/spaces/updateMemberRole.d.ts +0 -8
- package/dist/modules/spaces/updateRule.d.ts +0 -9
- package/dist/modules/spaces/updateSpace.d.ts +0 -22
- package/dist/modules/storage/deleteFile.d.ts +0 -5
- package/dist/modules/storage/getFile.d.ts +0 -34
- package/dist/modules/storage/index.d.ts +0 -4
- package/dist/modules/storage/uploadFile.d.ts +0 -30
- package/dist/modules/storage/uploadImage.d.ts +0 -42
- package/dist/modules/tables/bulkCreate.d.ts +0 -4
- package/dist/modules/tables/bulkDelete.d.ts +0 -7
- package/dist/modules/tables/create.d.ts +0 -4
- package/dist/modules/tables/createTableAccessor.d.ts +0 -9
- package/dist/modules/tables/deleteRow.d.ts +0 -9
- package/dist/modules/tables/find.d.ts +0 -8
- package/dist/modules/tables/findOne.d.ts +0 -7
- package/dist/modules/tables/index.d.ts +0 -9
- package/dist/modules/tables/restore.d.ts +0 -6
- package/dist/modules/tables/update.d.ts +0 -4
- package/dist/modules/users/checkUsernameAvailability.d.ts +0 -8
- package/dist/modules/users/createBlock.d.ts +0 -19
- package/dist/modules/users/createFollow.d.ts +0 -7
- package/dist/modules/users/deleteBlock.d.ts +0 -13
- package/dist/modules/users/deleteFollow.d.ts +0 -6
- package/dist/modules/users/fetchBlockStatus.d.ts +0 -23
- package/dist/modules/users/fetchBlockedUsers.d.ts +0 -19
- package/dist/modules/users/fetchConnectionStatus.d.ts +0 -10
- package/dist/modules/users/fetchConnectionsByUserId.d.ts +0 -11
- package/dist/modules/users/fetchConnectionsCountByUserId.d.ts +0 -6
- package/dist/modules/users/fetchFollowStatus.d.ts +0 -14
- package/dist/modules/users/fetchFollowersByUserId.d.ts +0 -11
- package/dist/modules/users/fetchFollowersCountByUserId.d.ts +0 -8
- package/dist/modules/users/fetchFollowingByUserId.d.ts +0 -11
- package/dist/modules/users/fetchFollowingCountByUserId.d.ts +0 -8
- package/dist/modules/users/fetchUserByForeignId.d.ts +0 -8
- package/dist/modules/users/fetchUserById.d.ts +0 -8
- package/dist/modules/users/fetchUserByUsername.d.ts +0 -8
- package/dist/modules/users/fetchUserSuggestions.d.ts +0 -7
- package/dist/modules/users/index.d.ts +0 -22
- package/dist/modules/users/removeConnectionByUserId.d.ts +0 -10
- package/dist/modules/users/requestConnection.d.ts +0 -11
- package/dist/modules/users/updateUser.d.ts +0 -32
- package/dist/modules/workspaces/acceptInvite.d.ts +0 -13
- package/dist/modules/workspaces/acceptWorkspaceInvite.d.ts +0 -13
- package/dist/modules/workspaces/createInvite.d.ts +0 -17
- package/dist/modules/workspaces/createWorkspace.d.ts +0 -12
- package/dist/modules/workspaces/createWorkspaceInvite.d.ts +0 -66
- package/dist/modules/workspaces/declineInvite.d.ts +0 -12
- package/dist/modules/workspaces/declineWorkspaceInvite.d.ts +0 -14
- package/dist/modules/workspaces/deleteWorkspace.d.ts +0 -13
- package/dist/modules/workspaces/fetchManyWorkspaces.d.ts +0 -17
- package/dist/modules/workspaces/fetchMembers.d.ts +0 -13
- package/dist/modules/workspaces/fetchMyInvites.d.ts +0 -11
- package/dist/modules/workspaces/fetchMyWorkspaceInvites.d.ts +0 -15
- package/dist/modules/workspaces/fetchWorkspace.d.ts +0 -7
- package/dist/modules/workspaces/fetchWorkspaceAuthority.d.ts +0 -16
- package/dist/modules/workspaces/fetchWorkspaceInvites.d.ts +0 -17
- package/dist/modules/workspaces/fetchWorkspaceMemberStanding.d.ts +0 -15
- package/dist/modules/workspaces/fetchWorkspaceMembers.d.ts +0 -18
- package/dist/modules/workspaces/getAuthority.d.ts +0 -11
- package/dist/modules/workspaces/index.d.ts +0 -21
- package/dist/modules/workspaces/leaveWorkspace.d.ts +0 -12
- package/dist/modules/workspaces/removeWorkspaceMember.d.ts +0 -12
- package/dist/modules/workspaces/removeWorkspaceMemberFromSubtree.d.ts +0 -16
- package/dist/modules/workspaces/resendWorkspaceInvite.d.ts +0 -12
- package/dist/modules/workspaces/revokeWorkspaceInvite.d.ts +0 -13
- package/dist/modules/workspaces/transferWorkspaceOwnership.d.ts +0 -15
- package/dist/modules/workspaces/updateWorkspace.d.ts +0 -12
- package/dist/modules/workspaces/updateWorkspaceInheritFlag.d.ts +0 -13
- package/dist/modules/workspaces/updateWorkspaceMember.d.ts +0 -35
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { fetchRootCollection } from "./fetchRootCollection";
|
|
2
|
-
export { fetchSubCollections } from "./fetchSubCollections";
|
|
3
|
-
export { createNewCollection } from "./createNewCollection";
|
|
4
|
-
export { fetchCollectionEntities } from "./fetchCollectionEntities";
|
|
5
|
-
export { addEntityToCollection } from "./addEntityToCollection";
|
|
6
|
-
export { removeEntityFromCollection } from "./removeEntityFromCollection";
|
|
7
|
-
export { updateCollection } from "./updateCollection";
|
|
8
|
-
export { deleteCollection } from "./deleteCollection";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { CollectionEntityMutationResponse } from "./addEntityToCollection";
|
|
3
|
-
export interface RemoveEntityFromCollectionProps {
|
|
4
|
-
collectionId: string;
|
|
5
|
-
entityId: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function removeEntityFromCollection(client: SublayHttpClient, data: RemoveEntityFromCollectionProps): Promise<CollectionEntityMutationResponse>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Collection } from "../../interfaces/Collection";
|
|
3
|
-
export interface UpdateCollectionProps {
|
|
4
|
-
collectionId: string;
|
|
5
|
-
name: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function updateCollection(client: SublayHttpClient, data: UpdateCollectionProps): Promise<Collection>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { ReactionType } from "../../interfaces/Reaction";
|
|
3
|
-
import { Comment } from "../../interfaces/Comment";
|
|
4
|
-
export interface AddCommentReactionProps {
|
|
5
|
-
commentId: string;
|
|
6
|
-
reactionType: ReactionType;
|
|
7
|
-
}
|
|
8
|
-
export declare function addReaction(client: SublayHttpClient, data: AddCommentReactionProps): Promise<Comment>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Comment, GifData } from "../../interfaces/Comment";
|
|
3
|
-
import { Mention } from "../../interfaces/Mention";
|
|
4
|
-
export interface CreateCommentProps {
|
|
5
|
-
entityId: string;
|
|
6
|
-
foreignId?: string;
|
|
7
|
-
content?: string;
|
|
8
|
-
gif?: GifData | null;
|
|
9
|
-
mentions?: Mention[];
|
|
10
|
-
parentId?: string | null;
|
|
11
|
-
referencedCommentId?: string;
|
|
12
|
-
attachments?: Record<string, any>[];
|
|
13
|
-
metadata?: Record<string, any>;
|
|
14
|
-
}
|
|
15
|
-
export declare function createComment(client: SublayHttpClient, data: CreateCommentProps): Promise<Comment>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Comment } from "../../interfaces/Comment";
|
|
3
|
-
import { SpaceReputationContextParams } from "../../interfaces/SpaceReputation";
|
|
4
|
-
export interface FetchCommentProps extends SpaceReputationContextParams {
|
|
5
|
-
commentId: string;
|
|
6
|
-
include?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function fetchComment(client: SublayHttpClient, data: FetchCommentProps): Promise<Comment>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Comment } from "../../interfaces/Comment";
|
|
3
|
-
export interface FetchCommentByForeignIdProps {
|
|
4
|
-
foreignId: string;
|
|
5
|
-
include?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function fetchCommentByForeignId(client: SublayHttpClient, data: FetchCommentByForeignIdProps): Promise<Comment>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Comment } from "../../interfaces/Comment";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
import { SpaceReputationContextParams } from "../../interfaces/SpaceReputation";
|
|
5
|
-
export interface FetchManyCommentsProps extends SpaceReputationContextParams {
|
|
6
|
-
entityId?: string;
|
|
7
|
-
userId?: string;
|
|
8
|
-
parentId?: string;
|
|
9
|
-
page?: number;
|
|
10
|
-
limit?: number;
|
|
11
|
-
sortBy?: "createdAt" | "top" | "controversial"
|
|
12
|
-
/** @deprecated Use "createdAt" instead. "new" is a directional alias for
|
|
13
|
-
* createdAt DESC, removed in v8; the server still accepts it (identical
|
|
14
|
-
* behavior) but responds with deprecation headers. */
|
|
15
|
-
| "new"
|
|
16
|
-
/** @deprecated Use "createdAt" with sortDir:"asc" instead. "old" is a
|
|
17
|
-
* directional alias for createdAt ASC, removed in v8; the server still
|
|
18
|
-
* accepts it (identical behavior) but responds with deprecation headers. */
|
|
19
|
-
| "old";
|
|
20
|
-
/** Sort direction for `sortBy: "createdAt"`. Defaults to "desc". */
|
|
21
|
-
sortDir?: "asc" | "desc";
|
|
22
|
-
include?: string;
|
|
23
|
-
sourceId?: string;
|
|
24
|
-
blockedFilter?: "exclude" | "include-outbound-blocked";
|
|
25
|
-
}
|
|
26
|
-
export declare function fetchManyComments(client: SublayHttpClient, data: FetchManyCommentsProps): Promise<PaginatedResponse<Comment>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Reaction, ReactionType } from "../../interfaces/Reaction";
|
|
3
|
-
import { PaginationMetadata } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
import { SpaceReputationContextParams } from "../../interfaces/SpaceReputation";
|
|
5
|
-
export interface FetchCommentReactionsProps extends SpaceReputationContextParams {
|
|
6
|
-
commentId: string;
|
|
7
|
-
reactionType?: ReactionType;
|
|
8
|
-
page?: number;
|
|
9
|
-
limit?: number;
|
|
10
|
-
sortDir?: "asc" | "desc";
|
|
11
|
-
}
|
|
12
|
-
export interface FetchCommentReactionsResponse {
|
|
13
|
-
data: Reaction[];
|
|
14
|
-
pagination: PaginationMetadata;
|
|
15
|
-
}
|
|
16
|
-
export declare function fetchReactions(client: SublayHttpClient, data: FetchCommentReactionsProps): Promise<FetchCommentReactionsResponse>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { ReactionType } from "../../interfaces/Reaction";
|
|
3
|
-
export interface GetUserCommentReactionProps {
|
|
4
|
-
commentId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface UserCommentReactionResponse {
|
|
7
|
-
reactionType: ReactionType | null;
|
|
8
|
-
}
|
|
9
|
-
export declare function getUserReaction(client: SublayHttpClient, data: GetUserCommentReactionProps): Promise<UserCommentReactionResponse>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { createComment } from "./createComment";
|
|
2
|
-
export { fetchComment } from "./fetchComment";
|
|
3
|
-
export { fetchCommentByForeignId } from "./fetchCommentByForeignId";
|
|
4
|
-
export { updateComment } from "./updateComment";
|
|
5
|
-
export { deleteComment } from "./deleteComment";
|
|
6
|
-
export { fetchManyComments } from "./fetchManyComments";
|
|
7
|
-
export { addReaction } from "./addReaction";
|
|
8
|
-
export { removeReaction } from "./removeReaction";
|
|
9
|
-
export { fetchReactions } from "./fetchReactions";
|
|
10
|
-
export { getUserReaction } from "./getUserReaction";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Comment } from "../../interfaces/Comment";
|
|
3
|
-
export interface RemoveCommentReactionProps {
|
|
4
|
-
commentId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function removeReaction(client: SublayHttpClient, data: RemoveCommentReactionProps): Promise<Comment>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Comment } from "../../interfaces/Comment";
|
|
3
|
-
export interface UpdateCommentProps {
|
|
4
|
-
commentId: string;
|
|
5
|
-
/** New text content. Cannot be empty. Omit to leave the content untouched. */
|
|
6
|
-
content?: string;
|
|
7
|
-
/** Replaces the comment's metadata wholesale (not merged). */
|
|
8
|
-
metadata?: Record<string, any>;
|
|
9
|
-
}
|
|
10
|
-
export declare function updateComment(client: SublayHttpClient, data: UpdateCommentProps): Promise<Comment>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { ConnectionActionResponse } from "../../interfaces/Connection";
|
|
3
|
-
export interface AcceptConnectionProps {
|
|
4
|
-
connectionId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function acceptConnection(client: SublayHttpClient, data: AcceptConnectionProps): Promise<ConnectionActionResponse>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { ConnectionActionResponse } from "../../interfaces/Connection";
|
|
3
|
-
export interface DeclineConnectionProps {
|
|
4
|
-
connectionId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function declineConnection(client: SublayHttpClient, data: DeclineConnectionProps): Promise<ConnectionActionResponse>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { EstablishedConnection } from "../../interfaces/Connection";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
import { UserSearchParams } from "../../interfaces/UserSearch";
|
|
5
|
-
export interface FetchConnectionsProps extends UserSearchParams {
|
|
6
|
-
page?: number;
|
|
7
|
-
limit?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function fetchConnections(client: SublayHttpClient, data: FetchConnectionsProps): Promise<PaginatedResponse<EstablishedConnection>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { PendingConnection } from "../../interfaces/Connection";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
export interface FetchReceivedPendingConnectionsProps {
|
|
5
|
-
page?: number;
|
|
6
|
-
limit?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function fetchReceivedPendingConnections(client: SublayHttpClient, data: FetchReceivedPendingConnectionsProps): Promise<PaginatedResponse<PendingConnection>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { PendingConnection } from "../../interfaces/Connection";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
export interface FetchSentPendingConnectionsProps {
|
|
5
|
-
page?: number;
|
|
6
|
-
limit?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function fetchSentPendingConnections(client: SublayHttpClient, data: FetchSentPendingConnectionsProps): Promise<PaginatedResponse<PendingConnection>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { fetchConnections } from "./fetchConnections";
|
|
2
|
-
export { fetchConnectionsCount } from "./fetchConnectionsCount";
|
|
3
|
-
export { fetchSentPendingConnections } from "./fetchSentPendingConnections";
|
|
4
|
-
export { fetchReceivedPendingConnections } from "./fetchReceivedPendingConnections";
|
|
5
|
-
export { acceptConnection } from "./acceptConnection";
|
|
6
|
-
export { declineConnection } from "./declineConnection";
|
|
7
|
-
export { removeConnection } from "./removeConnection";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
import { ReactionType } from "../../interfaces/Reaction";
|
|
4
|
-
export interface AddEntityReactionProps {
|
|
5
|
-
entityId: string;
|
|
6
|
-
reactionType: ReactionType;
|
|
7
|
-
}
|
|
8
|
-
export declare function addReaction(client: SublayHttpClient, data: AddEntityReactionProps): Promise<Entity>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
import { Mention } from "../../interfaces/Mention";
|
|
4
|
-
export interface CreateEntityProps {
|
|
5
|
-
foreignId?: string;
|
|
6
|
-
sourceId?: string;
|
|
7
|
-
spaceId?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
content?: string;
|
|
10
|
-
attachments?: Record<string, any>[];
|
|
11
|
-
keywords?: string[];
|
|
12
|
-
mentions?: Mention[];
|
|
13
|
-
location?: {
|
|
14
|
-
latitude: number;
|
|
15
|
-
longitude: number;
|
|
16
|
-
};
|
|
17
|
-
metadata?: Record<string, any>;
|
|
18
|
-
nsfw?: boolean;
|
|
19
|
-
isDraft?: boolean;
|
|
20
|
-
/** Create the entity without attributing it to the logged-in user (authorless). */
|
|
21
|
-
excludeUserId?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare function createEntity(client: SublayHttpClient, data: CreateEntityProps): Promise<Entity>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
export interface FetchDraftsProps {
|
|
5
|
-
page?: number;
|
|
6
|
-
limit?: number;
|
|
7
|
-
sourceId?: string;
|
|
8
|
-
spaceId?: string;
|
|
9
|
-
include?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function fetchDrafts(client: SublayHttpClient, data: FetchDraftsProps): Promise<PaginatedResponse<Entity>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
import { SpaceReputationContextParams } from "../../interfaces/SpaceReputation";
|
|
4
|
-
export interface FetchEntityProps extends SpaceReputationContextParams {
|
|
5
|
-
entityId: string;
|
|
6
|
-
include?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function fetchEntity(client: SublayHttpClient, data: FetchEntityProps): Promise<Entity>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
export interface FetchEntityByForeignIdProps {
|
|
4
|
-
foreignId: string;
|
|
5
|
-
createIfNotFound?: boolean;
|
|
6
|
-
include?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function fetchEntityByForeignId(client: SublayHttpClient, data: FetchEntityByForeignIdProps): Promise<Entity>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
export interface FetchEntityByShortIdProps {
|
|
4
|
-
shortId: string;
|
|
5
|
-
include?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function fetchEntityByShortId(client: SublayHttpClient, data: FetchEntityByShortIdProps): Promise<Entity>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
import { SpaceReputationContextParams } from "../../interfaces/SpaceReputation";
|
|
5
|
-
export interface KeywordsFilters {
|
|
6
|
-
includes?: string[];
|
|
7
|
-
doesNotInclude?: string[];
|
|
8
|
-
}
|
|
9
|
-
export interface MetadataFilters {
|
|
10
|
-
includes?: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
};
|
|
13
|
-
includesAny?: {
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}[];
|
|
16
|
-
doesNotInclude?: {
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
};
|
|
19
|
-
exists?: string[];
|
|
20
|
-
doesNotExist?: string[];
|
|
21
|
-
}
|
|
22
|
-
export interface TextFilters {
|
|
23
|
-
hasTitle?: "true" | "false";
|
|
24
|
-
includes?: string | string[];
|
|
25
|
-
doesNotInclude?: string | string[];
|
|
26
|
-
}
|
|
27
|
-
export interface AttachmentsFilters {
|
|
28
|
-
hasAttachments?: "true" | "false";
|
|
29
|
-
}
|
|
30
|
-
export interface LocationFilters {
|
|
31
|
-
latitude: string;
|
|
32
|
-
longitude: string;
|
|
33
|
-
radius: string;
|
|
34
|
-
}
|
|
35
|
-
export interface FetchManyEntitiesProps extends SpaceReputationContextParams {
|
|
36
|
-
sourceId?: string;
|
|
37
|
-
spaceId?: string;
|
|
38
|
-
sortBy?: "createdAt" | "hot" | "top" | "controversial"
|
|
39
|
-
/** @deprecated Use "createdAt" instead. "new" is a directional alias removed
|
|
40
|
-
* in v8; the server still accepts it (identical behavior) but responds with
|
|
41
|
-
* deprecation headers. */
|
|
42
|
-
| "new" | (string & {});
|
|
43
|
-
sortDir?: "asc" | "desc";
|
|
44
|
-
sortType?: "auto" | "numeric" | "text" | "boolean" | "timestamp";
|
|
45
|
-
sortByReaction?: "upvote" | "downvote" | "like" | "love" | "wow" | "sad" | "angry" | "funny";
|
|
46
|
-
page?: number;
|
|
47
|
-
limit?: number;
|
|
48
|
-
include?: string;
|
|
49
|
-
timeFrame?: "hour" | "day" | "week" | "month" | "year";
|
|
50
|
-
userId?: string;
|
|
51
|
-
followedOnly?: "true" | "false";
|
|
52
|
-
keywordsFilters?: KeywordsFilters;
|
|
53
|
-
metadataFilters?: MetadataFilters;
|
|
54
|
-
titleFilters?: TextFilters;
|
|
55
|
-
contentFilters?: {
|
|
56
|
-
hasContent?: "true" | "false";
|
|
57
|
-
includes?: string | string[];
|
|
58
|
-
doesNotInclude?: string | string[];
|
|
59
|
-
};
|
|
60
|
-
attachmentsFilters?: AttachmentsFilters;
|
|
61
|
-
locationFilters?: LocationFilters;
|
|
62
|
-
nsfwFilter?: "include-all" | "exclude" | "only";
|
|
63
|
-
blockedFilter?: "exclude" | "include-outbound-blocked";
|
|
64
|
-
}
|
|
65
|
-
export declare function fetchManyEntities(client: SublayHttpClient, data: FetchManyEntitiesProps): Promise<PaginatedResponse<Entity>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Reaction, ReactionType } from "../../interfaces/Reaction";
|
|
3
|
-
import { PaginationMetadata } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
import { SpaceReputationContextParams } from "../../interfaces/SpaceReputation";
|
|
5
|
-
export interface FetchEntityReactionsProps extends SpaceReputationContextParams {
|
|
6
|
-
entityId: string;
|
|
7
|
-
reactionType?: ReactionType;
|
|
8
|
-
page?: number;
|
|
9
|
-
limit?: number;
|
|
10
|
-
sortDir?: "asc" | "desc";
|
|
11
|
-
}
|
|
12
|
-
export interface FetchEntityReactionsResponse {
|
|
13
|
-
data: Reaction[];
|
|
14
|
-
pagination: PaginationMetadata;
|
|
15
|
-
}
|
|
16
|
-
export declare function fetchReactions(client: SublayHttpClient, data: FetchEntityReactionsProps): Promise<FetchEntityReactionsResponse>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { TopComment } from "../../interfaces/Entity";
|
|
3
|
-
export interface FetchTopCommentProps {
|
|
4
|
-
entityId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function fetchTopComment(client: SublayHttpClient, data: FetchTopCommentProps): Promise<TopComment | null>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { ReactionType } from "../../interfaces/Reaction";
|
|
3
|
-
export interface GetUserEntityReactionProps {
|
|
4
|
-
entityId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface UserReactionResponse {
|
|
7
|
-
reactionType: ReactionType | null;
|
|
8
|
-
}
|
|
9
|
-
export declare function getUserReaction(client: SublayHttpClient, data: GetUserEntityReactionProps): Promise<UserReactionResponse>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { createEntity } from "./createEntity";
|
|
2
|
-
export { fetchEntity } from "./fetchEntity";
|
|
3
|
-
export { fetchEntityByForeignId } from "./fetchEntityByForeignId";
|
|
4
|
-
export { fetchEntityByShortId } from "./fetchEntityByShortId";
|
|
5
|
-
export { fetchManyEntities } from "./fetchManyEntities";
|
|
6
|
-
export { updateEntity } from "./updateEntity";
|
|
7
|
-
export { deleteEntity } from "./deleteEntity";
|
|
8
|
-
export { fetchDrafts } from "./fetchDrafts";
|
|
9
|
-
export { publishDraft } from "./publishDraft";
|
|
10
|
-
export { fetchTopComment } from "./fetchTopComment";
|
|
11
|
-
export { addReaction } from "./addReaction";
|
|
12
|
-
export { removeReaction } from "./removeReaction";
|
|
13
|
-
export { fetchReactions } from "./fetchReactions";
|
|
14
|
-
export { getUserReaction } from "./getUserReaction";
|
|
15
|
-
export { isEntitySaved } from "./isEntitySaved";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
export interface IsEntitySavedProps {
|
|
3
|
-
entityId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IsEntitySavedResponse {
|
|
6
|
-
saved: boolean;
|
|
7
|
-
collections: {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}[];
|
|
11
|
-
}
|
|
12
|
-
export declare function isEntitySaved(client: SublayHttpClient, data: IsEntitySavedProps): Promise<IsEntitySavedResponse>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
export interface PublishDraftProps {
|
|
4
|
-
entityId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function publishDraft(client: SublayHttpClient, data: PublishDraftProps): Promise<Entity>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
export interface RemoveEntityReactionProps {
|
|
4
|
-
entityId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function removeReaction(client: SublayHttpClient, data: RemoveEntityReactionProps): Promise<Entity>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
import { Mention } from "../../interfaces/Mention";
|
|
4
|
-
export interface UpdateEntityProps {
|
|
5
|
-
entityId: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
content?: string;
|
|
8
|
-
attachments?: Record<string, any>[];
|
|
9
|
-
keywords?: string[];
|
|
10
|
-
mentions?: Mention[];
|
|
11
|
-
location?: {
|
|
12
|
-
latitude: number;
|
|
13
|
-
longitude: number;
|
|
14
|
-
};
|
|
15
|
-
metadata?: Record<string, any>;
|
|
16
|
-
nsfw?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare function updateEntity(client: SublayHttpClient, data: UpdateEntityProps): Promise<Entity>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Event } from "../../interfaces/Event";
|
|
3
|
-
export interface AddHostProps {
|
|
4
|
-
eventId: string;
|
|
5
|
-
/** The user to grant host on the event. */
|
|
6
|
-
userId: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function addHost(client: SublayHttpClient, data: AddHostProps): Promise<Event>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Event } from "../../interfaces/Event";
|
|
3
|
-
export interface AddInviteProps {
|
|
4
|
-
eventId: string;
|
|
5
|
-
/** The user to invite (userId only — never a foreignId). Idempotent. */
|
|
6
|
-
userId: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function addInvite(client: SublayHttpClient, data: AddInviteProps): Promise<Event>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Event, EventType, EventVisibility } from "../../interfaces/Event";
|
|
3
|
-
import { ImageOptions } from "../../interfaces/ImageProcessing";
|
|
4
|
-
/** A single cover image plus its processing options (stored as Event.coverImageId). */
|
|
5
|
-
export interface EventCoverUpload {
|
|
6
|
-
file: Blob | File;
|
|
7
|
-
/** Image-processing config (must include `mode`) — see {@link ImageOptions}. */
|
|
8
|
-
options: ImageOptions;
|
|
9
|
-
}
|
|
10
|
-
/** A gallery image set plus shared processing options (Files with eventId + position). */
|
|
11
|
-
export interface EventGalleryUpload {
|
|
12
|
-
files: (Blob | File)[];
|
|
13
|
-
/** Image-processing config applied to every gallery image — see {@link ImageOptions}. */
|
|
14
|
-
options: ImageOptions;
|
|
15
|
-
}
|
|
16
|
-
export interface CreateEventProps {
|
|
17
|
-
title: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
startTime: string;
|
|
20
|
-
endTime?: string;
|
|
21
|
-
timezone?: string;
|
|
22
|
-
type: EventType;
|
|
23
|
-
url?: string;
|
|
24
|
-
venueName?: string;
|
|
25
|
-
address?: string;
|
|
26
|
-
location?: {
|
|
27
|
-
latitude: number;
|
|
28
|
-
longitude: number;
|
|
29
|
-
};
|
|
30
|
-
spaceId?: string;
|
|
31
|
-
visibility?: EventVisibility;
|
|
32
|
-
capacity?: number;
|
|
33
|
-
allowMaybe?: boolean;
|
|
34
|
-
guestListVisible?: boolean;
|
|
35
|
-
/** Additional host user IDs (the logged-in user is auto-added as a host). */
|
|
36
|
-
hostIds?: string[];
|
|
37
|
-
metadata?: Record<string, any>;
|
|
38
|
-
/**
|
|
39
|
-
* Inline cover image (single). When present the request is sent as
|
|
40
|
-
* `multipart/form-data`. Requires the `files-images` bundle.
|
|
41
|
-
*/
|
|
42
|
-
cover?: EventCoverUpload;
|
|
43
|
-
/**
|
|
44
|
-
* Inline gallery images (multi). When present the request is sent as
|
|
45
|
-
* `multipart/form-data`. Requires the `files-images` bundle.
|
|
46
|
-
*/
|
|
47
|
-
gallery?: EventGalleryUpload;
|
|
48
|
-
}
|
|
49
|
-
export declare function createEvent(client: SublayHttpClient, data: CreateEventProps): Promise<Event>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Event } from "../../interfaces/Event";
|
|
3
|
-
export interface FetchEventProps {
|
|
4
|
-
eventId: string;
|
|
5
|
-
/** Comma-separated associations to expand, e.g. "user,space,files,userRsvp". */
|
|
6
|
-
include?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function fetchEvent(client: SublayHttpClient, data: FetchEventProps): Promise<Event>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { EventRsvp } from "../../interfaces/Event";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
export interface FetchEventRsvpsProps {
|
|
5
|
-
eventId: string;
|
|
6
|
-
page?: number;
|
|
7
|
-
limit?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Comma-separated RSVP statuses to filter by, e.g. "going,maybe". When
|
|
10
|
-
* omitted, all statuses are returned.
|
|
11
|
-
*/
|
|
12
|
-
status?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Named RSVP (guest) list. Visible to hosts always, or to any viewer when the
|
|
16
|
-
* event's `guestListVisible` is true; otherwise 403. RSVP counts themselves are
|
|
17
|
-
* public via the event's `rsvpCounts`.
|
|
18
|
-
*/
|
|
19
|
-
export declare function fetchEventRsvps(client: SublayHttpClient, data: FetchEventRsvpsProps): Promise<PaginatedResponse<EventRsvp>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { EventInvite } from "../../interfaces/Event";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
export interface FetchInviteesProps {
|
|
5
|
-
eventId: string;
|
|
6
|
-
page?: number;
|
|
7
|
-
limit?: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Host-only invitee (guest) list. Non-hosts get 403.
|
|
11
|
-
*/
|
|
12
|
-
export declare function fetchInvitees(client: SublayHttpClient, data: FetchInviteesProps): Promise<PaginatedResponse<EventInvite>>;
|