-
Notifications
You must be signed in to change notification settings - Fork 11.7k
feat: SMS workflow action for form triggers #3 #23673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 250 commits
c9ae4f5
6ff24a9
99e2ac7
87f8857
d27e45f
59a4c9c
fdc18cb
a9ab403
4874a6f
24dd93f
4429ced
3b5e530
c13dcbe
e2768cc
b957355
3672d04
57a7d9b
72422b0
a659afc
a35e1ec
1b9962f
6be759d
4fdd9b6
9c6b365
078df04
97c5572
805f8be
1ab36bd
ab1a14c
200f3fa
239f3db
952cf34
b57f4a4
026762f
737b643
19a9aaf
50a994c
024c888
42fe72c
a702b71
0dc6b08
672c1d7
bc4e630
d7b0117
e14adee
4d6356c
1c03eed
1603f44
8362a7f
c8ccd40
f82dfd6
3494c61
557f0f4
6b4aaf7
23751d0
e1a234f
a5c3be2
a69f86d
4e48e9c
4c65847
82e7d41
cfe2068
6ba946b
4c557e7
fe627db
af86d6b
2931206
7e0e572
1d3f76f
0e38ce9
7451a79
9303773
eac7306
91253e3
43a788c
32de973
ddd343e
6b8e602
d20accd
3554cdd
07a15f2
25ff5a7
6801f3f
0a3590a
b294e22
520f3bc
2e115ea
380f9fa
d9ed5b3
b159476
b5b6878
6a90b6a
01ead92
6eac654
2cc85dc
d551320
eadb532
d0ca589
594e162
069ae98
fec95f3
8766ae4
78ad4b1
3fb8560
1bcf88f
46e0c23
25e05c0
ec9795e
c6a7919
7c77d9a
7aa47b1
46da699
fe5db4f
9ab0a5a
91e0152
3b1533e
f43e786
af9fab6
1916768
d437af5
763023f
a120784
894dbb4
51db2d0
cfe376b
c2a3bec
5de5144
40774f8
2823164
86c04ee
1533478
37eb400
e81ead9
291bd8b
fd7ba2b
48b8d38
fad1be8
23539a0
6397b7f
4145517
dcb425f
1177fda
dc68390
073ad7b
78cc038
d42f37b
b3cb251
2d15556
1196d46
b891d17
f7d5e57
ee597d7
0810fb5
ac0e4f4
b115131
eac95df
983b212
1a2395f
4354aea
d4e8569
acccf59
4d59930
6816f6b
0dd6c0b
415854b
f7b6b87
e98c87d
7ca4ef5
8cb0738
bf0fff1
9f5711e
0632559
99ad38f
c1ecf8a
146cffc
f4da96d
6b82d21
c2c4a26
49a4587
6553d27
18bf4d8
fb9c6e9
b1a872b
c8c236c
7733682
d08297e
f039e5c
97c8785
4ec6945
f75d2df
bb281ba
dfe4a42
81cb441
6109f12
bf384fa
9bed8f2
952ad8a
57525b0
c774bb0
f04f460
210cd6b
7f24b7b
c7b361e
2033aef
104a1f5
dfa4da6
78b4d46
93d401f
b5d0774
2f9f609
3fa87d0
91f6d1f
74efefb
7da184e
8eb135d
b5ce055
70f218a
a8db17d
4610dfd
755c73c
5c058c6
02da3b9
924f785
cbf9a7a
53b05ae
e09fbcc
9077db6
2e116e1
4cdd890
afeefda
6918b54
7905192
9b7fabf
75b1d8d
f5cc8ca
9d68c7b
a51fd6e
5384332
3d11c9f
4f8ff50
2173116
c88c6c3
91982bf
dd26efc
2a4aeb3
e0d09b1
826195a
8360d49
a0d7393
31d2342
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -171,11 +171,7 @@ export async function handler(req: NextRequest) { | |
| } | ||
|
|
||
| if (message?.length && message?.length > 0 && sendTo) { | ||
| const smsMessageWithoutOptOut = message; | ||
|
|
||
| if (process.env.TWILIO_OPT_OUT_ENABLED === "true") { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. moved this check inside |
||
| message = await WorkflowOptOutService.addOptOutMessage(message, locale || "en"); | ||
| } | ||
| const smsMessageWithoutOptOut = await WorkflowOptOutService.addOptOutMessage(message, locale || "en"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This assigns the opt-out footer to Prompt for AI agents |
||
|
|
||
| const scheduledNotification = await scheduleSmsOrFallbackEmail({ | ||
| twilioData: { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the new SMS step DTOs to @ApiExtraModels so their schemas are emitted for the getSchemaPath references; otherwise the generated OpenAPI spec points to missing components.
Prompt for AI agents