notifkit 0.1.9 → 0.1.10
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 +66 -72
- package/dist/index.d.mts +10 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{main-JdOvJ70b.mjs → main-39DtKrX4.mjs} +2 -2
- package/dist/{main-JdOvJ70b.mjs.map → main-39DtKrX4.mjs.map} +1 -1
- package/dist/{main-AO0JaY5z.mjs → main-B3iQrl3t.mjs} +2 -2
- package/dist/{main-AO0JaY5z.mjs.map → main-B3iQrl3t.mjs.map} +1 -1
- package/dist/{main-CyeQ_yDt.mjs → main-BM8DH3v3.mjs} +2 -2
- package/dist/{main-CyeQ_yDt.mjs.map → main-BM8DH3v3.mjs.map} +1 -1
- package/dist/{main-D19Wxs0x.mjs → main-BgmT1MPe.mjs} +2 -2
- package/dist/{main-D19Wxs0x.mjs.map → main-BgmT1MPe.mjs.map} +1 -1
- package/dist/{main-BPbPnBIG.mjs → main-BiFiOX9D.mjs} +2 -2
- package/dist/{main-BPbPnBIG.mjs.map → main-BiFiOX9D.mjs.map} +1 -1
- package/dist/{main-DSmh1e-V.mjs → main-C9s-2ArH.mjs} +2 -2
- package/dist/{main-DSmh1e-V.mjs.map → main-C9s-2ArH.mjs.map} +1 -1
- package/dist/{main-BMYSYcv2.mjs → main-Cqo3rSb5.mjs} +2 -2
- package/dist/{main-BMYSYcv2.mjs.map → main-Cqo3rSb5.mjs.map} +1 -1
- package/dist/{main-4Wyge9ms.mjs → main-Dz2sUh3c.mjs} +2 -2
- package/dist/{main-4Wyge9ms.mjs.map → main-Dz2sUh3c.mjs.map} +1 -1
- package/dist/{src-CGmXRfsM.mjs → src-QiTu5e_a.mjs} +20 -17
- package/dist/{src-CGmXRfsM.mjs.map → src-QiTu5e_a.mjs.map} +1 -1
- package/package.json +1 -1
- package/scripts/create-admin.mjs +8 -11
- package/src/server.ts +10 -0
|
@@ -3419,6 +3419,9 @@ var NotifkitServer = class extends EventEmitter {
|
|
|
3419
3419
|
if (this.options.port) process.env.PORT = String(this.options.port);
|
|
3420
3420
|
if (this.options.logLevel) process.env.LOG_LEVEL = this.options.logLevel;
|
|
3421
3421
|
if (this.options.nodeEnv) process.env.NODE_ENV = this.options.nodeEnv;
|
|
3422
|
+
if (this.options.adminUser?.email) process.env.ADMIN_EMAIL = this.options.adminUser.email;
|
|
3423
|
+
if (this.options.adminUser?.password) process.env.ADMIN_PASSWORD = this.options.adminUser.password;
|
|
3424
|
+
if (this.options.adminUser?.username) process.env.ADMIN_USERNAME = this.options.adminUser.username;
|
|
3422
3425
|
if (this.options.workerConcurrency) process.env.WORKER_CONCURRENCY = String(this.options.workerConcurrency);
|
|
3423
3426
|
if (this.options.redisOptions?.maxQueueLength) process.env.QUEUE_MAX_LEN = String(this.options.redisOptions.maxQueueLength);
|
|
3424
3427
|
if (this.options.dbOptions?.maxConnections) process.env.DB_MAX_CONNECTIONS = String(this.options.dbOptions.maxConnections);
|
|
@@ -3468,35 +3471,35 @@ var NotifkitServer = class extends EventEmitter {
|
|
|
3468
3471
|
}
|
|
3469
3472
|
const startupPromises = [];
|
|
3470
3473
|
if (services.includes("api")) {
|
|
3471
|
-
const { startApiServer } = await import("./main-
|
|
3474
|
+
const { startApiServer } = await import("./main-39DtKrX4.mjs");
|
|
3472
3475
|
startupPromises.push(startApiServer());
|
|
3473
3476
|
}
|
|
3474
3477
|
if (services.includes("delivery")) {
|
|
3475
|
-
const { startDeliveryWorker } = await import("./main-
|
|
3478
|
+
const { startDeliveryWorker } = await import("./main-BM8DH3v3.mjs");
|
|
3476
3479
|
startupPromises.push(startDeliveryWorker());
|
|
3477
3480
|
}
|
|
3478
3481
|
if (services.includes("engine")) {
|
|
3479
|
-
const { startEngineWorker } = await import("./main-
|
|
3482
|
+
const { startEngineWorker } = await import("./main-BiFiOX9D.mjs");
|
|
3480
3483
|
startupPromises.push(startEngineWorker());
|
|
3481
3484
|
}
|
|
3482
3485
|
if (services.includes("enricher")) {
|
|
3483
|
-
const { startEnricherWorker } = await import("./main-
|
|
3486
|
+
const { startEnricherWorker } = await import("./main-B3iQrl3t.mjs");
|
|
3484
3487
|
startupPromises.push(startEnricherWorker());
|
|
3485
3488
|
}
|
|
3486
3489
|
if (services.includes("scheduler")) {
|
|
3487
|
-
const { startSchedulerWorker } = await import("./main-
|
|
3490
|
+
const { startSchedulerWorker } = await import("./main-Cqo3rSb5.mjs");
|
|
3488
3491
|
startupPromises.push(startSchedulerWorker());
|
|
3489
3492
|
}
|
|
3490
3493
|
if (services.includes("ai")) {
|
|
3491
|
-
const { startAiWorker } = await import("./main-
|
|
3494
|
+
const { startAiWorker } = await import("./main-C9s-2ArH.mjs");
|
|
3492
3495
|
startupPromises.push(startAiWorker());
|
|
3493
3496
|
}
|
|
3494
3497
|
if (services.includes("workflow")) {
|
|
3495
|
-
const { startWorkflowWorker } = await import("./main-
|
|
3498
|
+
const { startWorkflowWorker } = await import("./main-BgmT1MPe.mjs");
|
|
3496
3499
|
startupPromises.push(startWorkflowWorker());
|
|
3497
3500
|
}
|
|
3498
3501
|
if (services.includes("events")) {
|
|
3499
|
-
const { startEventWorker } = await import("./main-
|
|
3502
|
+
const { startEventWorker } = await import("./main-Dz2sUh3c.mjs");
|
|
3500
3503
|
startupPromises.push(startEventWorker());
|
|
3501
3504
|
}
|
|
3502
3505
|
const handleSignal = async (signal) => {
|
|
@@ -3536,35 +3539,35 @@ var NotifkitServer = class extends EventEmitter {
|
|
|
3536
3539
|
"events"
|
|
3537
3540
|
] : this.options.services;
|
|
3538
3541
|
if (services.includes("api")) {
|
|
3539
|
-
const { stopApiServer } = await import("./main-
|
|
3542
|
+
const { stopApiServer } = await import("./main-39DtKrX4.mjs");
|
|
3540
3543
|
await stopApiServer();
|
|
3541
3544
|
}
|
|
3542
3545
|
if (services.includes("delivery")) {
|
|
3543
|
-
const { stopDeliveryWorker } = await import("./main-
|
|
3546
|
+
const { stopDeliveryWorker } = await import("./main-BM8DH3v3.mjs");
|
|
3544
3547
|
await stopDeliveryWorker();
|
|
3545
3548
|
}
|
|
3546
3549
|
if (services.includes("engine")) {
|
|
3547
|
-
const { stopEngineWorker } = await import("./main-
|
|
3550
|
+
const { stopEngineWorker } = await import("./main-BiFiOX9D.mjs");
|
|
3548
3551
|
await stopEngineWorker();
|
|
3549
3552
|
}
|
|
3550
3553
|
if (services.includes("enricher")) {
|
|
3551
|
-
const { stopEnricherWorker } = await import("./main-
|
|
3554
|
+
const { stopEnricherWorker } = await import("./main-B3iQrl3t.mjs");
|
|
3552
3555
|
await stopEnricherWorker();
|
|
3553
3556
|
}
|
|
3554
3557
|
if (services.includes("scheduler")) {
|
|
3555
|
-
const { stopSchedulerWorker } = await import("./main-
|
|
3558
|
+
const { stopSchedulerWorker } = await import("./main-Cqo3rSb5.mjs");
|
|
3556
3559
|
await stopSchedulerWorker();
|
|
3557
3560
|
}
|
|
3558
3561
|
if (services.includes("ai")) {
|
|
3559
|
-
const { stopAiWorker } = await import("./main-
|
|
3562
|
+
const { stopAiWorker } = await import("./main-C9s-2ArH.mjs");
|
|
3560
3563
|
await stopAiWorker();
|
|
3561
3564
|
}
|
|
3562
3565
|
if (services.includes("workflow")) {
|
|
3563
|
-
const { stopWorkflowWorker } = await import("./main-
|
|
3566
|
+
const { stopWorkflowWorker } = await import("./main-BgmT1MPe.mjs");
|
|
3564
3567
|
await stopWorkflowWorker();
|
|
3565
3568
|
}
|
|
3566
3569
|
if (services.includes("events")) {
|
|
3567
|
-
const { stopEventWorker } = await import("./main-
|
|
3570
|
+
const { stopEventWorker } = await import("./main-Dz2sUh3c.mjs");
|
|
3568
3571
|
await stopEventWorker();
|
|
3569
3572
|
}
|
|
3570
3573
|
if (this.pgContainer) {
|
|
@@ -3580,4 +3583,4 @@ var NotifkitServer = class extends EventEmitter {
|
|
|
3580
3583
|
//#endregion
|
|
3581
3584
|
export { metrics as $, ENRICHED_STREAMS as $t, RedisClient as A, NotificationCreatedPayloadSchema as At, AsyncSemaphore as B, NotifyRequestSchema as Bt, PreferenceRepository as C, NotificationDeliveredPayloadSchema as Ct, UserRepository as D, NotificationScheduledPayloadSchema as Dt, TemplateRepository as E, RenderedContentSchema as Et, generateId as F, BatchAddContactsSchema as Ft, getPriorityBucket as G, TriggerWorkflowSchema as Gt, LUA_RENEW_LOCK as H, QuietHoursSchema as Ht, sleep as I, ContactChannelSchema as It, globalEmitter as J, UserContactInputSchema as Jt, normaliseTarget as K, UpdateProjectSchema as Kt, DataLoader as L, CreateWorkflowSchema as Lt, UserThrottle as M, NotificationTargetSchema as Mt, AppError as N, AddContactSchema as Nt, WorkflowRepository as O, NotificationEnrichedPayloadSchema as Ot, ValidationError as P, AddUserSchema as Pt, getMetricsRegistry as Q, CONSUMER_GROUPS as Qt, CircuitBreaker as R, IngestEventSchema as Rt, ContactRepository as S, NotificationFailedPayloadSchema as St, SegmentRepository as T, NotificationDispatchedPayloadSchema as Tt, LUA_SCHEDULER_CLAIM as U, SyncTemplatesSchema as Ut, LUA_RELEASE_LOCK as V, PreferencesSchema as Vt, LUA_SCHEDULER_POLL as W, TemplateSchema as Wt, StreamConsumer as X, WorkflowStepSchema as Xt, PendingMessageScanner as Y, WorkflowNotifyPayloadSchema as Yt, StreamProducer as Z, buildStreamEvent as Zt, escapeHeader as _, parseConfig as _n, workflowSteps as _t, SuspendExecutionError as a, StreamEventMetadataSchema as an, createDatabase as at, renderWithTemplate as b, setGlobalConfig as bn, NotificationCanceledPayloadSchema as bt, BaseWorker as c, registry as cn, messageLogs as ct, buildUnsubscribeHeaders as d, NotificationPrioritySchema as dn, scheduledPayloads as dt, INBOUND_STREAMS as en, childLogger as et, signUnsubscribeToken as f, NotificationStatusSchema as fn, suppressions as ft, TemplateCache as g, loadEnv as gn, workflowInstances as gt, templateRegistry as h, getAiConfig as hn, workflowDefinitions as ht, workflowRegistry as i, EventEnvelopeSchema as in, IdempotencyGuard as it, ProjectSettingsCache as j, NotificationRequestedPayloadSchema as jt, Redis as k, RecipientProfileSchema as kt, NonRetryableError as l, EventMetadataSchema as ln, projectApiKeys as lt, renderTemplate as m, baseConfigSchema as mn, users as mt, NotifkitClient as n, PUBSUB_CHANNELS as nn, withContext as nt, buildStepNotifyPayload as o, StreamEventSchema as on, runMigrations as ot, verifyUnsubscribeToken as p, AI_DEFAULTS as pn, userTopicPreferences as pt, LRUCache as q, UpdateUserSchema as qt, workflow as r, STREAMS as rn, withRequestId as rt, resolveStepTarget as s, EventRegistry as sn, deliveryOutbox as st, NotifkitServer as t, OUTBOUND_STREAMS as tn, createLogger as tt, startHealthReporter as u, NotificationChannelSchema as un, projects as ut, escapeHtml as v, readBaseConfig as vn, workflowWaiters as vt, ProjectRepository as w, DeliveryOptionsSchema as wt, AdminUserRepository as x, NotificationSkippedPayloadSchema as xt, interpolate as y, setAiConfig as yn, NotificationAiPendingPayloadSchema as yt, BatchProcessor as z, InlineUserSchema as zt };
|
|
3582
3585
|
|
|
3583
|
-
//# sourceMappingURL=src-
|
|
3586
|
+
//# sourceMappingURL=src-QiTu5e_a.mjs.map
|