Skip to content

Commit 97224d2

Browse files
committed
Added actions generated by scripts
1 parent 973ccda commit 97224d2

File tree

15 files changed

+376
-0
lines changed

15 files changed

+376
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import infobip from "../../infobip-enhanced.app.mjs";
2+
3+
export default {
4+
key: "infobip-get-inbound-sms-messages",
5+
name: "Get Inbound SMS Messages",
6+
description:
7+
"Get inbound SMS messages If you are unable to receive incoming SMS to the endpoint of your choice in real-time, you can use this API call to fetch messages. Each request will return a batch of rece... [See the documentation](https://www.infobip.com/docs/api)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
infobip
12+
},
13+
async run({ $ }) {
14+
const { infobip, ...params } = this;
15+
16+
const response = await infobip.getInboundSmsMessages({ $ });
17+
18+
$.export(
19+
"$summary",
20+
`Data retrieved successfully: ${response.status?.description || "Success"}`
21+
);
22+
return response;
23+
},
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import infobip from "../../infobip-enhanced.app.mjs";
2+
3+
export default {
4+
key: "infobip-get-outbound-sms-message-delivery-reports-v3",
5+
name: "Get Outbound SMS Message Delivery Reports V3",
6+
description:
7+
"Get outbound SMS message delivery reports If you are unable to receive real-time message delivery reports towards your endpoint for various reasons, we offer you an API method to fetch batches of m... [See the documentation](https://www.infobip.com/docs/sms)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
infobip
12+
},
13+
async run({ $ }) {
14+
const { infobip, ...params } = this;
15+
16+
const response = await infobip.getOutboundSmsMessageDeliveryReportsV3({ $ });
17+
18+
$.export(
19+
"$summary",
20+
`Data retrieved successfully: ${response.status?.description || "Success"}`
21+
);
22+
return response;
23+
},
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import infobip from "../../infobip-enhanced.app.mjs";
2+
3+
export default {
4+
key: "infobip-get-outbound-sms-message-delivery-reports",
5+
name: "Get Outbound SMS Message Delivery Reports",
6+
description:
7+
"Get outbound SMS message delivery reports If you are for any reason unable to receive real-time delivery reports on your endpoint, you can use this API method to learn if and when the message has b... [See the documentation](https://www.infobip.com/docs/sms)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
infobip
12+
},
13+
async run({ $ }) {
14+
const { infobip, ...params } = this;
15+
16+
const response = await infobip.getOutboundSmsMessageDeliveryReports({ $ });
17+
18+
$.export(
19+
"$summary",
20+
`Data retrieved successfully: ${response.status?.description || "Success"}`
21+
);
22+
return response;
23+
},
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import infobip from "../../infobip-enhanced.app.mjs";
2+
3+
export default {
4+
key: "infobip-get-outbound-sms-message-logs-v3",
5+
name: "Get Outbound SMS Message Logs V3",
6+
description:
7+
"Get outbound SMS message logs Use this method to obtain the logs associated with outbound messages. The available logs are limited to those generated in the last 48 hours, and you can retrieve a ma... [See the documentation](https://www.infobip.com/docs/sms)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
infobip
12+
},
13+
async run({ $ }) {
14+
const { infobip, ...params } = this;
15+
16+
const response = await infobip.getOutboundSmsMessageLogsV3({ $ });
17+
18+
$.export(
19+
"$summary",
20+
`Data retrieved successfully: ${response.status?.description || "Success"}`
21+
);
22+
return response;
23+
},
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import infobip from "../../infobip-enhanced.app.mjs";
2+
3+
export default {
4+
key: "infobip-get-outbound-sms-message-logs",
5+
name: "Get Outbound SMS Message Logs",
6+
description:
7+
"Get outbound SMS message logs Use this method for displaying logs for example in the user interface. Available are the logs for the last 48 hours and you can only retrieve maximum of 1000 logs per ... [See the documentation](https://www.infobip.com/docs/sms)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
infobip
12+
},
13+
async run({ $ }) {
14+
const { infobip, ...params } = this;
15+
16+
const response = await infobip.getOutboundSmsMessageLogs({ $ });
17+
18+
$.export(
19+
"$summary",
20+
`Data retrieved successfully: ${response.status?.description || "Success"}`
21+
);
22+
return response;
23+
},
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import infobip from "../../infobip-enhanced.app.mjs";
2+
3+
export default {
4+
key: "infobip-get-scheduled-sms-messages-status",
5+
name: "Get Scheduled SMS Messages Status",
6+
description:
7+
"Get scheduled SMS messages status See the status of [scheduled messages](https://www.infobip.com/docs/sms/sms-over-api#schedule-sms). To schedule a message, use the `sendAt` field when [sending a m... [See the documentation](https://www.infobip.com/docs/sms)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
infobip
12+
},
13+
async run({ $ }) {
14+
const { infobip, ...params } = this;
15+
16+
const response = await infobip.getScheduledSmsMessagesStatus({ $ });
17+
18+
$.export(
19+
"$summary",
20+
`Data retrieved successfully: ${response.status?.description || "Success"}`
21+
);
22+
return response;
23+
},
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import infobip from "../../infobip-enhanced.app.mjs";
2+
3+
export default {
4+
key: "infobip-get-scheduled-sms-messages",
5+
name: "Get Scheduled SMS Messages",
6+
description:
7+
"Get scheduled SMS messages See all [scheduled messages](https://www.infobip.com/docs/sms/sms-over-api#schedule-sms) and their scheduled date and time. To schedule a message, use the `sendAt` field ... [See the documentation](https://www.infobip.com/docs/sms)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
infobip
12+
},
13+
async run({ $ }) {
14+
const { infobip, ...params } = this;
15+
16+
const response = await infobip.getScheduledSmsMessages({ $ });
17+
18+
$.export(
19+
"$summary",
20+
`Data retrieved successfully: ${response.status?.description || "Success"}`
21+
);
22+
return response;
23+
},
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import infobip from "../../infobip-enhanced.app.mjs";
2+
3+
export default {
4+
key: "infobip-log-end-tag",
5+
name: "Confirm Conversion (Log End Tag)",
6+
description:
7+
"Confirm conversion Use this endpoint to inform the Infobip platform about the successful conversion on your side. Infobip will use this information to monitor SMS performance and provide you with b... [See the documentation](https://www.infobip.com/docs/api)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
infobip
12+
},
13+
async run({ $ }) {
14+
const { infobip, ...params } = this;
15+
16+
const response = await infobip.logEndTag({ $ });
17+
18+
$.export(
19+
"$summary",
20+
`Conversion logged successfully: ${response.status?.description || "Success"}`
21+
);
22+
return response;
23+
},
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import infobip from "../../infobip-enhanced.app.mjs";
2+
3+
export default {
4+
key: "infobip-reschedule-sms-messages",
5+
name: "Reschedule SMS Messages",
6+
description:
7+
"Reschedule SMS messages Change the date and time of already [scheduled messages](https://www.infobip.com/docs/sms/sms-over-api#schedule-sms). To schedule a message, use the `sendAt` field when [sen... [See the documentation](https://www.infobip.com/docs/sms)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
infobip
12+
},
13+
async run({ $ }) {
14+
const { infobip, ...params } = this;
15+
16+
const response = await infobip.rescheduleSmsMessages({ $ });
17+
18+
$.export(
19+
"$summary",
20+
`Update completed successfully: ${response.status?.description || "Success"}`
21+
);
22+
return response;
23+
},
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import infobip from "../../infobip-enhanced.app.mjs";
2+
3+
export default {
4+
key: "infobip-send-binary-sms-message",
5+
name: "Send Binary SMS Message",
6+
description:
7+
"Send binary SMS message Send single or multiple binary messages to one or more destination address. The API response will not contain the final delivery status, use [Delivery Reports](https://www.i... [See the documentation](https://www.infobip.com/docs/sms)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
infobip
12+
},
13+
async run({ $ }) {
14+
const { infobip, ...params } = this;
15+
16+
const response = await infobip.sendBinarySmsMessage({ $ });
17+
18+
$.export(
19+
"$summary",
20+
`Message sent successfully: ${response.status?.description || "Success"}`
21+
);
22+
return response;
23+
},
24+
};

0 commit comments

Comments
 (0)