Skip to content
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

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Conversation

infomiho
Copy link
Contributor

@infomiho infomiho commented Jan 30, 2024

Moved the whole sdk/email folder to sdk/server/email.

@@ -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";
Copy link
Contributor Author

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",
Copy link
Member

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]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why new?

Copy link
Member

@Martinsos Martinsos left a 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.

@Martinsos Martinsos merged commit 2e98410 into new-sdk Jan 31, 2024
1 of 4 checks passed
@Martinsos Martinsos deleted the new-sdk-server-email branch January 31, 2024 10:51
sodic pushed a commit that referenced this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants