@astralibx/email-rule-engine 12.7.2 → 12.9.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 +3 -0
- package/dist/index.cjs +2293 -29775
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +91 -12
- package/dist/index.d.ts +91 -12
- package/dist/index.mjs +2285 -29749
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,6 +96,7 @@ The `createEmailRuleEngine(config)` factory accepts an `EmailRuleEngineConfig` o
|
|
|
96
96
|
| `db` | Yes | Mongoose connection and optional collection prefix |
|
|
97
97
|
| `redis` | Yes | ioredis connection for distributed locking |
|
|
98
98
|
| `adapters` | Yes | 5 required + 1 optional function bridging your app to the engine |
|
|
99
|
+
| `collections` | No | MongoDB collection schemas for field dropdowns, type-aware operators, and validation |
|
|
99
100
|
| `platforms` | No | Valid platform values for schema validation |
|
|
100
101
|
| `audiences` | No | Valid audience/role values for schema validation |
|
|
101
102
|
| `categories` | No | Valid template categories for schema validation |
|
|
@@ -114,6 +115,8 @@ See [docs/configuration.md](https://github.com/Hariprakash1997/astralib/blob/mai
|
|
|
114
115
|
5. [Execution Flow](https://github.com/Hariprakash1997/astralib/blob/main/packages/email/rule-engine/docs/execution-flow.md) — Understand how the runner processes rules
|
|
115
116
|
6. [Throttling](https://github.com/Hariprakash1997/astralib/blob/main/packages/email/rule-engine/docs/throttling.md) — Configure per-user send limits
|
|
116
117
|
|
|
118
|
+
7. [Collections](https://github.com/Hariprakash1997/astralib/blob/main/packages/email/rule-engine/docs/collections.md) — Register collection schemas for field dropdowns and type-aware validation
|
|
119
|
+
|
|
117
120
|
Reference: [API Routes](https://github.com/Hariprakash1997/astralib/blob/main/packages/email/rule-engine/docs/api-routes.md) | [Programmatic API](https://github.com/Hariprakash1997/astralib/blob/main/packages/email/rule-engine/docs/programmatic-api.md) | [Types](https://github.com/Hariprakash1997/astralib/blob/main/packages/email/rule-engine/docs/types.md) | [Constants](https://github.com/Hariprakash1997/astralib/blob/main/packages/email/rule-engine/docs/constants.md) | [Error Handling](https://github.com/Hariprakash1997/astralib/blob/main/packages/email/rule-engine/docs/error-handling.md)
|
|
118
121
|
|
|
119
122
|
### Redis Key Prefix (Required for Multi-Project Deployments)
|