feat(workflows): add Gmail sending and testing workflows
- Introduced a new `send-gmail` workflow for sending emails via Gmail SMTP, with configurable parameters for recipients, subject, and body content. - Added a `test-send-gmail` workflow to facilitate testing the email sending functionality with sample data. - Implemented a `track` workflow to monitor Gojek trips, enhancing the server's capabilities for tracking and notifications. - Updated the workflow management interface to include new workflows and improved organization of existing scripts. Co-authored-by: Nasyarobby Putra <nasyarobby@gmail.com>
This commit is contained in:
@@ -114,13 +114,14 @@ async function fetchHttp(ctx) {
|
||||
}
|
||||
|
||||
fetchHttp.meta = {
|
||||
description: "Fetch a URL and store the response body as-is (JSON stays an object)",
|
||||
description: "Fetch a URL and store the response body.",
|
||||
config: {
|
||||
url: { type: "string", required: true, description: "Request URL" },
|
||||
method: {
|
||||
type: "string",
|
||||
default: "GET",
|
||||
description: "HTTP method (GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS)",
|
||||
enum: ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
|
||||
description: "HTTP method",
|
||||
},
|
||||
headers: {
|
||||
type: "object",
|
||||
@@ -134,7 +135,12 @@ fetchHttp.meta = {
|
||||
},
|
||||
},
|
||||
input: {
|
||||
method: { type: "string", required: false, description: "Fallback when config.method is omitted" },
|
||||
method: {
|
||||
type: "string",
|
||||
required: false,
|
||||
enum: ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
|
||||
description: "Fallback when config.method is omitted",
|
||||
},
|
||||
headers: {
|
||||
type: "object",
|
||||
required: false,
|
||||
|
||||
Reference in New Issue
Block a user