Skip to content

Commit

Permalink
fix: add MailerContext (#4481)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j authored Jan 9, 2025
1 parent 06b211c commit eacc7af
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/api-serverless-cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@webiny/api-headless-cms": "0.0.0",
"@webiny/api-i18n": "0.0.0",
"@webiny/api-i18n-content": "0.0.0",
"@webiny/api-mailer": "0.0.0",
"@webiny/api-page-builder": "0.0.0",
"@webiny/api-page-builder-aco": "0.0.0",
"@webiny/api-prerendering-service": "0.0.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/api-serverless-cms/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ import {
GraphQLSchemaPluginConfig
} from "@webiny/handler-graphql";
import { createSecurityRolePlugin, createSecurityTeamPlugin } from "@webiny/api-security";
import { MailerContext } from "@webiny/api-mailer/types";

export interface Context
extends ClientContext,
MailerContext,
TenancyContext,
SecurityContext,
I18NContext,
Expand Down
1 change: 1 addition & 0 deletions packages/api-serverless-cms/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{ "path": "../api-headless-cms/tsconfig.build.json" },
{ "path": "../api-i18n/tsconfig.build.json" },
{ "path": "../api-i18n-content/tsconfig.build.json" },
{ "path": "../api-mailer/tsconfig.build.json" },
{ "path": "../api-page-builder/tsconfig.build.json" },
{ "path": "../api-page-builder-aco/tsconfig.build.json" },
{ "path": "../api-prerendering-service/tsconfig.build.json" },
Expand Down
3 changes: 3 additions & 0 deletions packages/api-serverless-cms/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{ "path": "../api-headless-cms" },
{ "path": "../api-i18n" },
{ "path": "../api-i18n-content" },
{ "path": "../api-mailer" },
{ "path": "../api-page-builder" },
{ "path": "../api-page-builder-aco" },
{ "path": "../api-prerendering-service" },
Expand Down Expand Up @@ -54,6 +55,8 @@
"@webiny/api-i18n": ["../api-i18n/src"],
"@webiny/api-i18n-content/*": ["../api-i18n-content/src/*"],
"@webiny/api-i18n-content": ["../api-i18n-content/src"],
"@webiny/api-mailer/*": ["../api-mailer/src/*"],
"@webiny/api-mailer": ["../api-mailer/src"],
"@webiny/api-page-builder/*": ["../api-page-builder/src/*"],
"@webiny/api-page-builder": ["../api-page-builder/src"],
"@webiny/api-page-builder-aco/*": ["../api-page-builder-aco/src/*"],
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13538,6 +13538,7 @@ __metadata:
"@webiny/api-i18n": "npm:0.0.0"
"@webiny/api-i18n-content": "npm:0.0.0"
"@webiny/api-log": "npm:0.0.0"
"@webiny/api-mailer": "npm:0.0.0"
"@webiny/api-page-builder": "npm:0.0.0"
"@webiny/api-page-builder-aco": "npm:0.0.0"
"@webiny/api-page-builder-import-export": "npm:0.0.0"
Expand Down

0 comments on commit eacc7af

Please sign in to comment.