@bull-board/api
Advanced tools
Comparing version 5.21.7 to 5.22.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.entryPoint = entryPoint; | ||
exports.entryPoint = void 0; | ||
function entryPoint(params) { | ||
@@ -21,2 +21,3 @@ var _a, _b; | ||
} | ||
exports.entryPoint = entryPoint; | ||
//# sourceMappingURL=entryPoint.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.errorHandler = errorHandler; | ||
exports.errorHandler = void 0; | ||
function errorHandler(error) { | ||
@@ -14,2 +14,3 @@ return { | ||
} | ||
exports.errorHandler = errorHandler; | ||
//# sourceMappingURL=error.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.formatJob = void 0; | ||
exports.queuesHandler = queuesHandler; | ||
exports.queuesHandler = exports.formatJob = void 0; | ||
const formatJob = (job, queue) => { | ||
@@ -76,2 +75,3 @@ const jobProps = job.toJSON(); | ||
} | ||
exports.queuesHandler = queuesHandler; | ||
//# sourceMappingURL=queues.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.redisStatsHandler = redisStatsHandler; | ||
exports.redisStatsHandler = void 0; | ||
const redis_info_1 = require("redis-info"); | ||
@@ -33,2 +33,3 @@ async function getStats(queue) { | ||
} | ||
exports.redisStatsHandler = redisStatsHandler; | ||
//# sourceMappingURL=redisStats.js.map |
@@ -8,6 +8,6 @@ import { BoardOptions, IServerAdapter } from '../typings/app'; | ||
}): { | ||
setQueues: (newBullQueues: ReadonlyArray<BaseAdapter>) => void; | ||
replaceQueues: (newBullQueues: ReadonlyArray<BaseAdapter>) => void; | ||
setQueues: (newBullQueues: readonly BaseAdapter[]) => void; | ||
replaceQueues: (newBullQueues: readonly BaseAdapter[]) => void; | ||
addQueue: (queue: BaseAdapter) => void; | ||
removeQueue: (queueOrName: string | BaseAdapter) => void; | ||
}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createBullBoard = createBullBoard; | ||
exports.createBullBoard = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
@@ -32,2 +32,3 @@ const error_1 = require("./handlers/error"); | ||
} | ||
exports.createBullBoard = createBullBoard; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.jobProvider = jobProvider; | ||
exports.jobProvider = void 0; | ||
function jobProvider(next) { | ||
@@ -19,2 +19,3 @@ return async (req, queue) => { | ||
} | ||
exports.jobProvider = jobProvider; | ||
//# sourceMappingURL=job.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.queueProvider = queueProvider; | ||
exports.queueProvider = void 0; | ||
function queueProvider(next, { skipReadOnlyModeCheck = false, } = {}) { | ||
@@ -20,2 +20,3 @@ return async (req) => { | ||
} | ||
exports.queueProvider = queueProvider; | ||
//# sourceMappingURL=queue.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getQueuesApi = getQueuesApi; | ||
exports.getQueuesApi = void 0; | ||
function getQueuesApi(queues) { | ||
@@ -32,2 +32,3 @@ const bullBoardQueues = new Map(); | ||
} | ||
exports.getQueuesApi = getQueuesApi; | ||
//# sourceMappingURL=queuesApi.js.map |
@@ -19,2 +19,3 @@ "use strict"; | ||
const promoteAll_1 = require("./handlers/promoteAll"); | ||
const updateJobData_1 = require("./handlers/updateJobData"); | ||
exports.appRoutes = { | ||
@@ -89,4 +90,9 @@ entryPoint: { | ||
}, | ||
{ | ||
method: 'patch', | ||
route: '/api/queues/:queueName/:jobId/update-data', | ||
handler: updateJobData_1.updateJobDataHandler, | ||
}, | ||
], | ||
}; | ||
//# sourceMappingURL=routes.js.map |
@@ -29,2 +29,4 @@ import { RedisInfo } from 'redis-info'; | ||
getState(): Promise<Status | 'stuck' | 'waiting-children' | 'prioritized' | 'unknown'>; | ||
update?(jobData: Record<string, any>): Promise<void>; | ||
updateData?(jobData: Record<string, any>): Promise<void>; | ||
} | ||
@@ -100,3 +102,3 @@ export interface QueueJobJson { | ||
} | ||
export type HTTPMethod = 'get' | 'post' | 'put'; | ||
export type HTTPMethod = 'get' | 'post' | 'put' | 'patch'; | ||
export type HTTPStatus = 200 | 204 | 404 | 405 | 500; | ||
@@ -103,0 +105,0 @@ export interface BullBoardRequest { |
{ | ||
"name": "@bull-board/api", | ||
"version": "5.21.7", | ||
"version": "5.22.0", | ||
"description": "A Dashboard server API built on top of bull or bullmq.", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@bull-board/ui": "5.21.7" | ||
"@bull-board/ui": "5.22.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65868
93
1093