notifkit 0.1.4 → 0.1.6
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/README.md +171 -160
- package/dist/index.d.mts +5 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{main-BFre2-HQ.mjs → main-BnIX5nfp.mjs} +2 -2
- package/dist/{main-BFre2-HQ.mjs.map → main-BnIX5nfp.mjs.map} +1 -1
- package/dist/{main-BOPMYqsW.mjs → main-CWGEKpLU.mjs} +2 -2
- package/dist/{main-BOPMYqsW.mjs.map → main-CWGEKpLU.mjs.map} +1 -1
- package/dist/{main-DvgJSm11.mjs → main-Cwu4iQXc.mjs} +2 -2
- package/dist/{main-DvgJSm11.mjs.map → main-Cwu4iQXc.mjs.map} +1 -1
- package/dist/{main-BNJtzY61.mjs → main-DDbquL89.mjs} +2 -2
- package/dist/{main-BNJtzY61.mjs.map → main-DDbquL89.mjs.map} +1 -1
- package/dist/{main-40zwq6b0.mjs → main-Db2f2-sW.mjs} +2 -2
- package/dist/{main-40zwq6b0.mjs.map → main-Db2f2-sW.mjs.map} +1 -1
- package/dist/{main-CiigNpsP.mjs → main-DdLzptZE.mjs} +2 -2
- package/dist/{main-CiigNpsP.mjs.map → main-DdLzptZE.mjs.map} +1 -1
- package/dist/{main-DmCPcxOc.mjs → main-DfrrNKp9.mjs} +2 -2
- package/dist/{main-DmCPcxOc.mjs.map → main-DfrrNKp9.mjs.map} +1 -1
- package/dist/{main-DeNFQ-UL.mjs → main-DsDkyBZi.mjs} +2 -2
- package/dist/{main-DeNFQ-UL.mjs.map → main-DsDkyBZi.mjs.map} +1 -1
- package/dist/{src-vG79L-8m.mjs → src-CpUnBl_M.mjs} +18 -18
- package/dist/src-CpUnBl_M.mjs.map +1 -0
- package/package.json +6 -1
- package/scripts/create-project.mjs +61 -0
- package/src/config/index.ts +5 -1
- package/dist/src-vG79L-8m.mjs.map +0 -1
|
@@ -68,7 +68,7 @@ const baseConfigSchema = z.object({
|
|
|
68
68
|
HOST: z.string().default("127.0.0.1"),
|
|
69
69
|
REDIS_URL: z.string().url().default("redis://localhost:6379"),
|
|
70
70
|
DATABASE_URL: z.string().url().default("postgres://platform:platform@localhost:5432/notifkit"),
|
|
71
|
-
ADMIN_API_KEY: z.string().optional(),
|
|
71
|
+
ADMIN_API_KEY: z.string().trim().optional(),
|
|
72
72
|
WORKER_CONCURRENCY: z.coerce.number().int().min(1).default(10),
|
|
73
73
|
QUEUE_MAX_LEN: z.coerce.number().int().min(1).default(1e7),
|
|
74
74
|
DB_MAX_CONNECTIONS: z.coerce.number().int().min(1).default(2),
|
|
@@ -3373,35 +3373,35 @@ var NotifkitServer = class extends EventEmitter {
|
|
|
3373
3373
|
}
|
|
3374
3374
|
const startupPromises = [];
|
|
3375
3375
|
if (services.includes("api")) {
|
|
3376
|
-
const { startApiServer } = await import("./main-
|
|
3376
|
+
const { startApiServer } = await import("./main-Db2f2-sW.mjs");
|
|
3377
3377
|
startupPromises.push(startApiServer());
|
|
3378
3378
|
}
|
|
3379
3379
|
if (services.includes("delivery")) {
|
|
3380
|
-
const { startDeliveryWorker } = await import("./main-
|
|
3380
|
+
const { startDeliveryWorker } = await import("./main-DdLzptZE.mjs");
|
|
3381
3381
|
startupPromises.push(startDeliveryWorker());
|
|
3382
3382
|
}
|
|
3383
3383
|
if (services.includes("engine")) {
|
|
3384
|
-
const { startEngineWorker } = await import("./main-
|
|
3384
|
+
const { startEngineWorker } = await import("./main-CWGEKpLU.mjs");
|
|
3385
3385
|
startupPromises.push(startEngineWorker());
|
|
3386
3386
|
}
|
|
3387
3387
|
if (services.includes("enricher")) {
|
|
3388
|
-
const { startEnricherWorker } = await import("./main-
|
|
3388
|
+
const { startEnricherWorker } = await import("./main-DsDkyBZi.mjs");
|
|
3389
3389
|
startupPromises.push(startEnricherWorker());
|
|
3390
3390
|
}
|
|
3391
3391
|
if (services.includes("scheduler")) {
|
|
3392
|
-
const { startSchedulerWorker } = await import("./main-
|
|
3392
|
+
const { startSchedulerWorker } = await import("./main-Cwu4iQXc.mjs");
|
|
3393
3393
|
startupPromises.push(startSchedulerWorker());
|
|
3394
3394
|
}
|
|
3395
3395
|
if (services.includes("ai")) {
|
|
3396
|
-
const { startAiWorker } = await import("./main-
|
|
3396
|
+
const { startAiWorker } = await import("./main-DDbquL89.mjs");
|
|
3397
3397
|
startupPromises.push(startAiWorker());
|
|
3398
3398
|
}
|
|
3399
3399
|
if (services.includes("workflow")) {
|
|
3400
|
-
const { startWorkflowWorker } = await import("./main-
|
|
3400
|
+
const { startWorkflowWorker } = await import("./main-BnIX5nfp.mjs");
|
|
3401
3401
|
startupPromises.push(startWorkflowWorker());
|
|
3402
3402
|
}
|
|
3403
3403
|
if (services.includes("events")) {
|
|
3404
|
-
const { startEventWorker } = await import("./main-
|
|
3404
|
+
const { startEventWorker } = await import("./main-DfrrNKp9.mjs");
|
|
3405
3405
|
startupPromises.push(startEventWorker());
|
|
3406
3406
|
}
|
|
3407
3407
|
const handleSignal = async (signal) => {
|
|
@@ -3441,35 +3441,35 @@ var NotifkitServer = class extends EventEmitter {
|
|
|
3441
3441
|
"events"
|
|
3442
3442
|
] : this.options.services;
|
|
3443
3443
|
if (services.includes("api")) {
|
|
3444
|
-
const { stopApiServer } = await import("./main-
|
|
3444
|
+
const { stopApiServer } = await import("./main-Db2f2-sW.mjs");
|
|
3445
3445
|
await stopApiServer();
|
|
3446
3446
|
}
|
|
3447
3447
|
if (services.includes("delivery")) {
|
|
3448
|
-
const { stopDeliveryWorker } = await import("./main-
|
|
3448
|
+
const { stopDeliveryWorker } = await import("./main-DdLzptZE.mjs");
|
|
3449
3449
|
await stopDeliveryWorker();
|
|
3450
3450
|
}
|
|
3451
3451
|
if (services.includes("engine")) {
|
|
3452
|
-
const { stopEngineWorker } = await import("./main-
|
|
3452
|
+
const { stopEngineWorker } = await import("./main-CWGEKpLU.mjs");
|
|
3453
3453
|
await stopEngineWorker();
|
|
3454
3454
|
}
|
|
3455
3455
|
if (services.includes("enricher")) {
|
|
3456
|
-
const { stopEnricherWorker } = await import("./main-
|
|
3456
|
+
const { stopEnricherWorker } = await import("./main-DsDkyBZi.mjs");
|
|
3457
3457
|
await stopEnricherWorker();
|
|
3458
3458
|
}
|
|
3459
3459
|
if (services.includes("scheduler")) {
|
|
3460
|
-
const { stopSchedulerWorker } = await import("./main-
|
|
3460
|
+
const { stopSchedulerWorker } = await import("./main-Cwu4iQXc.mjs");
|
|
3461
3461
|
await stopSchedulerWorker();
|
|
3462
3462
|
}
|
|
3463
3463
|
if (services.includes("ai")) {
|
|
3464
|
-
const { stopAiWorker } = await import("./main-
|
|
3464
|
+
const { stopAiWorker } = await import("./main-DDbquL89.mjs");
|
|
3465
3465
|
await stopAiWorker();
|
|
3466
3466
|
}
|
|
3467
3467
|
if (services.includes("workflow")) {
|
|
3468
|
-
const { stopWorkflowWorker } = await import("./main-
|
|
3468
|
+
const { stopWorkflowWorker } = await import("./main-BnIX5nfp.mjs");
|
|
3469
3469
|
await stopWorkflowWorker();
|
|
3470
3470
|
}
|
|
3471
3471
|
if (services.includes("events")) {
|
|
3472
|
-
const { stopEventWorker } = await import("./main-
|
|
3472
|
+
const { stopEventWorker } = await import("./main-DfrrNKp9.mjs");
|
|
3473
3473
|
await stopEventWorker();
|
|
3474
3474
|
}
|
|
3475
3475
|
if (this.pgContainer) {
|
|
@@ -3485,4 +3485,4 @@ var NotifkitServer = class extends EventEmitter {
|
|
|
3485
3485
|
//#endregion
|
|
3486
3486
|
export { childLogger as $, PUBSUB_CHANNELS as $t, ProjectSettingsCache as A, NotificationRequestedPayloadSchema as At, LUA_RELEASE_LOCK as B, QuietHoursSchema as Bt, ProjectRepository as C, DeliveryOptionsSchema as Ct, WorkflowRepository as D, NotificationEnrichedPayloadSchema as Dt, UserRepository as E, NotificationScheduledPayloadSchema as Et, sleep as F, CreateWorkflowSchema as Ft, normaliseTarget as G, UpdateUserSchema as Gt, LUA_SCHEDULER_CLAIM as H, TemplateSchema as Ht, DataLoader as I, IngestEventSchema as It, PendingMessageScanner as J, buildStreamEvent as Jt, LRUCache as K, WorkflowNotifyPayloadSchema as Kt, CircuitBreaker as L, InlineUserSchema as Lt, AppError as M, AddContactSchema as Mt, ValidationError as N, AddUserSchema as Nt, Redis as O, RecipientProfileSchema as Ot, generateId as P, ContactChannelSchema as Pt, metrics as Q, OUTBOUND_STREAMS as Qt, BatchProcessor as R, NotifyRequestSchema as Rt, PreferenceRepository as S, NotificationDeliveredPayloadSchema as St, TemplateRepository as T, RenderedContentSchema as Tt, LUA_SCHEDULER_POLL as U, TriggerWorkflowSchema as Ut, LUA_RENEW_LOCK as V, SyncTemplatesSchema as Vt, getPriorityBucket as W, UpdateProjectSchema as Wt, StreamProducer as X, ENRICHED_STREAMS as Xt, StreamConsumer as Y, CONSUMER_GROUPS as Yt, getMetricsRegistry as Z, INBOUND_STREAMS as Zt, escapeHeader as _, setGlobalConfig as _n, workflowWaiters as _t, SuspendExecutionError as a, registry as an, runMigrations as at, renderWithTemplate as b, NotificationSkippedPayloadSchema as bt, BaseWorker as c, NotificationPrioritySchema as cn, projectApiKeys as ct, buildUnsubscribeHeaders as d, baseConfigSchema as dn, suppressions as dt, STREAMS as en, createLogger as et, signUnsubscribeToken as f, getAiConfig as fn, userTopicPreferences as ft, TemplateCache as g, setAiConfig as gn, workflowSteps as gt, templateRegistry as h, readBaseConfig as hn, workflowInstances as ht, workflowRegistry as i, EventRegistry as in, createDatabase as it, UserThrottle as j, NotificationTargetSchema as jt, RedisClient as k, NotificationCreatedPayloadSchema as kt, NonRetryableError as l, NotificationStatusSchema as ln, projects as lt, renderTemplate as m, parseConfig as mn, workflowDefinitions as mt, NotifkitClient as n, StreamEventMetadataSchema as nn, withRequestId as nt, buildStepNotifyPayload as o, EventMetadataSchema as on, deliveryOutbox as ot, verifyUnsubscribeToken as p, loadEnv as pn, users as pt, globalEmitter as q, WorkflowStepSchema as qt, workflow as r, StreamEventSchema as rn, IdempotencyGuard as rt, resolveStepTarget as s, NotificationChannelSchema as sn, messageLogs as st, NotifkitServer as t, EventEnvelopeSchema as tn, withContext as tt, startHealthReporter as u, AI_DEFAULTS as un, scheduledPayloads as ut, escapeHtml as v, NotificationAiPendingPayloadSchema as vt, SegmentRepository as w, NotificationDispatchedPayloadSchema as wt, ContactRepository as x, NotificationFailedPayloadSchema as xt, interpolate as y, NotificationCanceledPayloadSchema as yt, AsyncSemaphore as z, PreferencesSchema as zt };
|
|
3487
3487
|
|
|
3488
|
-
//# sourceMappingURL=src-
|
|
3488
|
+
//# sourceMappingURL=src-CpUnBl_M.mjs.map
|