diff --git a/ses/aws.extern.d.ts b/ses/aws.extern.d.ts index dc9b5289..428a8090 100644 --- a/ses/aws.extern.d.ts +++ b/ses/aws.extern.d.ts @@ -1,6 +1,6 @@ export default interface extern { - _sendEmail: (options: SendEmailOptions) => Promise<(string) | undefined>, - _sendRawEmail: (options: SendRawEmailOptions) => Promise<(string) | undefined>, + _sendEmail: (options: SendEmailOptions) => Promise, + _sendRawEmail: (options: SendRawEmailOptions) => Promise, } export interface Destination { readonly BccAddresses?: ((readonly (string)[])) | undefined; diff --git a/ses/lib.w b/ses/lib.w index 15c19fd4..e2cb4ec3 100644 --- a/ses/lib.w +++ b/ses/lib.w @@ -23,6 +23,8 @@ pub class EmailService impl types.IEmailService { } nodeof(this.inner).hidden = true; + nodeof(this).icon = "inbox"; + nodeof(this).color = "pink"; } pub inflight sendEmail(options: types.SendEmailOptions): str? { diff --git a/ses/package-lock.json b/ses/package-lock.json index 3602ada1..f6ffab5a 100644 --- a/ses/package-lock.json +++ b/ses/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/ses", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/ses", - "version": "0.0.1", + "version": "0.0.2", "license": "MIT", "peerDependencies": { "@aws-sdk/client-ses": "^3.572.0", diff --git a/ses/package.json b/ses/package.json index 07271b0d..2c0ed309 100644 --- a/ses/package.json +++ b/ses/package.json @@ -1,7 +1,7 @@ { "name": "@winglibs/ses", "description": "Wing library for interacting with AWS SES", - "version": "0.0.1", + "version": "0.0.2", "repository": { "type": "git", "url": "https://github.com/winglang/winglibs.git", diff --git a/slack/README.md b/slack/README.md index b2f2f148..2689d869 100644 --- a/slack/README.md +++ b/slack/README.md @@ -122,15 +122,9 @@ Navigate back to your Slack App, under the Event Subscriptions section, paste th If you want to post directly to a channel, you can do so by using the following code: ```js -bring slack; -bring cloud; - -let slackbot = new slack.Slackbot(); - let postMessage = new cloud.Function(inflight () => { - let channel = slackbot.getChannel("NAME|ID"); - - channel.postText("hello world!"); + let channel = bot.channel("NAME|ID"); + channel.post("hello world!"); }); ``` diff --git a/slack/package.json b/slack/package.json index d7883903..3059ae2a 100644 --- a/slack/package.json +++ b/slack/package.json @@ -1,6 +1,6 @@ { "name": "@winglibs/slack", - "version": "0.1.0", + "version": "0.1.1", "description": "Slack library for Wing", "repository": { "type": "git", diff --git a/sns/lib.w b/sns/lib.w index 993a2f4f..e193925c 100644 --- a/sns/lib.w +++ b/sns/lib.w @@ -24,6 +24,10 @@ pub class MobileNotifications impl types.IMobileNotifications { } else { throw "Unsupported target {target}"; } + + nodeof(this.inner).hidden = true; + nodeof(this).icon = "chat-bubble-left"; + nodeof(this).color = "sky"; } pub inflight publish(options: types.PublishOptions): types.PublishResult {