- Implemented a modal for sending and managing friend requests, allowing users to send, accept, decline, or ignore requests. - Enhanced user status management by integrating real-time updates for online, busy, offline, and away statuses. - Updated the API and database schema to support new friend request and user status features. - Improved socket management for better connection handling and user experience. - Refactored UI components to accommodate new functionalities while maintaining consistency.
58 lines
1.3 KiB
TypeScript
58 lines
1.3 KiB
TypeScript
/* eslint-disable */
|
|
/**
|
|
* Generated `api` utility.
|
|
*
|
|
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
*
|
|
* To regenerate, run `npx convex dev`.
|
|
* @module
|
|
*/
|
|
|
|
import type * as adapter from "../adapter.js";
|
|
import type * as auth from "../auth.js";
|
|
import type * as olm_index from "../olm/index.js";
|
|
import type * as schemas_user from "../schemas/user.js";
|
|
import type * as user_index from "../user/index.js";
|
|
|
|
import type {
|
|
ApiFromModules,
|
|
FilterApi,
|
|
FunctionReference,
|
|
} from "convex/server";
|
|
import { anyApi, componentsGeneric } from "convex/server";
|
|
|
|
const fullApi: ApiFromModules<{
|
|
adapter: typeof adapter;
|
|
auth: typeof auth;
|
|
"olm/index": typeof olm_index;
|
|
"schemas/user": typeof schemas_user;
|
|
"user/index": typeof user_index;
|
|
}> = anyApi as any;
|
|
|
|
/**
|
|
* A utility for referencing Convex functions in your app's public API.
|
|
*
|
|
* Usage:
|
|
* ```js
|
|
* const myFunctionReference = api.myModule.myFunction;
|
|
* ```
|
|
*/
|
|
export const api: FilterApi<
|
|
typeof fullApi,
|
|
FunctionReference<any, "public">
|
|
> = anyApi as any;
|
|
|
|
/**
|
|
* A utility for referencing Convex functions in your app's internal API.
|
|
*
|
|
* Usage:
|
|
* ```js
|
|
* const myFunctionReference = internal.myModule.myFunction;
|
|
* ```
|
|
*/
|
|
export const internal: FilterApi<
|
|
typeof fullApi,
|
|
FunctionReference<any, "internal">
|
|
> = anyApi as any;
|
|
|
|
export const components = componentsGeneric() as unknown as {};
|