@queuebase/core 1.5.1 → 1.6.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/index.cjs +8 -0
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
DEFAULT_DEV_API_URL: () => DEFAULT_DEV_API_URL,
|
|
24
|
+
DEFAULT_PROD_API_URL: () => DEFAULT_PROD_API_URL,
|
|
23
25
|
JobFailureError: () => JobFailureError,
|
|
24
26
|
WEBHOOK_HEADERS: () => WEBHOOK_HEADERS,
|
|
25
27
|
calculateBackoff: () => calculateBackoff,
|
|
@@ -1030,8 +1032,14 @@ async function processJobCallback(router, request, options) {
|
|
|
1030
1032
|
return { status: 500, body: { success: false, error: message } };
|
|
1031
1033
|
}
|
|
1032
1034
|
}
|
|
1035
|
+
|
|
1036
|
+
// src/index.ts
|
|
1037
|
+
var DEFAULT_DEV_API_URL = "http://localhost:3847";
|
|
1038
|
+
var DEFAULT_PROD_API_URL = "https://api.queuebase.com";
|
|
1033
1039
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1034
1040
|
0 && (module.exports = {
|
|
1041
|
+
DEFAULT_DEV_API_URL,
|
|
1042
|
+
DEFAULT_PROD_API_URL,
|
|
1035
1043
|
JobFailureError,
|
|
1036
1044
|
WEBHOOK_HEADERS,
|
|
1037
1045
|
calculateBackoff,
|
package/dist/index.d.cts
CHANGED
|
@@ -143,7 +143,7 @@ interface QueuebaseConfig {
|
|
|
143
143
|
jobsDir: string;
|
|
144
144
|
/** URL where the queuebase API can callback to execute jobs */
|
|
145
145
|
callbackUrl?: string;
|
|
146
|
-
/** API key for production (from queuebase.
|
|
146
|
+
/** API key for production (from queuebase.com) */
|
|
147
147
|
apiKey?: string;
|
|
148
148
|
/** Override the API endpoint (auto-detected by NODE_ENV) */
|
|
149
149
|
apiUrl?: string;
|
|
@@ -319,4 +319,7 @@ declare function processJobCallback(router: Record<string, AnyJobDefinition>, re
|
|
|
319
319
|
webhookSecret?: string;
|
|
320
320
|
}): Promise<HandlerResponse>;
|
|
321
321
|
|
|
322
|
-
|
|
322
|
+
declare const DEFAULT_DEV_API_URL = "http://localhost:3847";
|
|
323
|
+
declare const DEFAULT_PROD_API_URL = "https://api.queuebase.com";
|
|
324
|
+
|
|
325
|
+
export { type AnyJobDefinition, type BackoffStrategy, type CallableJob, type CallableJobRouter, DEFAULT_DEV_API_URL, DEFAULT_PROD_API_URL, type EnqueueOptions, type EnqueueResult, type HandlerRequest, type HandlerResponse, type InferJobInput, type InferJobOutput, type JobClient, type JobContext, type JobDefinition, JobFailureError, type JobResult, type JobRouter, type JobStatus, type JobStatusResponse, type OverlapPolicy, type QueuebaseConfig, type QueuedJob, type ResolvedSchedule, type ScheduleConfig, type ScheduleInput, type ScheduleMetadata, WEBHOOK_HEADERS, calculateBackoff, createJobRouter, extractSchedules, generateJobId, generatePublicId, job, nextRun, nextRuns, parseDelay, parsePlainEnglish, processJobCallback, resolveSchedule, signPayload, validateCron, verifySignature };
|
package/dist/index.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ interface QueuebaseConfig {
|
|
|
143
143
|
jobsDir: string;
|
|
144
144
|
/** URL where the queuebase API can callback to execute jobs */
|
|
145
145
|
callbackUrl?: string;
|
|
146
|
-
/** API key for production (from queuebase.
|
|
146
|
+
/** API key for production (from queuebase.com) */
|
|
147
147
|
apiKey?: string;
|
|
148
148
|
/** Override the API endpoint (auto-detected by NODE_ENV) */
|
|
149
149
|
apiUrl?: string;
|
|
@@ -319,4 +319,7 @@ declare function processJobCallback(router: Record<string, AnyJobDefinition>, re
|
|
|
319
319
|
webhookSecret?: string;
|
|
320
320
|
}): Promise<HandlerResponse>;
|
|
321
321
|
|
|
322
|
-
|
|
322
|
+
declare const DEFAULT_DEV_API_URL = "http://localhost:3847";
|
|
323
|
+
declare const DEFAULT_PROD_API_URL = "https://api.queuebase.com";
|
|
324
|
+
|
|
325
|
+
export { type AnyJobDefinition, type BackoffStrategy, type CallableJob, type CallableJobRouter, DEFAULT_DEV_API_URL, DEFAULT_PROD_API_URL, type EnqueueOptions, type EnqueueResult, type HandlerRequest, type HandlerResponse, type InferJobInput, type InferJobOutput, type JobClient, type JobContext, type JobDefinition, JobFailureError, type JobResult, type JobRouter, type JobStatus, type JobStatusResponse, type OverlapPolicy, type QueuebaseConfig, type QueuedJob, type ResolvedSchedule, type ScheduleConfig, type ScheduleInput, type ScheduleMetadata, WEBHOOK_HEADERS, calculateBackoff, createJobRouter, extractSchedules, generateJobId, generatePublicId, job, nextRun, nextRuns, parseDelay, parsePlainEnglish, processJobCallback, resolveSchedule, signPayload, validateCron, verifySignature };
|
package/dist/index.js
CHANGED
|
@@ -988,7 +988,13 @@ async function processJobCallback(router, request, options) {
|
|
|
988
988
|
return { status: 500, body: { success: false, error: message } };
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
|
+
|
|
992
|
+
// src/index.ts
|
|
993
|
+
var DEFAULT_DEV_API_URL = "http://localhost:3847";
|
|
994
|
+
var DEFAULT_PROD_API_URL = "https://api.queuebase.com";
|
|
991
995
|
export {
|
|
996
|
+
DEFAULT_DEV_API_URL,
|
|
997
|
+
DEFAULT_PROD_API_URL,
|
|
992
998
|
JobFailureError,
|
|
993
999
|
WEBHOOK_HEADERS,
|
|
994
1000
|
calculateBackoff,
|