Skip to content

Commit

Permalink
Merge branch 'main' into sns-mobile-rename
Browse files Browse the repository at this point in the history
  • Loading branch information
eladcon authored Jun 2, 2024
2 parents ad19403 + 41add1a commit 0a068de
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions ses/aws.extern.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default interface extern {
_sendEmail: (options: SendEmailOptions) => Promise<(string) | undefined>,
_sendRawEmail: (options: SendRawEmailOptions) => Promise<(string) | undefined>,
_sendEmail: (options: SendEmailOptions) => Promise<string | void>,
_sendRawEmail: (options: SendRawEmailOptions) => Promise<string | void>,
}
export interface Destination {
readonly BccAddresses?: ((readonly (string)[])) | undefined;
Expand Down
2 changes: 2 additions & 0 deletions ses/lib.w
Original file line number Diff line number Diff line change
Expand Up @@ -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? {
Expand Down
4 changes: 2 additions & 2 deletions ses/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ses/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 2 additions & 8 deletions slack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
});
```

Expand Down
2 changes: 1 addition & 1 deletion slack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@winglibs/slack",
"version": "0.1.0",
"version": "0.1.1",
"description": "Slack library for Wing",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions sns/lib.w
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0a068de

Please sign in to comment.