Skip to content

Commit 2feb582

Browse files
authored
Krispcall New Call Trigger (#16166)
* wip * updates * pnpm-lock.yaml * add comment about base url
1 parent ebda587 commit 2feb582

File tree

11 files changed

+44
-9
lines changed

11 files changed

+44
-9
lines changed

components/krispcall/actions/add-contact/add-contact.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "krispcall-add-contact",
55
name: "Add Contact",
66
description: "Creates a new contact. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
krispcall,

components/krispcall/actions/delete-contact/delete-contact.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "krispcall-delete-contact",
66
name: "Delete Contact",
77
description: "Deletes a list of contacts. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "action",
1010
props: {
1111
krispcall,

components/krispcall/actions/new-mms/new-mms.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "krispcall-new-mms",
55
name: "Send New MMS",
66
description: "Send a new MMS to a contact. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
krispcall,

components/krispcall/actions/new-sms/new-sms.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "krispcall-new-sms",
55
name: "Send New SMS",
66
description: "Send a new SMS to a number. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
krispcall,

components/krispcall/krispcall.app.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ export default {
7474
},
7575
methods: {
7676
_baseUrl() {
77-
return "https://automationapi.krispcall.com/api/v1/platform/pipedream";
77+
// Base URL for Production
78+
// return https://automationapi.krispcall.com/api/v1/platform/pipedream
79+
80+
// Base URL for Development
81+
return "https://automationqaapi.safefamilyapp.com/api/v1/platform/pipedream";
7882
},
7983
_headers() {
8084
return {

components/krispcall/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/krispcall",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"description": "Pipedream KrispCall Components",
55
"main": "krispcall.app.mjs",
66
"keywords": [
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import common from "../common/base.mjs";
2+
import sampleEmit from "./test-event.mjs";
3+
4+
export default {
5+
...common,
6+
key: "krispcall-new-call-instant",
7+
name: "New Call (Instant)",
8+
description: "Emit new event when a new call is created.",
9+
version: "0.0.1",
10+
type: "source",
11+
dedupe: "unique",
12+
methods: {
13+
...common.methods,
14+
getAction() {
15+
return "new_call_log";
16+
},
17+
getSummary(body) {
18+
return `New call from ${body.call_from} to ${body.call_to}`;
19+
},
20+
},
21+
sampleEmit,
22+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export default {
2+
"id": "neBKMVChtEeV5DSATpYzKZ",
3+
"call_from": "+12565681662",
4+
"call_to": "+12565307376",
5+
"duration": "00 hr 00 min 13 secs",
6+
"outcome": "Connected",
7+
"direction": "Outgoing",
8+
"call_recording": "https://qa.safefamilyapp.com/1c343d?vmid=0x21d2ee31ba6"
9+
}

components/krispcall/sources/new-contact-instant/new-contact-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "krispcall-new-contact-instant",
77
name: "New Contact (Instant)",
88
description: "Emit new event when a new contact is created.",
9-
version: "0.0.2",
9+
version: "0.0.3",
1010
type: "source",
1111
dedupe: "unique",
1212
methods: {

components/krispcall/sources/new-sms-or-mms-instant/new-sms-or-mms-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "krispcall-new-sms-or-mms-instant",
77
name: "New SMS or MMS Sent (Instant)",
88
description: "Emit new event when a new SMS or MMS is sent.",
9-
version: "0.0.2",
9+
version: "0.0.3",
1010
type: "source",
1111
dedupe: "unique",
1212
methods: {

0 commit comments

Comments
 (0)