@astralibx/email-rule-engine 12.5.1 → 12.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/README.md +5 -2
- package/dist/index.cjs +29908 -1994
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +51 -1
- package/dist/index.d.ts +51 -1
- package/dist/index.mjs +29899 -2008
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,10 +80,13 @@ The factory returns an `EmailRuleEngine` instance with:
|
|
|
80
80
|
|
|
81
81
|
- `routes` -- Express Router with all CRUD and runner endpoints
|
|
82
82
|
- `runner` -- `RuleRunnerService` for triggering runs programmatically
|
|
83
|
-
- `
|
|
84
|
-
- `
|
|
83
|
+
- `scheduler` -- `SchedulerService` for cron-based scheduled rule execution
|
|
84
|
+
- `templateService` -- `TemplateService` for CRUD, preview, and cloning (`POST /templates/:id/clone`, `POST /templates/:id/preview-with-data`)
|
|
85
|
+
- `ruleService` -- `RuleService` for CRUD, dry runs, and cloning (`POST /rules/:id/clone`)
|
|
85
86
|
- `models` -- Direct Mongoose model access (`EmailTemplate`, `EmailRule`, `EmailRuleSend`, `EmailRuleRunLog`, `EmailThrottleConfig`)
|
|
86
87
|
|
|
88
|
+
The `routes` router includes `GET /sends` for querying individual send log records and `schedule` field support on rules for cron-based execution.
|
|
89
|
+
|
|
87
90
|
## Configuration
|
|
88
91
|
|
|
89
92
|
The `createEmailRuleEngine(config)` factory accepts an `EmailRuleEngineConfig` object validated at startup with Zod.
|