-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #262 from vivid-planet/next
Merge next into main for v3
- Loading branch information
Showing
163 changed files
with
8,288 additions
and
5,205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
"@comet/brevo-api": major | ||
--- | ||
|
||
Make this package compatible with [COMET v7](https://docs.comet-dxp.com/docs/migration/migration-from-v6-to-v7) | ||
|
||
**Breaking Changes**: | ||
|
||
- Now requires >= v7.5.0 for `@comet` packages | ||
- Now requires >= 5.9.8 for `@mikro-orm` packages (except `@mikro-orm/nestjs` where >= 5.2.3 is required) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@comet/brevo-admin": minor | ||
"@comet/brevo-api": minor | ||
--- | ||
|
||
Add field for `doubleOptInTemplateId` to `BrevoConfigPage` | ||
|
||
The environment variable BREVO_DOUBLE_OPT_IN_TEMPLATE_ID can be removed, as it is now available as a maintainable variable in the admin interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
"@comet/brevo-api": major | ||
--- | ||
|
||
Refactor `email-campaign` and `target-group` entity | ||
|
||
Use `createEmailCampaignEntity` for creating `email-campaign` entity. Pass `EmailCampaignContentBlock`, `Scope` and `TargetGroup`. | ||
|
||
Use `createTargetGroupEntity` for creating `target-group` entity. Pass `Scope` and optional `BrevoFilterAttributes` | ||
|
||
Pass both to the `AppModule`: | ||
|
||
````diff | ||
BrevoModule.register({ | ||
brevo: { | ||
//... | ||
+ EmailCampaign | ||
+ TargetGroup | ||
} | ||
//... | ||
}); | ||
``` | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"@comet/brevo-admin": major | ||
"@comet/brevo-api": major | ||
--- | ||
|
||
Refactor brevo contact import to upload files to public uploads temporarily | ||
|
||
The files for the brevo contact import now get temporarily stored in the public uploads until the import is concluded. | ||
This change prepares for future imports to be handled in a separate job, allowing more than 100 contacts to be imported without exhausting api resources or blocking the event loop. | ||
|
||
It is now necessary to import the `PublicUploadsModule` in the project's `AppModule` and configure it to accept csv files. | ||
|
||
```ts | ||
PublicUploadModule.register({ | ||
acceptedMimeTypes: ["text/csv"], | ||
maxFileSize: config.publicUploads.maxFileSize, | ||
directory: `${config.blob.storageDirectoryPrefix}-public-uploads`, | ||
}), | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@comet/brevo-mail-rendering": major | ||
"@comet/brevo-admin": major | ||
"@comet/brevo-api": major | ||
--- | ||
|
||
Add `mail-rendering` package for providing reuseable components for rendering emails | ||
|
||
Add new `NewsletterImageBlock` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@comet/brevo-admin": minor | ||
"@comet/brevo-api": minor | ||
--- | ||
|
||
Add `folderId` to `BrevoConfig` to allow overwriting the default folderId `1` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@comet/brevo-admin": patch | ||
"@comet/brevo-api": patch | ||
--- | ||
|
||
Remove the `totalContactsBlocked` field from the `TargetGroup` type, because it is not delivered in the list request in Brevo anymore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
"@comet/brevo-admin": major | ||
"@comet/brevo-api": minor | ||
--- | ||
|
||
A required brevo config page must now be generated with `createBrevoConfigPage`. | ||
All necessary brevo configuration (for each scope) must be configured within this page for emails campaigns to be sent. | ||
|
||
```diff | ||
+ const BrevoConfigPage = createBrevoConfigPage({ | ||
+ scopeParts: ["domain", "language"], | ||
+ }); | ||
``` | ||
|
||
Env vars containing the brevo sender information can be removed. | ||
|
||
```diff | ||
- BREVO_SENDER_NAME=senderName | ||
- BREVO_SENDER_EMAIL=senderEmail | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
"@comet/brevo-api": major | ||
"@comet/brevo-admin": minor | ||
--- | ||
|
||
Add a brevo configuration field for `allowedRedirectionUrl` | ||
Env vars containing this information can be removed and must be removed from the brevo module configuration. | ||
|
||
```diff | ||
BrevoModule.register({ | ||
brevo: { | ||
- allowedRedirectionUrl: config.brevo.allowedRedirectionUrl, | ||
//... | ||
}, | ||
//.. | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@comet/brevo-admin": minor | ||
"@comet/brevo-api": minor | ||
--- | ||
|
||
Add a brevo configuration field for `unsubscriptionPageId` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
"@comet/brevo-admin": major | ||
--- | ||
|
||
Define `scopeParts` in `BrevoConfig` | ||
|
||
Previously the `scopeParts` were passed to the functions: | ||
|
||
- createBrevoContactsPage | ||
- createTargetGroupsPage | ||
- createEmailCampaignsPage | ||
- createBrevoConfigPage | ||
|
||
Now they are defined once in the `BrevoConfig`: | ||
|
||
```tsx | ||
<BrevoConfigProvider | ||
value={{ | ||
scopeParts: ["domain", "language"], | ||
...otherProps, | ||
}} | ||
> | ||
{children} | ||
</BrevoConfigProvider> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ block-meta.json | |
lang-compiled/ | ||
lang/ | ||
schema.json | ||
src/fragmentTypes.json | ||
src/fragmentTypes.json | ||
build/ |
Oops, something went wrong.