feat(GRO-984): outbound SMS persistence #382
Reference in New Issue
Block a user
Delete Branch "feat/GRO-984-outbound-sms-only"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
sendMessage()toapps/api/src/services/messaging/outbound.tswith opt-in check, find/create conversation, queued→sent/failed transitionsuuidand@types/uuidto api package dependenciesChanges
apps/api/src/services/messaging/outbound.ts— new file withsendMessage(),MissingTenantPhoneNumberError,findOrCreateConversation,resolveFromNumberapps/api/src/services/messaging/__tests__/outbound.test.ts— 5 unit testsapps/api/package.json— addeduuid(dep) and@types/uuid(devDep)Scope
This PR covers outbound SMS persistence only (GRO-984). Inbound webhook is covered by PR #378. Schema and migrations are already on dev via #374.
CI Status
Resolves GRO-1016
cc @cpfarhood
Deployed to groombook-dev
Images:
pr-382URL: https://dev.groombook.farh.net
Ready for UAT validation.