@queuedash/api
Advanced tools
| import type { FastifyInstance } from "fastify"; | ||
| import type { Context } from "../trpc"; | ||
| export declare function createQueueDashFastifyMiddleware({ baseUrl, server, ctx, }: { | ||
| server: FastifyInstance; | ||
| ctx: Context; | ||
| baseUrl: string; | ||
| }): void; | ||
| //# sourceMappingURL=fastify.d.ts.map |
@@ -1,5 +0,8 @@ | ||
| import type { Handler } from "express"; | ||
| export declare function createExpressMiddleware({ apiUrl, }: { | ||
| apiUrl: string; | ||
| }): Handler; | ||
| import type { Express } from "express"; | ||
| import type { Context } from "../trpc"; | ||
| export declare function createQueueDashExpressMiddleware({ baseUrl, app, ctx, }: { | ||
| app: Express; | ||
| ctx: Context; | ||
| baseUrl: string; | ||
| }): void; | ||
| //# sourceMappingURL=express.d.ts.map |
| export * from "./routers/_app"; | ||
| export * from "./adapters/express"; | ||
| export * from "./adapters/fastify"; | ||
| //# sourceMappingURL=main.d.ts.map |
@@ -224,2 +224,44 @@ export type { Context } from "../trpc"; | ||
| }>; | ||
| bulkRemove: import("@trpc/server").BuildProcedure<"mutation", { | ||
| _config: import("@trpc/server").RootConfig<{ | ||
| ctx: import("../trpc").Context; | ||
| meta: object; | ||
| errorShape: import("@trpc/server").DefaultErrorShape; | ||
| transformer: import("@trpc/server").DefaultDataTransformer; | ||
| }>; | ||
| _meta: object; | ||
| _ctx_out: import("../trpc").Context; | ||
| _input_in: { | ||
| queueName: string; | ||
| jobIds: string[]; | ||
| }; | ||
| _input_out: { | ||
| queueName: string; | ||
| jobIds: string[]; | ||
| }; | ||
| _output_in: typeof import("@trpc/server").unsetMarker; | ||
| _output_out: typeof import("@trpc/server").unsetMarker; | ||
| }, { | ||
| id: string; | ||
| name: string; | ||
| data: object; | ||
| opts: { | ||
| priority?: number | undefined; | ||
| delay?: number | undefined; | ||
| attempts?: number | undefined; | ||
| backoff?: number | undefined; | ||
| lifo?: boolean | undefined; | ||
| timeout?: number | undefined; | ||
| removeOnComplete?: number | boolean | undefined; | ||
| removeOnFail?: number | boolean | undefined; | ||
| stackTraceLimit?: number | undefined; | ||
| preventParsingData?: boolean | undefined; | ||
| }; | ||
| createdAt: Date; | ||
| processedAt: Date | null; | ||
| finishedAt: Date | null; | ||
| failedReason?: string | undefined; | ||
| stacktrace?: string[] | undefined; | ||
| retriedAt: Date | null; | ||
| }[]>; | ||
| list: import("@trpc/server").BuildProcedure<"query", { | ||
@@ -226,0 +268,0 @@ _config: import("@trpc/server").RootConfig<{ |
@@ -217,2 +217,44 @@ export declare const jobRouter: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{ | ||
| }>; | ||
| bulkRemove: import("@trpc/server").BuildProcedure<"mutation", { | ||
| _config: import("@trpc/server").RootConfig<{ | ||
| ctx: import("../trpc").Context; | ||
| meta: object; | ||
| errorShape: import("@trpc/server").DefaultErrorShape; | ||
| transformer: import("@trpc/server").DefaultDataTransformer; | ||
| }>; | ||
| _meta: object; | ||
| _ctx_out: import("../trpc").Context; | ||
| _input_in: { | ||
| queueName: string; | ||
| jobIds: string[]; | ||
| }; | ||
| _input_out: { | ||
| queueName: string; | ||
| jobIds: string[]; | ||
| }; | ||
| _output_in: typeof import("@trpc/server").unsetMarker; | ||
| _output_out: typeof import("@trpc/server").unsetMarker; | ||
| }, { | ||
| id: string; | ||
| name: string; | ||
| data: object; | ||
| opts: { | ||
| priority?: number | undefined; | ||
| delay?: number | undefined; | ||
| attempts?: number | undefined; | ||
| backoff?: number | undefined; | ||
| lifo?: boolean | undefined; | ||
| timeout?: number | undefined; | ||
| removeOnComplete?: number | boolean | undefined; | ||
| removeOnFail?: number | boolean | undefined; | ||
| stackTraceLimit?: number | undefined; | ||
| preventParsingData?: boolean | undefined; | ||
| }; | ||
| createdAt: Date; | ||
| processedAt: Date | null; | ||
| finishedAt: Date | null; | ||
| failedReason?: string | undefined; | ||
| stacktrace?: string[] | undefined; | ||
| retriedAt: Date | null; | ||
| }[]>; | ||
| list: import("@trpc/server").BuildProcedure<"query", { | ||
@@ -219,0 +261,0 @@ _config: import("@trpc/server").RootConfig<{ |
+14
-13
| { | ||
| "name": "@queuedash/api", | ||
| "version": "0.5.0", | ||
| "version": "0.6.0", | ||
| "main": "./dist/main.js", | ||
@@ -14,5 +14,5 @@ "module": "./dist/main.mjs", | ||
| "dependencies": { | ||
| "@trpc/server": "^10.12.0", | ||
| "@trpc/server": "^10.14.0", | ||
| "redis-info": "^3.1.0", | ||
| "zod": "^3.20.2" | ||
| "zod": "^3.20.6" | ||
| }, | ||
@@ -23,16 +23,17 @@ "devDependencies": { | ||
| "@types/express-serve-static-core": "^4.17.33", | ||
| "@types/node": "^18.11.14", | ||
| "@types/node": "^18.14.6", | ||
| "@types/redis-info": "^3.0.0", | ||
| "@typescript-eslint/eslint-plugin": "^5.46.1", | ||
| "@typescript-eslint/parser": "^5.46.1", | ||
| "@typescript-eslint/eslint-plugin": "^5.54.0", | ||
| "@typescript-eslint/parser": "^5.54.0", | ||
| "bee-queue": "^1.5.0", | ||
| "bull": "^4.10.2", | ||
| "bullmq": "^3.6.2", | ||
| "eslint": "^8.29.0", | ||
| "eslint-config-prettier": "^8.5.0", | ||
| "bull": "^4.10.4", | ||
| "bullmq": "^3.10.0", | ||
| "eslint": "^8.35.0", | ||
| "eslint-config-prettier": "^8.6.0", | ||
| "express": "^4.18.2", | ||
| "prettier": "^2.8.1", | ||
| "fastify": "^4.14.0", | ||
| "prettier": "^2.8.4", | ||
| "rollup-plugin-typescript-paths": "^1.4.0", | ||
| "typescript": "^4.9.4", | ||
| "vite": "^4.0.1", | ||
| "typescript": "^4.9.5", | ||
| "vite": "^4.1.4", | ||
| "vitest": "^0.25.8" | ||
@@ -39,0 +40,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
664478
11.63%17
6.25%10451
12.2%19
5.56%Updated
Updated