vintasend-sendgrid 0.11.2 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { SendgridNotificationAdapter, SendgridNotificationAdapterFactory, } from './sendgrid-notification-adapter';
1
+ export { SendgridNotificationAdapter, SendgridNotificationAdapterFactory, } from './sendgrid-notification-adapter.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,kCAAkC,GACnC,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,kCAAkC,GACnC,MAAM,oCAAoC,CAAC"}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { SendgridNotificationAdapter, SendgridNotificationAdapterFactory, } from './sendgrid-notification-adapter';
1
+ export { SendgridNotificationAdapter, SendgridNotificationAdapterFactory, } from './sendgrid-notification-adapter.js';
@@ -1,4 +1,4 @@
1
- import type { AttachmentData } from '@sendgrid/helpers/classes/attachment';
1
+ import type { MailDataRequired } from '@sendgrid/mail';
2
2
  import type { AnyDatabaseNotification, BaseEmailTemplateRenderer, BaseNotificationTypeConfig, JsonObject, StoredAttachment } from 'vintasend';
3
3
  import { BaseNotificationAdapter } from 'vintasend';
4
4
  export interface SendgridConfig {
@@ -12,7 +12,7 @@ export declare class SendgridNotificationAdapter<TemplateRenderer extends BaseEm
12
12
  constructor(templateRenderer: TemplateRenderer, enqueueNotifications: boolean, config: SendgridConfig);
13
13
  get supportsAttachments(): boolean;
14
14
  send(notification: AnyDatabaseNotification<Config>, context: JsonObject): Promise<void>;
15
- protected prepareAttachments(attachments: StoredAttachment[]): Promise<AttachmentData[]>;
15
+ protected prepareAttachments(attachments: StoredAttachment[]): Promise<NonNullable<MailDataRequired['attachments']>>;
16
16
  }
17
17
  export declare class SendgridNotificationAdapterFactory<Config extends BaseNotificationTypeConfig> {
18
18
  create<TemplateRenderer extends BaseEmailTemplateRenderer<Config>>(templateRenderer: TemplateRenderer, enqueueNotifications: boolean, config: SendgridConfig): SendgridNotificationAdapter<TemplateRenderer, Config>;
@@ -1 +1 @@
1
- {"version":3,"file":"sendgrid-notification-adapter.d.ts","sourceRoot":"","sources":["../src/sendgrid-notification-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAG3E,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,EAC1B,UAAU,EACV,gBAAgB,EACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,2BAA2B,CACtC,gBAAgB,SAAS,yBAAyB,CAAC,MAAM,CAAC,EAC1D,MAAM,SAAS,0BAA0B,CACzC,SAAQ,uBAAuB,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClD,GAAG,EAAE,MAAM,GAAG,IAAI,CAAc;IACvC,OAAO,CAAC,MAAM,CAAiB;gBAG7B,gBAAgB,EAAE,gBAAgB,EAClC,oBAAoB,EAAE,OAAO,EAC7B,MAAM,EAAE,cAAc;IAOxB,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IAEK,IAAI,CAAC,YAAY,EAAE,uBAAuB,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;cAwC7E,kBAAkB,CAAC,WAAW,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,cAAc,EA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;CA0BzD;AAED,qBAAa,kCAAkC,CAAC,MAAM,SAAS,0BAA0B;IACvF,MAAM,CAAC,gBAAgB,SAAS,yBAAyB,CAAC,MAAM,CAAC,EAC/D,gBAAgB,EAAE,gBAAgB,EAClC,oBAAoB,EAAE,OAAO,EAC7B,MAAM,EAAE,cAAc;CAQzB"}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "vintasend-sendgrid",
3
- "version": "0.11.2",
3
+ "version": "0.12.0",
4
4
  "description": "",
5
+ "type": "module",
5
6
  "main": "dist/index.js",
6
7
  "scripts": {
7
8
  "build": "tsc",
@@ -19,7 +20,7 @@
19
20
  "author": "Hugo Bessa",
20
21
  "license": "MIT",
21
22
  "peerDependencies": {
22
- "vintasend": "^0.11.2",
23
+ "vintasend": "^0.12.0",
23
24
  "@sendgrid/mail": "^8.1.6"
24
25
  },
25
26
  "devDependencies": {