@bull-board/api
Advanced tools
Comparing version 4.8.0 to 4.9.0
@@ -0,6 +1,7 @@ | ||
import { BoardOptions, IServerAdapter } from '../typings/app'; | ||
import { BaseAdapter } from './queueAdapters/base'; | ||
import { IServerAdapter } from '../typings/app'; | ||
export declare function createBullBoard({ queues, serverAdapter, }: { | ||
export declare function createBullBoard({ queues, serverAdapter, options, }: { | ||
queues: ReadonlyArray<BaseAdapter>; | ||
serverAdapter: IServerAdapter; | ||
options?: BoardOptions; | ||
}): { | ||
@@ -7,0 +8,0 @@ setQueues: (newBullQueues: readonly BaseAdapter[]) => void; |
@@ -7,7 +7,7 @@ "use strict"; | ||
exports.createBullBoard = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
const error_1 = require("./handlers/error"); | ||
const queuesApi_1 = require("./queuesApi"); | ||
const path_1 = __importDefault(require("path")); | ||
const routes_1 = require("./routes"); | ||
const error_1 = require("./handlers/error"); | ||
function createBullBoard({ queues, serverAdapter, }) { | ||
function createBullBoard({ queues, serverAdapter, options = { uiConfig: {} }, }) { | ||
const { bullBoardQueues, setQueues, replaceQueues, addQueue, removeQueue } = (0, queuesApi_1.getQueuesApi)(queues); | ||
@@ -19,2 +19,3 @@ const uiBasePath = path_1.default.dirname(eval(`require.resolve('@bull-board/ui/package.json')`)); | ||
.setStaticPath('/static', path_1.default.join(uiBasePath, 'dist/static')) | ||
.setUIConfig(options.uiConfig) | ||
.setEntryRoute(routes_1.appRoutes.entryPoint) | ||
@@ -21,0 +22,0 @@ .setErrorHandler(error_1.errorHandler) |
import { RedisInfo } from 'redis-info'; | ||
import { STATUSES } from '../src/constants/statuses'; | ||
import { BaseAdapter } from '../src/queueAdapters/base'; | ||
import { STATUSES } from '../src/constants/statuses'; | ||
export type JobCleanStatus = 'completed' | 'wait' | 'active' | 'delayed' | 'failed'; | ||
@@ -118,2 +118,3 @@ export type Status = keyof typeof STATUSES; | ||
setApiRoutes(routes: AppControllerRoute[]): IServerAdapter; | ||
setUIConfig(config: UIConfig): IServerAdapter; | ||
} | ||
@@ -128,1 +129,12 @@ export interface Pagination { | ||
export type FormatterField = 'data' | 'returnValue' | 'name'; | ||
export type BoardOptions = { | ||
uiConfig: UIConfig; | ||
}; | ||
export type UIConfig = Partial<{ | ||
boardTitle: string; | ||
boardLogo: { | ||
path: string; | ||
width?: number | string; | ||
height?: number | string; | ||
}; | ||
}>; |
{ | ||
"name": "@bull-board/api", | ||
"version": "4.8.0", | ||
"version": "4.9.0", | ||
"description": "Core server APIs of bull-board", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
52694
837