@astralibx/email-rule-engine 7.0.0 → 8.0.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.js → index.cjs} +2 -2
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ interface RuleRunStats {
|
|
|
70
70
|
}
|
|
71
71
|
interface QueryTarget {
|
|
72
72
|
mode: 'query';
|
|
73
|
-
role:
|
|
73
|
+
role: string;
|
|
74
74
|
platform: string;
|
|
75
75
|
conditions: RuleCondition[];
|
|
76
76
|
}
|
|
@@ -289,8 +289,8 @@ interface EmailTemplate {
|
|
|
289
289
|
name: string;
|
|
290
290
|
slug: string;
|
|
291
291
|
description?: string;
|
|
292
|
-
category:
|
|
293
|
-
audience:
|
|
292
|
+
category: string;
|
|
293
|
+
audience: string;
|
|
294
294
|
platform: string;
|
|
295
295
|
textBody?: string;
|
|
296
296
|
subjects: string[];
|
|
@@ -307,8 +307,8 @@ interface CreateEmailTemplateInput {
|
|
|
307
307
|
name: string;
|
|
308
308
|
slug: string;
|
|
309
309
|
description?: string;
|
|
310
|
-
category:
|
|
311
|
-
audience:
|
|
310
|
+
category: string;
|
|
311
|
+
audience: string;
|
|
312
312
|
platform: string;
|
|
313
313
|
textBody?: string;
|
|
314
314
|
subjects: string[];
|
|
@@ -320,8 +320,8 @@ interface CreateEmailTemplateInput {
|
|
|
320
320
|
interface UpdateEmailTemplateInput {
|
|
321
321
|
name?: string;
|
|
322
322
|
description?: string;
|
|
323
|
-
category?:
|
|
324
|
-
audience?:
|
|
323
|
+
category?: string;
|
|
324
|
+
audience?: string;
|
|
325
325
|
platform?: string;
|
|
326
326
|
textBody?: string;
|
|
327
327
|
subjects?: string[];
|
|
@@ -338,8 +338,8 @@ type EmailTemplateDocument = HydratedDocument<IEmailTemplate>;
|
|
|
338
338
|
interface EmailTemplateStatics {
|
|
339
339
|
findBySlug(slug: string): Promise<EmailTemplateDocument | null>;
|
|
340
340
|
findActive(): Promise<EmailTemplateDocument[]>;
|
|
341
|
-
findByCategory(category:
|
|
342
|
-
findByAudience(audience:
|
|
341
|
+
findByCategory(category: string): Promise<EmailTemplateDocument[]>;
|
|
342
|
+
findByAudience(audience: string): Promise<EmailTemplateDocument[]>;
|
|
343
343
|
createTemplate(input: CreateEmailTemplateInput): Promise<EmailTemplateDocument>;
|
|
344
344
|
}
|
|
345
345
|
type EmailTemplateModel = Model<IEmailTemplate> & EmailTemplateStatics;
|
|
@@ -491,8 +491,8 @@ declare class TemplateService {
|
|
|
491
491
|
private renderService;
|
|
492
492
|
constructor(EmailTemplate: EmailTemplateModel, config: EmailRuleEngineConfig);
|
|
493
493
|
list(filters?: {
|
|
494
|
-
category?:
|
|
495
|
-
audience?:
|
|
494
|
+
category?: string;
|
|
495
|
+
audience?: string;
|
|
496
496
|
platform?: string;
|
|
497
497
|
isActive?: boolean;
|
|
498
498
|
}): Promise<EmailTemplateDocument[]>;
|