-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Implement new wasp/server/email API #1701
Conversation
@@ -8,7 +8,7 @@ import type { | |||
{=# isAuthEnabled =} | |||
import { throwInvalidCredentialsError } from 'wasp/auth/utils' | |||
{=/ isAuthEnabled =} | |||
import type { GetAllQuery, GetQuery, CreateAction, UpdateAction, DeleteAction } from "{= crudTypesImportPath =}"; | |||
import type { {= crud.name =} } from "wasp/server/crud"; |
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.
Fixing the CRUD bug in new-sdk
branch (should be resolved after we merge the wasp/client/crud
API changes)
{=! Used by our code, uncodumented (but accessible) for users. =} | ||
"./email/core/types": "./dist/email/core/types.js", | ||
"./server/email/core/types": "./dist/server/email/core/types.js", |
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.
If you know we still need these, it is maybe best if you move it below to section "still needed, reconsider during refactoring."? No need to do it now, just idea for future PRs.
@@ -17,8 +17,8 @@ import qualified Wasp.Generator.SdkGenerator.Common as C | |||
import qualified Wasp.Generator.SdkGenerator.EmailSender.Providers as Providers | |||
import Wasp.Util ((<++>)) | |||
|
|||
genEmailSender :: AppSpec -> Generator [FileDraft] | |||
genEmailSender spec = case maybeEmailSender of | |||
genNewEmailSenderApi :: AppSpec -> Generator [FileDraft] |
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.
Why new
?
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.
LGTM but take a look at the comments.
274b650
to
5213506
Compare
Moved the whole
sdk/email
folder tosdk/server/email
.