@rpcbase/server 0.485.0 → 0.486.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/applyRouteLoaders.d.ts +1 -1
- package/dist/notifications/api/notifications/handler.d.ts +1 -1
- package/dist/notifications/api/notifications/index.d.ts +1 -1
- package/dist/notifications/api/notifications/shared.d.ts +1 -1
- package/dist/notifications/createNotification.d.ts +1 -1
- package/dist/notifications/digest.d.ts +1 -1
- package/dist/renderSSR.d.ts +1 -1
- package/dist/rts/api/changes/handler.d.ts +1 -1
- package/dist/rts/api/changes/index.d.ts +1 -1
- package/dist/rts/index.d.ts +1 -1
- package/dist/ssrMiddleware.d.ts +2 -2
- package/dist/uploads/api/file-uploads/handler.d.ts +1 -1
- package/dist/uploads/api/file-uploads/handlers/completeUpload.d.ts +1 -1
- package/dist/uploads/api/file-uploads/handlers/getStatus.d.ts +1 -1
- package/dist/uploads/api/file-uploads/handlers/initUpload.d.ts +1 -1
- package/dist/uploads/api/file-uploads/handlers/uploadChunk.d.ts +1 -1
- package/dist/uploads/api/file-uploads/index.d.ts +1 -1
- package/dist/uploads/api/file-uploads/shared.d.ts +4 -4
- package/dist/uploads/api/files/handler.d.ts +1 -1
- package/dist/uploads/api/files/handlers/deleteFile.d.ts +1 -1
- package/dist/uploads/api/files/handlers/getFile.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request } from 'express';
|
|
2
|
-
import { StaticHandlerContext } from '
|
|
2
|
+
import { StaticHandlerContext } from '@rpcbase/router';
|
|
3
3
|
export type RouterContextWithRedirect = StaticHandlerContext & {
|
|
4
4
|
redirectResponse?: Response;
|
|
5
5
|
redirectRouteId?: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from '
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const ListRoute = "/api/rb/notifications";
|
|
3
3
|
export declare const CreateRoute = "/api/rb/notifications/create";
|
|
4
4
|
export declare const MarkReadRoute = "/api/rb/notifications/:notificationId/read";
|
package/dist/renderSSR.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { StaticHandler } from '
|
|
2
|
+
import { StaticHandler } from '@rpcbase/router';
|
|
3
3
|
import * as express from "express";
|
|
4
4
|
export declare function renderSSR(req: express.Request, dataRoutes: StaticHandler["dataRoutes"]): Promise<{
|
|
5
5
|
element: ReactNode | null;
|
package/dist/rts/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Server as HttpServer } from 'node:http';
|
|
2
2
|
import { RequestHandler } from 'express';
|
|
3
|
-
import { AppAbility } from '
|
|
3
|
+
import { AppAbility } from '@rpcbase/db/acl';
|
|
4
4
|
import { WebSocket } from 'ws';
|
|
5
5
|
type SocketMeta = {
|
|
6
6
|
tenantId: string;
|
package/dist/ssrMiddleware.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SsrErrorStatePayload } from '
|
|
2
|
-
import { StaticHandler } from '
|
|
1
|
+
import { SsrErrorStatePayload } from '@rpcbase/client';
|
|
2
|
+
import { StaticHandler } from '@rpcbase/router';
|
|
3
3
|
import { createServer } from 'vite';
|
|
4
4
|
import { ComponentType } from 'react';
|
|
5
5
|
import { NextFunction, Request, Response } from 'express';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiHandler } from '
|
|
1
|
+
import { ApiHandler } from '@rpcbase/api';
|
|
2
2
|
import { SessionUser } from '../shared';
|
|
3
3
|
import * as Uploads from "../index";
|
|
4
4
|
export declare const completeUpload: ApiHandler<Record<string, never>, Uploads.CompleteResponsePayload, SessionUser>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiHandler } from '
|
|
1
|
+
import { ApiHandler } from '@rpcbase/api';
|
|
2
2
|
import { SessionUser } from '../shared';
|
|
3
3
|
import * as Uploads from "../index";
|
|
4
4
|
export declare const getStatus: ApiHandler<Record<string, never>, Uploads.StatusResponsePayload, SessionUser>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiHandler } from '
|
|
1
|
+
import { ApiHandler } from '@rpcbase/api';
|
|
2
2
|
import { SessionUser } from '../shared';
|
|
3
3
|
import * as Uploads from "../index";
|
|
4
4
|
export declare const initUpload: ApiHandler<Uploads.InitRequestPayload, Uploads.InitResponsePayload, SessionUser>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from '
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const InitRoute = "/api/rb/file-uploads";
|
|
3
3
|
export declare const ChunkRoute = "/api/rb/file-uploads/:uploadId/chunks/:index";
|
|
4
4
|
export declare const StatusRoute = "/api/rb/file-uploads/:uploadId/status";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Ctx } from '
|
|
2
|
-
import { IRBUploadChunk, IRBUploadSession, LoadModelCtx } from '
|
|
3
|
-
import { AppAbility } from '
|
|
4
|
-
import { Model } from '
|
|
1
|
+
import { Ctx } from '@rpcbase/api';
|
|
2
|
+
import { IRBUploadChunk, IRBUploadSession, LoadModelCtx } from '@rpcbase/db';
|
|
3
|
+
import { AppAbility } from '@rpcbase/db/acl';
|
|
4
|
+
import { Model } from 'mongoose';
|
|
5
5
|
export type SessionUser = {
|
|
6
6
|
id?: string;
|
|
7
7
|
currentTenantId?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiHandler } from '
|
|
1
|
+
import { ApiHandler } from '@rpcbase/api';
|
|
2
2
|
import { SessionUser } from '../../file-uploads/shared';
|
|
3
3
|
export declare const getFile: ApiHandler<Record<string, never>, Record<string, never>, SessionUser>;
|
|
4
4
|
//# sourceMappingURL=getFile.d.ts.map
|