Skip to content

Commit 15b1d12

Browse files
committed
email types
1 parent 8cbdc1b commit 15b1d12

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inspatial/cloud",
3-
"version": "0.6.12",
3+
"version": "0.6.13",
44
"license": "Apache-2.0",
55
"exports": {
66
".": "./mod.ts",

src/email/email-manager.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { InCloud } from "@inspatial/cloud/types";
22
import type { Email } from "./entries/_email.type.ts";
33
import type { EmailTemplate } from "./entries/_email-template.type.ts";
4-
import { InFilter } from "../orm/db/db-types.ts";
4+
import type { InFilter } from "../orm/db/db-types.ts";
5+
import type { GetListResponse } from "../orm/orm-types.ts";
56
interface SendEmailOptions {
67
recipientEmail: string;
78
subject: string;
@@ -22,7 +23,7 @@ export class EmailManager {
2223
account: string;
2324
entryType?: string;
2425
entryId?: string;
25-
}) {
26+
}): Promise<GetListResponse<Email>> {
2627
const orm = this.inCloud.orm;
2728

2829
const filters: InFilter[] = [{
@@ -66,7 +67,7 @@ export class EmailManager {
6667
params: Record<string, any>;
6768
now?: boolean;
6869
link: EmailLink;
69-
}) {
70+
}): Promise<any> {
7071
const { recipientEmail, templateId, params, now, link } = args;
7172
const orm = this.inCloud.orm;
7273
const template = await orm.getEntry<EmailTemplate>(

0 commit comments

Comments
 (0)