diff --git a/components/krispcall/actions/add-contact/add-contact.mjs b/components/krispcall/actions/add-contact/add-contact.mjs index 2d1d299d6669a..51cb46159bd87 100644 --- a/components/krispcall/actions/add-contact/add-contact.mjs +++ b/components/krispcall/actions/add-contact/add-contact.mjs @@ -4,7 +4,7 @@ export default { key: "krispcall-add-contact", name: "Add Contact", description: "Creates a new contact. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)", - version: "0.0.2", + version: "0.0.3", type: "action", props: { krispcall, diff --git a/components/krispcall/actions/delete-contact/delete-contact.mjs b/components/krispcall/actions/delete-contact/delete-contact.mjs index 45488f064fe4f..76dab4bfa12b7 100644 --- a/components/krispcall/actions/delete-contact/delete-contact.mjs +++ b/components/krispcall/actions/delete-contact/delete-contact.mjs @@ -5,7 +5,7 @@ export default { key: "krispcall-delete-contact", name: "Delete Contact", description: "Deletes a list of contacts. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)", - version: "0.0.2", + version: "0.0.3", type: "action", props: { krispcall, diff --git a/components/krispcall/actions/new-mms/new-mms.mjs b/components/krispcall/actions/new-mms/new-mms.mjs index b7b9fd0b0d36c..7ec6ab109c6a0 100644 --- a/components/krispcall/actions/new-mms/new-mms.mjs +++ b/components/krispcall/actions/new-mms/new-mms.mjs @@ -4,7 +4,7 @@ export default { key: "krispcall-new-mms", name: "Send New MMS", description: "Send a new MMS to a contact. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)", - version: "0.0.2", + version: "0.0.3", type: "action", props: { krispcall, diff --git a/components/krispcall/actions/new-sms/new-sms.mjs b/components/krispcall/actions/new-sms/new-sms.mjs index a7d1c936f62e8..e06f529ba67de 100644 --- a/components/krispcall/actions/new-sms/new-sms.mjs +++ b/components/krispcall/actions/new-sms/new-sms.mjs @@ -4,7 +4,7 @@ export default { key: "krispcall-new-sms", name: "Send New SMS", description: "Send a new SMS to a number. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)", - version: "0.0.2", + version: "0.0.3", type: "action", props: { krispcall, diff --git a/components/krispcall/krispcall.app.mjs b/components/krispcall/krispcall.app.mjs index 6c6955f01ff2c..448ca5764e691 100644 --- a/components/krispcall/krispcall.app.mjs +++ b/components/krispcall/krispcall.app.mjs @@ -74,7 +74,11 @@ export default { }, methods: { _baseUrl() { - return "https://automationapi.krispcall.com/api/v1/platform/pipedream"; + // Base URL for Production + // return https://automationapi.krispcall.com/api/v1/platform/pipedream + + // Base URL for Development + return "https://automationqaapi.safefamilyapp.com/api/v1/platform/pipedream"; }, _headers() { return { diff --git a/components/krispcall/package.json b/components/krispcall/package.json index c5445a15121cc..d08444abeeb3a 100644 --- a/components/krispcall/package.json +++ b/components/krispcall/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/krispcall", - "version": "0.1.1", + "version": "0.2.0", "description": "Pipedream KrispCall Components", "main": "krispcall.app.mjs", "keywords": [ diff --git a/components/krispcall/sources/new-call-instant/new-call-instant.mjs b/components/krispcall/sources/new-call-instant/new-call-instant.mjs new file mode 100644 index 0000000000000..994b46c8daf44 --- /dev/null +++ b/components/krispcall/sources/new-call-instant/new-call-instant.mjs @@ -0,0 +1,22 @@ +import common from "../common/base.mjs"; +import sampleEmit from "./test-event.mjs"; + +export default { + ...common, + key: "krispcall-new-call-instant", + name: "New Call (Instant)", + description: "Emit new event when a new call is created.", + version: "0.0.1", + type: "source", + dedupe: "unique", + methods: { + ...common.methods, + getAction() { + return "new_call_log"; + }, + getSummary(body) { + return `New call from ${body.call_from} to ${body.call_to}`; + }, + }, + sampleEmit, +}; diff --git a/components/krispcall/sources/new-call-instant/test-event.mjs b/components/krispcall/sources/new-call-instant/test-event.mjs new file mode 100644 index 0000000000000..73f001c27c772 --- /dev/null +++ b/components/krispcall/sources/new-call-instant/test-event.mjs @@ -0,0 +1,9 @@ +export default { + "id": "neBKMVChtEeV5DSATpYzKZ", + "call_from": "+12565681662", + "call_to": "+12565307376", + "duration": "00 hr 00 min 13 secs", + "outcome": "Connected", + "direction": "Outgoing", + "call_recording": "https://qa.safefamilyapp.com/1c343d?vmid=0x21d2ee31ba6" +} \ No newline at end of file diff --git a/components/krispcall/sources/new-contact-instant/new-contact-instant.mjs b/components/krispcall/sources/new-contact-instant/new-contact-instant.mjs index dfeebfe8eb48d..4cb2914f2ab80 100644 --- a/components/krispcall/sources/new-contact-instant/new-contact-instant.mjs +++ b/components/krispcall/sources/new-contact-instant/new-contact-instant.mjs @@ -6,7 +6,7 @@ export default { key: "krispcall-new-contact-instant", name: "New Contact (Instant)", description: "Emit new event when a new contact is created.", - version: "0.0.2", + version: "0.0.3", type: "source", dedupe: "unique", methods: { diff --git a/components/krispcall/sources/new-sms-or-mms-instant/new-sms-or-mms-instant.mjs b/components/krispcall/sources/new-sms-or-mms-instant/new-sms-or-mms-instant.mjs index ed8e6da7bbebb..ba0076d08e5a7 100644 --- a/components/krispcall/sources/new-sms-or-mms-instant/new-sms-or-mms-instant.mjs +++ b/components/krispcall/sources/new-sms-or-mms-instant/new-sms-or-mms-instant.mjs @@ -6,7 +6,7 @@ export default { key: "krispcall-new-sms-or-mms-instant", name: "New SMS or MMS Sent (Instant)", description: "Emit new event when a new SMS or MMS is sent.", - version: "0.0.2", + version: "0.0.3", type: "source", dedupe: "unique", methods: { diff --git a/components/krispcall/sources/new-voicemail-instant/new-voicemail-instant.mjs b/components/krispcall/sources/new-voicemail-instant/new-voicemail-instant.mjs index 6f64c51b47d4d..74e42ed016258 100644 --- a/components/krispcall/sources/new-voicemail-instant/new-voicemail-instant.mjs +++ b/components/krispcall/sources/new-voicemail-instant/new-voicemail-instant.mjs @@ -6,7 +6,7 @@ export default { key: "krispcall-new-voicemail-instant", name: "New Voicemail (Instant)", description: "Emit new event when a new voicemail is sent.", - version: "0.0.2", + version: "0.0.3", type: "source", dedupe: "unique", methods: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 32e09a5d845c5..ea04be67c7901 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16402,12 +16402,12 @@ packages: '@dabh/diagnostics@2.0.3': resolution: {integrity: sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==} - '@definitelytyped/header-parser@0.2.17': - resolution: {integrity: sha512-U0juKFkTOcbkSfO83WSzMEJHYDwoBFiq0tf/JszulL3+7UoSiqunpGmxXS54bm3eGqy7GWjV8AqPQHdeoEaWBQ==} + '@definitelytyped/header-parser@0.2.18': + resolution: {integrity: sha512-3JWGzhieGOx+zhy+qaPDoiby2TPA1PZGpEJHt0VwR1aK0R9dER5BoBvnT5zSafg9kHQTw4aBRFbt3o41FNkaLw==} engines: {node: '>=18.18.0'} - '@definitelytyped/typescript-versions@0.1.7': - resolution: {integrity: sha512-sBzBi1SBn79OkSr8V0H+FzR7QumHk23syPyRxod/VRBrSkgN9rCliIe+nqLoWRAKN8EeKbp00ketnJNLZhucdA==} + '@definitelytyped/typescript-versions@0.1.8': + resolution: {integrity: sha512-iz6q9aTwWW7CzN2g8jFQfZ955D63LA+wdIAKz4+2pCc/7kokmEHie1/jVWSczqLFOlmH+69bWQxIurryBP/sig==} engines: {node: '>=18.18.0'} '@definitelytyped/utils@0.1.8': @@ -32151,13 +32151,13 @@ snapshots: enabled: 2.0.0 kuler: 2.0.0 - '@definitelytyped/header-parser@0.2.17': + '@definitelytyped/header-parser@0.2.18': dependencies: - '@definitelytyped/typescript-versions': 0.1.7 + '@definitelytyped/typescript-versions': 0.1.8 '@definitelytyped/utils': 0.1.8 semver: 7.7.1 - '@definitelytyped/typescript-versions@0.1.7': {} + '@definitelytyped/typescript-versions@0.1.8': {} '@definitelytyped/utils@0.1.8': dependencies: @@ -38807,7 +38807,7 @@ snapshots: dts-critic@3.3.11(typescript@5.7.2): dependencies: - '@definitelytyped/header-parser': 0.2.17 + '@definitelytyped/header-parser': 0.2.18 command-exists: 1.2.9 rimraf: 3.0.2 semver: 6.3.1 @@ -38817,8 +38817,8 @@ snapshots: dtslint@4.2.1(typescript@5.7.2): dependencies: - '@definitelytyped/header-parser': 0.2.17 - '@definitelytyped/typescript-versions': 0.1.7 + '@definitelytyped/header-parser': 0.2.18 + '@definitelytyped/typescript-versions': 0.1.8 '@definitelytyped/utils': 0.1.8 dts-critic: 3.3.11(typescript@5.7.2) fs-extra: 6.0.1