@meridianjs/types 0.1.5 → 0.1.7

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.d.mts CHANGED
@@ -54,6 +54,7 @@ interface ModuleConfig {
54
54
  interface PluginConfig {
55
55
  resolve: string;
56
56
  options?: Record<string, unknown>;
57
+ disableSubscribers?: string[];
57
58
  }
58
59
  interface AdminConfig {
59
60
  disable?: boolean;
@@ -189,6 +190,15 @@ interface EmailSendOptions {
189
190
  interface IEmailService {
190
191
  send(options: EmailSendOptions): Promise<void>;
191
192
  }
193
+ interface EmailTemplateOverride {
194
+ subject?: string;
195
+ text?: string;
196
+ html?: string;
197
+ }
198
+ interface IEmailTemplateService {
199
+ /** Return an override object for the given event + contextual data, or null to use defaults. */
200
+ render(event: string, data: unknown): EmailTemplateOverride | null;
201
+ }
192
202
  interface PluginRegistrationContext {
193
203
  container: MeridianContainer;
194
204
  pluginOptions: Record<string, unknown>;
@@ -196,4 +206,4 @@ interface PluginRegistrationContext {
196
206
  }
197
207
  type PluginRegisterFn = (ctx: PluginRegistrationContext) => Promise<void>;
198
208
 
199
- export type { AdminConfig, AuthenticatedUser, EmailSendOptions, EventMessage, IEmailService, IEventBus, ILogger, IModuleService, IQuery, IScheduler, IStorageProvider, IssuePriority, IssueStatus, IssueType, LinkDefinition, LinkEndpoint, LinkableConfig, LinkableEntry, LoaderFn, LoaderOptions, MeridianConfig, MeridianContainer, MeridianRequestBase, ModuleConfig, ModuleDefinition, NotificationChannel, PluginConfig, PluginRegisterFn, PluginRegistrationContext, ProjectConfig, ProjectStatus, ProjectVisibility, QueryGraphOptions, ScheduledJobConfig, ScheduledJobFn, SprintStatus, StepConfig, StepContext, SubscriberArgs, SubscriberConfig, SubscriberFn, TeamRole, WorkerMode, WorkflowConfig, WorkspacePlan };
209
+ export type { AdminConfig, AuthenticatedUser, EmailSendOptions, EmailTemplateOverride, EventMessage, IEmailService, IEmailTemplateService, IEventBus, ILogger, IModuleService, IQuery, IScheduler, IStorageProvider, IssuePriority, IssueStatus, IssueType, LinkDefinition, LinkEndpoint, LinkableConfig, LinkableEntry, LoaderFn, LoaderOptions, MeridianConfig, MeridianContainer, MeridianRequestBase, ModuleConfig, ModuleDefinition, NotificationChannel, PluginConfig, PluginRegisterFn, PluginRegistrationContext, ProjectConfig, ProjectStatus, ProjectVisibility, QueryGraphOptions, ScheduledJobConfig, ScheduledJobFn, SprintStatus, StepConfig, StepContext, SubscriberArgs, SubscriberConfig, SubscriberFn, TeamRole, WorkerMode, WorkflowConfig, WorkspacePlan };
package/dist/index.d.ts CHANGED
@@ -54,6 +54,7 @@ interface ModuleConfig {
54
54
  interface PluginConfig {
55
55
  resolve: string;
56
56
  options?: Record<string, unknown>;
57
+ disableSubscribers?: string[];
57
58
  }
58
59
  interface AdminConfig {
59
60
  disable?: boolean;
@@ -189,6 +190,15 @@ interface EmailSendOptions {
189
190
  interface IEmailService {
190
191
  send(options: EmailSendOptions): Promise<void>;
191
192
  }
193
+ interface EmailTemplateOverride {
194
+ subject?: string;
195
+ text?: string;
196
+ html?: string;
197
+ }
198
+ interface IEmailTemplateService {
199
+ /** Return an override object for the given event + contextual data, or null to use defaults. */
200
+ render(event: string, data: unknown): EmailTemplateOverride | null;
201
+ }
192
202
  interface PluginRegistrationContext {
193
203
  container: MeridianContainer;
194
204
  pluginOptions: Record<string, unknown>;
@@ -196,4 +206,4 @@ interface PluginRegistrationContext {
196
206
  }
197
207
  type PluginRegisterFn = (ctx: PluginRegistrationContext) => Promise<void>;
198
208
 
199
- export type { AdminConfig, AuthenticatedUser, EmailSendOptions, EventMessage, IEmailService, IEventBus, ILogger, IModuleService, IQuery, IScheduler, IStorageProvider, IssuePriority, IssueStatus, IssueType, LinkDefinition, LinkEndpoint, LinkableConfig, LinkableEntry, LoaderFn, LoaderOptions, MeridianConfig, MeridianContainer, MeridianRequestBase, ModuleConfig, ModuleDefinition, NotificationChannel, PluginConfig, PluginRegisterFn, PluginRegistrationContext, ProjectConfig, ProjectStatus, ProjectVisibility, QueryGraphOptions, ScheduledJobConfig, ScheduledJobFn, SprintStatus, StepConfig, StepContext, SubscriberArgs, SubscriberConfig, SubscriberFn, TeamRole, WorkerMode, WorkflowConfig, WorkspacePlan };
209
+ export type { AdminConfig, AuthenticatedUser, EmailSendOptions, EmailTemplateOverride, EventMessage, IEmailService, IEmailTemplateService, IEventBus, ILogger, IModuleService, IQuery, IScheduler, IStorageProvider, IssuePriority, IssueStatus, IssueType, LinkDefinition, LinkEndpoint, LinkableConfig, LinkableEntry, LoaderFn, LoaderOptions, MeridianConfig, MeridianContainer, MeridianRequestBase, ModuleConfig, ModuleDefinition, NotificationChannel, PluginConfig, PluginRegisterFn, PluginRegistrationContext, ProjectConfig, ProjectStatus, ProjectVisibility, QueryGraphOptions, ScheduledJobConfig, ScheduledJobFn, SprintStatus, StepConfig, StepContext, SubscriberArgs, SubscriberConfig, SubscriberFn, TeamRole, WorkerMode, WorkflowConfig, WorkspacePlan };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meridianjs/types",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Shared TypeScript types and interfaces for Meridian",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",