-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New Components - apiverve #16164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
New Components - apiverve #16164
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import apiverve from "../../apiverve.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "apiverve-dns-lookup", | ||
| name: "DNS Lookup", | ||
| description: "Look up the DNS records of a domain. [See the documentation](https://docs.apiverve.com/api/dnslookup)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| apiverve, | ||
| domain: { | ||
| propDefinition: [ | ||
| apiverve, | ||
| "domain", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.apiverve.dnsLookup({ | ||
| $, | ||
| params: { | ||
| domain: this.domain, | ||
| }, | ||
| }); | ||
| if (response?.status === "ok") { | ||
| $.export("$summary", `Successfully retrieved DNS records for ${this.domain}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; |
29 changes: 29 additions & 0 deletions
29
components/apiverve/actions/get-dictionary-definition/get-dictionary-definition.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import apiverve from "../../apiverve.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "apiverve-get-dictionary-definition", | ||
| name: "Get Dictionary Definition", | ||
| description: "Get the definition of a word. [See the documentation](https://docs.apiverve.com/api/dictionary)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| apiverve, | ||
| word: { | ||
| type: "string", | ||
| label: "Word", | ||
| description: "The word for which you want to get the definition (e.g., apple)", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.apiverve.getDictionaryDefinition({ | ||
| $, | ||
| params: { | ||
| word: this.word, | ||
| }, | ||
| }); | ||
| if (response?.status === "ok") { | ||
| $.export("$summary", `Successfully retrieved definition of ${this.word}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| import apiverve from "../../apiverve.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "apiverve-get-weather", | ||
| name: "Get Weather", | ||
| description: "Return the temperature, humidity, and more for a given location. [See the documentation](https://docs.apiverve.com/api/weatherforecast)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| apiverve, | ||
| lookupType: { | ||
| type: "string", | ||
| label: "Lookup Type", | ||
| description: "Whether to search by city or zip code", | ||
| options: [ | ||
| "city", | ||
| "zip code", | ||
| ], | ||
| reloadProps: true, | ||
| }, | ||
| }, | ||
| additionalProps() { | ||
| const props = {}; | ||
| if (!this.lookupType) { | ||
| return props; | ||
| } | ||
| if (this.lookupType === "city") { | ||
| props.city = { | ||
| type: "string", | ||
| label: "City", | ||
| description: "The city for which you want to get the current weather (e.g., San Francisco)", | ||
| }; | ||
| } | ||
| if (this.lookupType === "zip code") { | ||
| props.zip = { | ||
| type: "string", | ||
| label: "Zip Code", | ||
| description: "The zip code for which you want to get the current weather (e.g., 64082)", | ||
| }; | ||
| } | ||
| return props; | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.apiverve.getWeather({ | ||
| $, | ||
| params: { | ||
| domain: this.domain, | ||
| city: this.city, | ||
| zip: this.zip, | ||
| }, | ||
| }); | ||
| if (response?.status === "ok") { | ||
| $.export("$summary", `Successfully retrieved weather for ${this.city || this.zip}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; | ||
29 changes: 29 additions & 0 deletions
29
components/apiverve/actions/ip-blacklist-lookup/ip-blacklist-lookup.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import apiverve from "../../apiverve.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "apiverve-ip-blacklist-lookup", | ||
| name: "IP Blacklist Lookup", | ||
| description: "Lookup if an IP address is in a blacklist. [See the documentation](https://docs.apiverve.com/api/ipblacklistlookup)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| apiverve, | ||
| ip: { | ||
| type: "string", | ||
| label: "IP Address", | ||
| description: "The IP address to lookup in the blacklist (e.g., 201.23.192.173)", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.apiverve.ipBlacklistLookup({ | ||
| $, | ||
| params: { | ||
| ip: this.ip, | ||
| }, | ||
| }); | ||
| if (response?.status === "ok") { | ||
| $.export("$summary", `Successfully retrieved data for ${this.ip}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import apiverve from "../../apiverve.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "apiverve-moon-phases", | ||
| name: "Moon Phases", | ||
| description: "Retrieve the moon phase for a given date. [See the documentation](https://docs.apiverve.com/api/moonphases)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| apiverve, | ||
| date: { | ||
| type: "string", | ||
| label: "Date", | ||
| description: "The date for which you want to get the moon phase (e.g., MM-DD-YYYY : 01-01-2022)", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.apiverve.moonPhases({ | ||
| $, | ||
| params: { | ||
| date: this.date, | ||
| }, | ||
| }); | ||
| if (response?.status === "ok") { | ||
| $.export("$summary", `Successfully retrieved moon phases for ${this.date}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; |
29 changes: 29 additions & 0 deletions
29
components/apiverve/actions/number-to-words/number-to-words.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import apiverve from "../../apiverve.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "apiverve-number-to-words", | ||
| name: "Number to Words", | ||
| description: "A simple tool for converting numbers to words. Returns the number in words. [See the documentation](https://docs.apiverve.com/api/numbertowords)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| apiverve, | ||
| number: { | ||
| type: "string", | ||
| label: "Number", | ||
| description: "The number to convert to words", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.apiverve.numberToWords({ | ||
| $, | ||
| params: { | ||
| number: this.number, | ||
| }, | ||
| }); | ||
| if (response?.status === "ok") { | ||
| $.export("$summary", "Successfully converted number to words"); | ||
| } | ||
| return response; | ||
| }, | ||
| }; |
35 changes: 35 additions & 0 deletions
35
components/apiverve/actions/phone-number-validator/phone-number-validator.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| import apiverve from "../../apiverve.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "apiverve-phone-number-validator", | ||
| name: "Phone Number Validator", | ||
| description: "Check whether a phone number is valid or not. [See the documentation](https://docs.apiverve.com/api/phonenumbervalidator)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| apiverve, | ||
| number: { | ||
| type: "string", | ||
| label: "Phone Number", | ||
| description: "The phone number to validate", | ||
| }, | ||
| country: { | ||
| type: "string", | ||
| label: "Country", | ||
| description: "The country code of the phone number (e.g., us, uk)", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.apiverve.phoneNumberValidator({ | ||
| $, | ||
| params: { | ||
| number: this.number, | ||
| country: this.country, | ||
| }, | ||
| }); | ||
| if (response?.status === "ok") { | ||
| $.export("$summary", `Successfully retrieved validation info for ${this.number}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; |
29 changes: 29 additions & 0 deletions
29
components/apiverve/actions/routing-number-lookup/routing-number-lookup.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import apiverve from "../../apiverve.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "apiverve-routing-number-lookup", | ||
| name: "Routing Number Lookup", | ||
| description: "Lookup routing number information for USA Banks. [See the documentation](https://docs.apiverve.com/api/routinglookup)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| apiverve, | ||
| routing: { | ||
| type: "string", | ||
| label: "Routing Number", | ||
| description: "The routing number to lookup information about (e.g., 121000358)", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.apiverve.routingNumberLookup({ | ||
| $, | ||
| params: { | ||
| routing: this.routing, | ||
| }, | ||
| }); | ||
| if (response?.status === "ok") { | ||
| $.export("$summary", `Successfully retrieved routing number information for ${this.routing}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; |
29 changes: 29 additions & 0 deletions
29
components/apiverve/actions/street-address-parser/street-address-parser.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import apiverve from "../../apiverve.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "apiverve-street-address-parses", | ||
| name: "Street Address Parser", | ||
| description: "Parse a US street addresses and return the parsed components of the street address provided. [See the documentation]https://docs.apiverve.com/api/streetaddressparser)", | ||
michelle0927 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| apiverve, | ||
| address: { | ||
| type: "string", | ||
| label: "Address", | ||
| description: "The street address to parse", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.apiverve.streetAddressParser({ | ||
| $, | ||
| params: { | ||
| address: this.address, | ||
| }, | ||
| }); | ||
| if (response?.status === "ok") { | ||
| $.export("$summary", "Successfully parsed street address"); | ||
| } | ||
| return response; | ||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import apiverve from "../../apiverve.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "apiverve-whois-lookup", | ||
| name: "Whois Lookup", | ||
| description: "Check the registration of a domain name. [See the documentation](https://docs.apiverve.com/api/whoislookup)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| apiverve, | ||
| domain: { | ||
| propDefinition: [ | ||
| apiverve, | ||
| "domain", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.apiverve.whoisLookup({ | ||
| $, | ||
| params: { | ||
| domain: this.domain, | ||
| }, | ||
| }); | ||
| if (response?.status === "ok") { | ||
| $.export("$summary", `Successfully retrieved WHOIS records for ${this.domain}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.