From 123381780400df722ccc5972cdf13b615bd297cf Mon Sep 17 00:00:00 2001 From: Lucas Caresia Date: Thu, 3 Apr 2025 12:03:25 -0300 Subject: [PATCH 1/3] Added actions --- .../phone-valitadion/phone-valitadion.mjs | 28 + .../actions/real-contact/real-contact.mjs | 86 ++ .../actions/reverse-phone/reverse-phone.mjs | 28 + components/trestle/common/constants.mjs | 1000 +++++++++++++++++ components/trestle/package.json | 2 +- components/trestle/trestle.app.mjs | 100 +- 6 files changed, 1238 insertions(+), 6 deletions(-) create mode 100644 components/trestle/actions/phone-valitadion/phone-valitadion.mjs create mode 100644 components/trestle/actions/real-contact/real-contact.mjs create mode 100644 components/trestle/actions/reverse-phone/reverse-phone.mjs create mode 100644 components/trestle/common/constants.mjs diff --git a/components/trestle/actions/phone-valitadion/phone-valitadion.mjs b/components/trestle/actions/phone-valitadion/phone-valitadion.mjs new file mode 100644 index 0000000000000..e305e4c4d5bbd --- /dev/null +++ b/components/trestle/actions/phone-valitadion/phone-valitadion.mjs @@ -0,0 +1,28 @@ +import app from "../../trestle.app.mjs"; + +export default { + key: "trestle-phone-valitadion", + name: "Phone Valitadion", + description: "Validates phone numbers and provides phone metadata. [See the documentation](https://trestle-api.redoc.ly/Current/tag/Phone-Validation-API#operation/getPhoneValidation)", + version: "0.0.1", + type: "action", + props: { + app, + phone: { + propDefinition: [ + app, + "phone", + ], + }, + }, + async run({ $ }) { + const response = await this.app.phoneValidation({ + $, + params: { + phone: this.phone, + }, + }); + $.export("$summary", "Successfully executed phone validation"); + return response; + }, +}; diff --git a/components/trestle/actions/real-contact/real-contact.mjs b/components/trestle/actions/real-contact/real-contact.mjs new file mode 100644 index 0000000000000..ff5415989c4ae --- /dev/null +++ b/components/trestle/actions/real-contact/real-contact.mjs @@ -0,0 +1,86 @@ +import app from "../../trestle.app.mjs"; + +export default { + key: "trestle-real-contact", + name: "Real Contact", + description: "Verifies and grades phone numbers, emails, and addresses. [See the documentation](https://trestle-api.redoc.ly/Current/tag/Real-Contact-API#operation/realContact)", + version: "0.0.1", + type: "action", + props: { + app, + phone: { + propDefinition: [ + app, + "phone", + ], + }, + name: { + propDefinition: [ + app, + "name", + ], + }, + email: { + propDefinition: [ + app, + "email", + ], + }, + ipAddress: { + propDefinition: [ + app, + "ipAddress", + ], + }, + street: { + propDefinition: [ + app, + "street", + ], + }, + city: { + propDefinition: [ + app, + "city", + ], + }, + stateCode: { + propDefinition: [ + app, + "stateCode", + ], + }, + postalCode: { + propDefinition: [ + app, + "postalCode", + ], + }, + countryCode: { + propDefinition: [ + app, + "countryCode", + ], + }, + }, + async run({ $ }) { + const response = await this.app.realContact({ + $, + params: { + phone: this.phone, + name: this.name, + email: this.email, + ip_address: this.ipAddress, + address: { + street_line_1: this.street, + city: this.city, + state_code: this.stateCode, + postal_code: this.postalCode, + country_code: this.countryCode, + }, + }, + }); + $.export("$summary", "Successfully executed contact lookup"); + return response; + }, +}; diff --git a/components/trestle/actions/reverse-phone/reverse-phone.mjs b/components/trestle/actions/reverse-phone/reverse-phone.mjs new file mode 100644 index 0000000000000..f9b2b180bf69a --- /dev/null +++ b/components/trestle/actions/reverse-phone/reverse-phone.mjs @@ -0,0 +1,28 @@ +import app from "../../trestle.app.mjs"; + +export default { + key: "trestle-reverse-phone", + name: "Reverse Phone", + description: "Offers comprehensive verification and enrichment of phone numbers. [See the documentation](https://trestle-api.redoc.ly/Current/tag/Reverse-Phone-API#operation/getPhone)", + version: "0.0.1", + type: "action", + props: { + app, + phone: { + propDefinition: [ + app, + "phone", + ], + }, + }, + async run({ $ }) { + const response = await this.app.reversePhone({ + $, + params: { + phone: this.phone, + }, + }); + $.export("$summary", "Successfully executed reverse phone lookup"); + return response; + }, +}; diff --git a/components/trestle/common/constants.mjs b/components/trestle/common/constants.mjs new file mode 100644 index 0000000000000..14a6f66be135f --- /dev/null +++ b/components/trestle/common/constants.mjs @@ -0,0 +1,1000 @@ +export default { + COUNTRY_CODES: [ + { + "label": "Afghanistan", + "value": "AF", + }, + { + "label": "Albania", + "value": "AL", + }, + { + "label": "Algeria", + "value": "DZ", + }, + { + "label": "American Samoa", + "value": "AS", + }, + { + "label": "Andorra", + "value": "AD", + }, + { + "label": "Angola", + "value": "AO", + }, + { + "label": "Anguilla", + "value": "AI", + }, + { + "label": "Antarctica", + "value": "AQ", + }, + { + "label": "Antigua and Barbuda", + "value": "AG", + }, + { + "label": "Argentina", + "value": "AR", + }, + { + "label": "Armenia", + "value": "AM", + }, + { + "label": "Aruba", + "value": "AW", + }, + { + "label": "Australia", + "value": "AU", + }, + { + "label": "Austria", + "value": "AT", + }, + { + "label": "Azerbaijan", + "value": "AZ", + }, + { + "label": "Bahamas", + "value": "BS", + }, + { + "label": "Bahrain", + "value": "BH", + }, + { + "label": "Bangladesh", + "value": "BD", + }, + { + "label": "Barbados", + "value": "BB", + }, + { + "label": "Belarus", + "value": "BY", + }, + { + "label": "Belgium", + "value": "BE", + }, + { + "label": "Belize", + "value": "BZ", + }, + { + "label": "Benin", + "value": "BJ", + }, + { + "label": "Bermuda", + "value": "BM", + }, + { + "label": "Bhutan", + "value": "BT", + }, + { + "label": "Bolivia, Plurinational State of", + "value": "BO", + }, + { + "label": "Bonaire, Sint Eustatius and Saba", + "value": "BQ", + }, + { + "label": "Bosnia and Herzegovina", + "value": "BA", + }, + { + "label": "Botswana", + "value": "BW", + }, + { + "label": "Bouvet Island", + "value": "BV", + }, + { + "label": "Brazil", + "value": "BR", + }, + { + "label": "British Indian Ocean Territory", + "value": "IO", + }, + { + "label": "Brunei Darussalam", + "value": "BN", + }, + { + "label": "Bulgaria", + "value": "BG", + }, + { + "label": "Burkina Faso", + "value": "BF", + }, + { + "label": "Burundi", + "value": "BI", + }, + { + "label": "Cambodia", + "value": "KH", + }, + { + "label": "Cameroon", + "value": "CM", + }, + { + "label": "Canada", + "value": "CA", + }, + { + "label": "Cape Verde", + "value": "CV", + }, + { + "label": "Cayman Islands", + "value": "KY", + }, + { + "label": "Central African Republic", + "value": "CF", + }, + { + "label": "Chad", + "value": "TD", + }, + { + "label": "Chile", + "value": "CL", + }, + { + "label": "China", + "value": "CN", + }, + { + "label": "Christmas Island", + "value": "CX", + }, + { + "label": "Cocos (Keeling) Islands", + "value": "CC", + }, + { + "label": "Colombia", + "value": "CO", + }, + { + "label": "Comoros", + "value": "KM", + }, + { + "label": "Congo", + "value": "CG", + }, + { + "label": "Congo, the Democratic Republic of the", + "value": "CD", + }, + { + "label": "Cook Islands", + "value": "CK", + }, + { + "label": "Costa Rica", + "value": "CR", + }, + { + "label": "Croatia", + "value": "HR", + }, + { + "label": "Cuba", + "value": "CU", + }, + { + "label": "Curaçao", + "value": "CW", + }, + { + "label": "Cyprus", + "value": "CY", + }, + { + "label": "Czech Republic", + "value": "CZ", + }, + { + "label": "Côte d'Ivoire", + "value": "CI", + }, + { + "label": "Denmark", + "value": "DK", + }, + { + "label": "Djibouti", + "value": "DJ", + }, + { + "label": "Dominica", + "value": "DM", + }, + { + "label": "Dominican Republic", + "value": "DO", + }, + { + "label": "Ecuador", + "value": "EC", + }, + { + "label": "Egypt", + "value": "EG", + }, + { + "label": "El Salvador", + "value": "SV", + }, + { + "label": "Equatorial Guinea", + "value": "GQ", + }, + { + "label": "Eritrea", + "value": "ER", + }, + { + "label": "Estonia", + "value": "EE", + }, + { + "label": "Eswatini", + "value": "SZ", + }, + { + "label": "Ethiopia", + "value": "ET", + }, + { + "label": "Falkland Islands (Malvinas)", + "value": "FK", + }, + { + "label": "Faroe Islands", + "value": "FO", + }, + { + "label": "Fiji", + "value": "FJ", + }, + { + "label": "Finland", + "value": "FI", + }, + { + "label": "France", + "value": "FR", + }, + { + "label": "French Guiana", + "value": "GF", + }, + { + "label": "French Polynesia", + "value": "PF", + }, + { + "label": "French Southern Territories", + "value": "TF", + }, + { + "label": "Gabon", + "value": "GA", + }, + { + "label": "Gambia", + "value": "GM", + }, + { + "label": "Georgia", + "value": "GE", + }, + { + "label": "Germany", + "value": "DE", + }, + { + "label": "Ghana", + "value": "GH", + }, + { + "label": "Gibraltar", + "value": "GI", + }, + { + "label": "Greece", + "value": "GR", + }, + { + "label": "Greenland", + "value": "GL", + }, + { + "label": "Grenada", + "value": "GD", + }, + { + "label": "Guadeloupe", + "value": "GP", + }, + { + "label": "Guam", + "value": "GU", + }, + { + "label": "Guatemala", + "value": "GT", + }, + { + "label": "Guernsey", + "value": "GG", + }, + { + "label": "Guinea", + "value": "GN", + }, + { + "label": "Guinea-Bissau", + "value": "GW", + }, + { + "label": "Guyana", + "value": "GY", + }, + { + "label": "Haiti", + "value": "HT", + }, + { + "label": "Heard Island and McDonald Islands", + "value": "HM", + }, + { + "label": "Holy See (Vatican City State)", + "value": "VA", + }, + { + "label": "Honduras", + "value": "HN", + }, + { + "label": "Hong Kong", + "value": "HK", + }, + { + "label": "Hungary", + "value": "HU", + }, + { + "label": "Iceland", + "value": "IS", + }, + { + "label": "India", + "value": "IN", + }, + { + "label": "Indonesia", + "value": "ID", + }, + { + "label": "Iran, Islamic Republic of", + "value": "IR", + }, + { + "label": "Iraq", + "value": "IQ", + }, + { + "label": "Ireland", + "value": "IE", + }, + { + "label": "Isle of Man", + "value": "IM", + }, + { + "label": "Israel", + "value": "IL", + }, + { + "label": "Italy", + "value": "IT", + }, + { + "label": "Jamaica", + "value": "JM", + }, + { + "label": "Japan", + "value": "JP", + }, + { + "label": "Jersey", + "value": "JE", + }, + { + "label": "Jordan", + "value": "JO", + }, + { + "label": "Kazakhstan", + "value": "KZ", + }, + { + "label": "Kenya", + "value": "KE", + }, + { + "label": "Kiribati", + "value": "KI", + }, + { + "label": "Korea, Democratic People's Republic of", + "value": "KP", + }, + { + "label": "Korea, Republic of", + "value": "KR", + }, + { + "label": "Kuwait", + "value": "KW", + }, + { + "label": "Kyrgyzstan", + "value": "KG", + }, + { + "label": "Lao People's Democratic Republic", + "value": "LA", + }, + { + "label": "Latvia", + "value": "LV", + }, + { + "label": "Lebanon", + "value": "LB", + }, + { + "label": "Lesotho", + "value": "LS", + }, + { + "label": "Liberia", + "value": "LR", + }, + { + "label": "Libya", + "value": "LY", + }, + { + "label": "Liechtenstein", + "value": "LI", + }, + { + "label": "Lithuania", + "value": "LT", + }, + { + "label": "Luxembourg", + "value": "LU", + }, + { + "label": "Macao", + "value": "MO", + }, + { + "label": "Macedonia, the Former Yugoslav Republic of", + "value": "MK", + }, + { + "label": "Madagascar", + "value": "MG", + }, + { + "label": "Malawi", + "value": "MW", + }, + { + "label": "Malaysia", + "value": "MY", + }, + { + "label": "Maldives", + "value": "MV", + }, + { + "label": "Mali", + "value": "ML", + }, + { + "label": "Malta", + "value": "MT", + }, + { + "label": "Marshall Islands", + "value": "MH", + }, + { + "label": "Martinique", + "value": "MQ", + }, + { + "label": "Mauritania", + "value": "MR", + }, + { + "label": "Mauritius", + "value": "MU", + }, + { + "label": "Mayotte", + "value": "YT", + }, + { + "label": "Mexico", + "value": "MX", + }, + { + "label": "Micronesia, Federated States of", + "value": "FM", + }, + { + "label": "Moldova, Republic of", + "value": "MD", + }, + { + "label": "Monaco", + "value": "MC", + }, + { + "label": "Mongolia", + "value": "MN", + }, + { + "label": "Montenegro", + "value": "ME", + }, + { + "label": "Montserrat", + "value": "MS", + }, + { + "label": "Morocco", + "value": "MA", + }, + { + "label": "Mozambique", + "value": "MZ", + }, + { + "label": "Myanmar", + "value": "MM", + }, + { + "label": "Namibia", + "value": "NA", + }, + { + "label": "Nauru", + "value": "NR", + }, + { + "label": "Nepal", + "value": "NP", + }, + { + "label": "Netherlands", + "value": "NL", + }, + { + "label": "New Caledonia", + "value": "NC", + }, + { + "label": "New Zealand", + "value": "NZ", + }, + { + "label": "Nicaragua", + "value": "NI", + }, + { + "label": "Niger", + "value": "NE", + }, + { + "label": "Nigeria", + "value": "NG", + }, + { + "label": "Niue", + "value": "NU", + }, + { + "label": "Norfolk Island", + "value": "NF", + }, + { + "label": "Northern Mariana Islands", + "value": "MP", + }, + { + "label": "Norway", + "value": "NO", + }, + { + "label": "Oman", + "value": "OM", + }, + { + "label": "Pakistan", + "value": "PK", + }, + { + "label": "Palau", + "value": "PW", + }, + { + "label": "Palestine, State of", + "value": "PS", + }, + { + "label": "Panama", + "value": "PA", + }, + { + "label": "Papua New Guinea", + "value": "PG", + }, + { + "label": "Paraguay", + "value": "PY", + }, + { + "label": "Peru", + "value": "PE", + }, + { + "label": "Philippines", + "value": "PH", + }, + { + "label": "Pitcairn", + "value": "PN", + }, + { + "label": "Poland", + "value": "PL", + }, + { + "label": "Portugal", + "value": "PT", + }, + { + "label": "Puerto Rico", + "value": "PR", + }, + { + "label": "Qatar", + "value": "QA", + }, + { + "label": "Romania", + "value": "RO", + }, + { + "label": "Russian Federation", + "value": "RU", + }, + { + "label": "Rwanda", + "value": "RW", + }, + { + "label": "Réunion", + "value": "RE", + }, + { + "label": "Saint Barthélemy", + "value": "BL", + }, + { + "label": "Saint Helena, Ascension and Tristan da Cunha", + "value": "SH", + }, + { + "label": "Saint Kitts and Nevis", + "value": "KN", + }, + { + "label": "Saint Lucia", + "value": "LC", + }, + { + "label": "Saint Martin (French part)", + "value": "MF", + }, + { + "label": "Saint Pierre and Miquelon", + "value": "PM", + }, + { + "label": "Saint Vincent and the Grenadines", + "value": "VC", + }, + { + "label": "Samoa", + "value": "WS", + }, + { + "label": "San Marino", + "value": "SM", + }, + { + "label": "Sao Tome and Principe", + "value": "ST", + }, + { + "label": "Saudi Arabia", + "value": "SA", + }, + { + "label": "Senegal", + "value": "SN", + }, + { + "label": "Serbia", + "value": "RS", + }, + { + "label": "Seychelles", + "value": "SC", + }, + { + "label": "Sierra Leone", + "value": "SL", + }, + { + "label": "Singapore", + "value": "SG", + }, + { + "label": "Sint Maarten (Dutch part)", + "value": "SX", + }, + { + "label": "Slovakia", + "value": "SK", + }, + { + "label": "Slovenia", + "value": "SI", + }, + { + "label": "Solomon Islands", + "value": "SB", + }, + { + "label": "Somalia", + "value": "SO", + }, + { + "label": "South Africa", + "value": "ZA", + }, + { + "label": "South Georgia and the South Sandwich Islands", + "value": "GS", + }, + { + "label": "South Sudan", + "value": "SS", + }, + { + "label": "Spain", + "value": "ES", + }, + { + "label": "Sri Lanka", + "value": "LK", + }, + { + "label": "Sudan", + "value": "SD", + }, + { + "label": "Surilabel", + "value": "SR", + }, + { + "label": "Svalbard and Jan Mayen", + "value": "SJ", + }, + { + "label": "Sweden", + "value": "SE", + }, + { + "label": "Switzerland", + "value": "CH", + }, + { + "label": "Syrian Arab Republic", + "value": "SY", + }, + { + "label": "Taiwan, Province of China", + "value": "TW", + }, + { + "label": "Tajikistan", + "value": "TJ", + }, + { + "label": "Tanzania, United Republic of", + "value": "TZ", + }, + { + "label": "Thailand", + "value": "TH", + }, + { + "label": "Timor-Leste", + "value": "TL", + }, + { + "label": "Togo", + "value": "TG", + }, + { + "label": "Tokelau", + "value": "TK", + }, + { + "label": "Tonga", + "value": "TO", + }, + { + "label": "Trinidad and Tobago", + "value": "TT", + }, + { + "label": "Tunisia", + "value": "TN", + }, + { + "label": "Turkey", + "value": "TR", + }, + { + "label": "Turkmenistan", + "value": "TM", + }, + { + "label": "Turks and Caicos Islands", + "value": "TC", + }, + { + "label": "Tuvalu", + "value": "TV", + }, + { + "label": "Uganda", + "value": "UG", + }, + { + "label": "Ukraine", + "value": "UA", + }, + { + "label": "United Arab Emirates", + "value": "AE", + }, + { + "label": "United Kingdom", + "value": "GB", + }, + { + "label": "United States", + "value": "US", + }, + { + "label": "United States Minor Outlying Islands", + "value": "UM", + }, + { + "label": "Uruguay", + "value": "UY", + }, + { + "label": "Uzbekistan", + "value": "UZ", + }, + { + "label": "Vanuatu", + "value": "VU", + }, + { + "label": "Venezuela, Bolivarian Republic of", + "value": "VE", + }, + { + "label": "Viet Nam", + "value": "VN", + }, + { + "label": "Virgin Islands, British", + "value": "VG", + }, + { + "label": "Virgin Islands, U.S.", + "value": "VI", + }, + { + "label": "Wallis and Futuna", + "value": "WF", + }, + { + "label": "Western Sahara", + "value": "EH", + }, + { + "label": "Yemen", + "value": "YE", + }, + { + "label": "Zambia", + "value": "ZM", + }, + { + "label": "Zimbabwe", + "value": "ZW", + }, + { + "label": "Åland Islands", + "value": "AX", + }, + ], +}; diff --git a/components/trestle/package.json b/components/trestle/package.json index f814a6a9c2326..68261a280e2f8 100644 --- a/components/trestle/package.json +++ b/components/trestle/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/trestle", - "version": "0.0.1", + "version": "0.1.0", "description": "Pipedream Trestle Components", "main": "trestle.app.mjs", "keywords": [ diff --git a/components/trestle/trestle.app.mjs b/components/trestle/trestle.app.mjs index 69e0089a1372f..c98285ffe24f8 100644 --- a/components/trestle/trestle.app.mjs +++ b/components/trestle/trestle.app.mjs @@ -1,11 +1,101 @@ +import { axios } from "@pipedream/platform"; +import constants from "./common/constants.mjs"; + export default { type: "app", app: "trestle", - propDefinitions: {}, + propDefinitions: { + phone: { + type: "string", + label: "Phone", + description: "The phone number", + }, + name: { + type: "string", + label: "Name", + description: "The full name of the contact", + }, + email: { + type: "string", + label: "Email", + description: "The email address of the contact", + optional: true, + }, + ipAddress: { + type: "string", + label: "IP Address", + description: "The IP address associated with the contact", + optional: true, + }, + street: { + type: "string", + label: "Street", + description: "The street address of the contact", + optional: true, + }, + city: { + type: "string", + label: "City", + description: "The city of the contact", + optional: true, + }, + stateCode: { + type: "string", + label: "State Code", + description: "The two-letter state or province code", + optional: true, + }, + postalCode: { + type: "string", + label: "Postal Code", + description: "The postal or ZIP code", + optional: true, + }, + countryCode: { + type: "string", + label: "Country Code", + description: "The two-letter country code", + options: constants.COUNTRY_CODES, + optional: true, + }, + }, methods: { - // this.$auth contains connected account data - authKeys() { - console.log(Object.keys(this.$auth)); + _baseUrl() { + return "https://api.trestleiq.com"; + }, + async _makeRequest(opts = {}) { + const { + $ = this, + path, + params, + ...otherOpts + } = opts; + return axios($, { + ...otherOpts, + url: this._baseUrl() + path, + params: { + api_key: `${this.$auth.api_key}`, + ...params, + }, + }); + }, + async phoneValidation(args = {}) { + return this._makeRequest({ + path: "/3.0/phone_intel/", + ...args, + }); + }, + async realContact(args = {}) { + return this._makeRequest({ + path: "/1.1/real_contact", + ...args, + }); + }, + async reversePhone(args = {}) { + return this._makeRequest({ + path: "/3.2/phone", + ...args, + }); }, }, -}; \ No newline at end of file +}; From 17b0486186ae2d9f451e7f046e76e09633835347 Mon Sep 17 00:00:00 2001 From: Lucas Caresia Date: Thu, 10 Apr 2025 08:35:21 -0300 Subject: [PATCH 2/3] Added actions --- .../phone-validation/phone-validation.mjs | 28 +++++++++++++++++++ pnpm-lock.yaml | 10 +++---- 2 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 components/trestle/actions/phone-validation/phone-validation.mjs diff --git a/components/trestle/actions/phone-validation/phone-validation.mjs b/components/trestle/actions/phone-validation/phone-validation.mjs new file mode 100644 index 0000000000000..c509f0a96d03d --- /dev/null +++ b/components/trestle/actions/phone-validation/phone-validation.mjs @@ -0,0 +1,28 @@ +import app from "../../trestle.app.mjs"; + +export default { + key: "trestle-phone-validation", + name: "Phone Validation", + description: "Validates phone numbers and provides phone metadata. [See the documentation](https://trestle-api.redoc.ly/Current/tag/Phone-Validation-API#operation/getPhoneValidation)", + version: "0.0.1", + type: "action", + props: { + app, + phone: { + propDefinition: [ + app, + "phone", + ], + }, + }, + async run({ $ }) { + const response = await this.app.phoneValidation({ + $, + params: { + phone: this.phone, + }, + }); + $.export("$summary", "Successfully executed phone validation"); + return response; + }, +}; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 301177892c3ad..3a8dca010d19a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16451,8 +16451,8 @@ packages: '@dabh/diagnostics@2.0.3': resolution: {integrity: sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==} - '@definitelytyped/header-parser@0.2.18': - resolution: {integrity: sha512-3JWGzhieGOx+zhy+qaPDoiby2TPA1PZGpEJHt0VwR1aK0R9dER5BoBvnT5zSafg9kHQTw4aBRFbt3o41FNkaLw==} + '@definitelytyped/header-parser@0.2.19': + resolution: {integrity: sha512-zu+RxQpUCgorYUQZoyyrRIn9CljL1CeM4qak3NDeMO1r7tjAkodfpAGnVzx/6JR2OUk0tAgwmZxNMSwd9LVgxw==} engines: {node: '>=18.18.0'} '@definitelytyped/typescript-versions@0.1.8': @@ -32194,7 +32194,7 @@ snapshots: enabled: 2.0.0 kuler: 2.0.0 - '@definitelytyped/header-parser@0.2.18': + '@definitelytyped/header-parser@0.2.19': dependencies: '@definitelytyped/typescript-versions': 0.1.8 '@definitelytyped/utils': 0.1.8 @@ -38834,7 +38834,7 @@ snapshots: dts-critic@3.3.11(typescript@5.7.2): dependencies: - '@definitelytyped/header-parser': 0.2.18 + '@definitelytyped/header-parser': 0.2.19 command-exists: 1.2.9 rimraf: 3.0.2 semver: 6.3.1 @@ -38844,7 +38844,7 @@ snapshots: dtslint@4.2.1(typescript@5.7.2): dependencies: - '@definitelytyped/header-parser': 0.2.18 + '@definitelytyped/header-parser': 0.2.19 '@definitelytyped/typescript-versions': 0.1.8 '@definitelytyped/utils': 0.1.8 dts-critic: 3.3.11(typescript@5.7.2) From d934a777efc6b05eac39bc831b6a8b2bc0874cec Mon Sep 17 00:00:00 2001 From: michelle0927 Date: Thu, 10 Apr 2025 11:22:12 -0400 Subject: [PATCH 3/3] remove duplicate action --- .../phone-valitadion/phone-valitadion.mjs | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 components/trestle/actions/phone-valitadion/phone-valitadion.mjs diff --git a/components/trestle/actions/phone-valitadion/phone-valitadion.mjs b/components/trestle/actions/phone-valitadion/phone-valitadion.mjs deleted file mode 100644 index e305e4c4d5bbd..0000000000000 --- a/components/trestle/actions/phone-valitadion/phone-valitadion.mjs +++ /dev/null @@ -1,28 +0,0 @@ -import app from "../../trestle.app.mjs"; - -export default { - key: "trestle-phone-valitadion", - name: "Phone Valitadion", - description: "Validates phone numbers and provides phone metadata. [See the documentation](https://trestle-api.redoc.ly/Current/tag/Phone-Validation-API#operation/getPhoneValidation)", - version: "0.0.1", - type: "action", - props: { - app, - phone: { - propDefinition: [ - app, - "phone", - ], - }, - }, - async run({ $ }) { - const response = await this.app.phoneValidation({ - $, - params: { - phone: this.phone, - }, - }); - $.export("$summary", "Successfully executed phone validation"); - return response; - }, -};