@novu/framework 0.24.3-alpha.8 → 0.24.3-alpha.9

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.
@@ -3186,4 +3186,4 @@ declare class NovuRequestHandler<Input extends any[] = any[], Output = any> {
3186
3186
  private hashHmac;
3187
3187
  }
3188
3188
 
3189
- export { type ActionStep as A, type DigestOutput as B, Client as C, type DiscoverWorkflowOutput as D, type Execute as E, type FromSchema as F, type DigestResult as G, type HealthCheck as H, type IEvent as I, JobStatusEnum as J, type Step as K, type Subscriber as L, type Either as M, NovuRequestHandler as N, type Awaitable as O, type PushOutput as P, type ExecuteInput as Q, type Schema as S, type WorkflowOptions as W, type ServeHandlerOptions as a, type CodeResult as b, type ClientOptions as c, type StepType as d, type DiscoverProviderOutput as e, type DiscoverStepOutput as f, type DiscoverOutput as g, type ExecuteOutputMetadata as h, type ExecuteOutput as i, type SupportedFrameworkName as j, type StepOptions as k, type CustomStep as l, type ChannelStep as m, type EmailOutput as n, type EmailResult as o, type SmsOutput as p, type SmsResult as q, type PushResult as r, type ChatOutput as s, type ChatResult as t, type InAppOutput as u, type InAppResult as v, type DelayOutput as w, type DelayResult as x, type digestRegularOutput as y, type digestTimedOutput as z };
3189
+ export { type ActionStep as A, type DigestOutput as B, Client as C, type DiscoverWorkflowOutput as D, type Execute as E, type FromSchema as F, type DigestResult as G, type HealthCheck as H, type IEvent as I, JobStatusEnum as J, type Step as K, type Subscriber as L, type Either as M, NovuRequestHandler as N, type Awaitable as O, type PushOutput as P, type ExecuteInput as Q, type JsonSchema as R, type Schema as S, type WorkflowOptions as W, type ServeHandlerOptions as a, type CodeResult as b, type ClientOptions as c, type StepType as d, type DiscoverProviderOutput as e, type DiscoverStepOutput as f, type DiscoverOutput as g, type ExecuteOutputMetadata as h, type ExecuteOutput as i, type SupportedFrameworkName as j, type StepOptions as k, type CustomStep as l, type ChannelStep as m, type EmailOutput as n, type EmailResult as o, type SmsOutput as p, type SmsResult as q, type PushResult as r, type ChatOutput as s, type ChatResult as t, type InAppOutput as u, type InAppResult as v, type DelayOutput as w, type DelayResult as x, type digestRegularOutput as y, type digestTimedOutput as z };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,100 @@
1
- import { S as Schema, F as FromSchema, E as Execute, W as WorkflowOptions, D as DiscoverWorkflowOutput } from './handler-mYQx1pDV.js';
2
- export { A as ActionStep, O as Awaitable, m as ChannelStep, s as ChatOutput, t as ChatResult, C as Client, c as ClientOptions, b as CodeResult, l as CustomStep, w as DelayOutput, x as DelayResult, B as DigestOutput, G as DigestResult, g as DiscoverOutput, e as DiscoverProviderOutput, f as DiscoverStepOutput, M as Either, n as EmailOutput, o as EmailResult, Q as ExecuteInput, i as ExecuteOutput, h as ExecuteOutputMetadata, H as HealthCheck, I as IEvent, u as InAppOutput, v as InAppResult, J as JobStatusEnum, N as NovuRequestHandler, P as PushOutput, r as PushResult, a as ServeHandlerOptions, p as SmsOutput, q as SmsResult, K as Step, k as StepOptions, d as StepType, L as Subscriber, j as SupportedFrameworkName, y as digestRegularOutput, z as digestTimedOutput } from './handler-mYQx1pDV.js';
1
+ import { S as Schema, F as FromSchema, E as Execute, W as WorkflowOptions, D as DiscoverWorkflowOutput } from './handler-_6lXMYuL.js';
2
+ export { A as ActionStep, O as Awaitable, m as ChannelStep, s as ChatOutput, t as ChatResult, C as Client, c as ClientOptions, b as CodeResult, l as CustomStep, w as DelayOutput, x as DelayResult, B as DigestOutput, G as DigestResult, g as DiscoverOutput, e as DiscoverProviderOutput, f as DiscoverStepOutput, M as Either, n as EmailOutput, o as EmailResult, Q as ExecuteInput, i as ExecuteOutput, h as ExecuteOutputMetadata, H as HealthCheck, I as IEvent, u as InAppOutput, v as InAppResult, J as JobStatusEnum, R as JsonSchema, N as NovuRequestHandler, P as PushOutput, r as PushResult, a as ServeHandlerOptions, p as SmsOutput, q as SmsResult, K as Step, k as StepOptions, d as StepType, L as Subscriber, j as SupportedFrameworkName, y as digestRegularOutput, z as digestTimedOutput } from './handler-_6lXMYuL.js';
3
3
  import 'json-schema-to-ts';
4
4
  import 'zod';
5
5
 
6
+ /**
7
+ * Cron expression helper.
8
+ */
9
+ declare enum CronExpression {
10
+ EVERY_SECOND = "* * * * * *",
11
+ EVERY_5_SECONDS = "*/5 * * * * *",
12
+ EVERY_10_SECONDS = "*/10 * * * * *",
13
+ EVERY_30_SECONDS = "*/30 * * * * *",
14
+ EVERY_MINUTE = "*/1 * * * *",
15
+ EVERY_5_MINUTES = "0 */5 * * * *",
16
+ EVERY_10_MINUTES = "0 */10 * * * *",
17
+ EVERY_30_MINUTES = "0 */30 * * * *",
18
+ EVERY_HOUR = "0 0-23/1 * * *",
19
+ EVERY_2_HOURS = "0 0-23/2 * * *",
20
+ EVERY_3_HOURS = "0 0-23/3 * * *",
21
+ EVERY_4_HOURS = "0 0-23/4 * * *",
22
+ EVERY_5_HOURS = "0 0-23/5 * * *",
23
+ EVERY_6_HOURS = "0 0-23/6 * * *",
24
+ EVERY_7_HOURS = "0 0-23/7 * * *",
25
+ EVERY_8_HOURS = "0 0-23/8 * * *",
26
+ EVERY_9_HOURS = "0 0-23/9 * * *",
27
+ EVERY_10_HOURS = "0 0-23/10 * * *",
28
+ EVERY_11_HOURS = "0 0-23/11 * * *",
29
+ EVERY_12_HOURS = "0 0-23/12 * * *",
30
+ EVERY_DAY_AT_1AM = "0 01 * * *",
31
+ EVERY_DAY_AT_2AM = "0 02 * * *",
32
+ EVERY_DAY_AT_3AM = "0 03 * * *",
33
+ EVERY_DAY_AT_4AM = "0 04 * * *",
34
+ EVERY_DAY_AT_5AM = "0 05 * * *",
35
+ EVERY_DAY_AT_6AM = "0 06 * * *",
36
+ EVERY_DAY_AT_7AM = "0 07 * * *",
37
+ EVERY_DAY_AT_8AM = "0 08 * * *",
38
+ EVERY_DAY_AT_9AM = "0 09 * * *",
39
+ EVERY_DAY_AT_10AM = "0 10 * * *",
40
+ EVERY_DAY_AT_11AM = "0 11 * * *",
41
+ EVERY_DAY_AT_NOON = "0 12 * * *",
42
+ EVERY_DAY_AT_1PM = "0 13 * * *",
43
+ EVERY_DAY_AT_2PM = "0 14 * * *",
44
+ EVERY_DAY_AT_3PM = "0 15 * * *",
45
+ EVERY_DAY_AT_4PM = "0 16 * * *",
46
+ EVERY_DAY_AT_5PM = "0 17 * * *",
47
+ EVERY_DAY_AT_6PM = "0 18 * * *",
48
+ EVERY_DAY_AT_7PM = "0 19 * * *",
49
+ EVERY_DAY_AT_8PM = "0 20 * * *",
50
+ EVERY_DAY_AT_9PM = "0 21 * * *",
51
+ EVERY_DAY_AT_10PM = "0 22 * * *",
52
+ EVERY_DAY_AT_11PM = "0 23 * * *",
53
+ EVERY_DAY_AT_MIDNIGHT = "0 0 * * *",
54
+ EVERY_WEEK = "0 0 * * 0",
55
+ EVERY_WEEKDAY = "0 0 * * 1-5",
56
+ EVERY_WEEKEND = "0 0 * * 6,0",
57
+ EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT = "0 0 1 * *",
58
+ EVERY_1ST_DAY_OF_MONTH_AT_NOON = "0 12 1 * *",
59
+ EVERY_2ND_HOUR = "0 */2 * * *",
60
+ EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM = "0 1-23/2 * * *",
61
+ EVERY_2ND_MONTH = "0 0 1 */2 *",
62
+ EVERY_QUARTER = "0 0 1 */3 *",
63
+ EVERY_6_MONTHS = "0 0 1 */6 *",
64
+ EVERY_YEAR = "0 0 1 0 *",
65
+ EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM = "0 */30 9-17 * * *",
66
+ EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM = "0 */30 9-18 * * *",
67
+ EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM = "0 */30 10-19 * * *",
68
+ MONDAY_TO_FRIDAY_AT_1AM = "0 0 01 * * 1-5",
69
+ MONDAY_TO_FRIDAY_AT_2AM = "0 0 02 * * 1-5",
70
+ MONDAY_TO_FRIDAY_AT_3AM = "0 0 03 * * 1-5",
71
+ MONDAY_TO_FRIDAY_AT_4AM = "0 0 04 * * 1-5",
72
+ MONDAY_TO_FRIDAY_AT_5AM = "0 0 05 * * 1-5",
73
+ MONDAY_TO_FRIDAY_AT_6AM = "0 0 06 * * 1-5",
74
+ MONDAY_TO_FRIDAY_AT_7AM = "0 0 07 * * 1-5",
75
+ MONDAY_TO_FRIDAY_AT_8AM = "0 0 08 * * 1-5",
76
+ MONDAY_TO_FRIDAY_AT_9AM = "0 0 09 * * 1-5",
77
+ MONDAY_TO_FRIDAY_AT_09_30AM = "0 30 09 * * 1-5",
78
+ MONDAY_TO_FRIDAY_AT_10AM = "0 0 10 * * 1-5",
79
+ MONDAY_TO_FRIDAY_AT_11AM = "0 0 11 * * 1-5",
80
+ MONDAY_TO_FRIDAY_AT_11_30AM = "0 30 11 * * 1-5",
81
+ MONDAY_TO_FRIDAY_AT_12PM = "0 0 12 * * 1-5",
82
+ MONDAY_TO_FRIDAY_AT_1PM = "0 0 13 * * 1-5",
83
+ MONDAY_TO_FRIDAY_AT_2PM = "0 0 14 * * 1-5",
84
+ MONDAY_TO_FRIDAY_AT_3PM = "0 0 15 * * 1-5",
85
+ MONDAY_TO_FRIDAY_AT_4PM = "0 0 16 * * 1-5",
86
+ MONDAY_TO_FRIDAY_AT_5PM = "0 0 17 * * 1-5",
87
+ MONDAY_TO_FRIDAY_AT_6PM = "0 0 18 * * 1-5",
88
+ MONDAY_TO_FRIDAY_AT_7PM = "0 0 19 * * 1-5",
89
+ MONDAY_TO_FRIDAY_AT_8PM = "0 0 20 * * 1-5",
90
+ MONDAY_TO_FRIDAY_AT_9PM = "0 0 21 * * 1-5",
91
+ MONDAY_TO_FRIDAY_AT_10PM = "0 0 22 * * 1-5",
92
+ MONDAY_TO_FRIDAY_AT_11PM = "0 0 23 * * 1-5"
93
+ }
94
+
6
95
  /**
7
96
  * Define a new notification workflow.
8
97
  */
9
98
  declare function workflow<T_PayloadSchema extends Schema, T_InputSchema extends Schema, T_Payload = FromSchema<T_PayloadSchema>, T_Input = FromSchema<T_InputSchema>>(workflowId: string, execute: Execute<T_Payload, T_Input>, workflowOptions?: WorkflowOptions<T_PayloadSchema, T_InputSchema>): DiscoverWorkflowOutput;
10
99
 
11
- export { DiscoverWorkflowOutput, Execute, WorkflowOptions, workflow };
100
+ export { CronExpression, DiscoverWorkflowOutput, Execute, FromSchema, Schema, WorkflowOptions, workflow };