Skip to content

Commit 08133ea

Browse files
authored
Refactor KrispCall components to use new v3 API (#17809)
* wip * updates * pnpm-lock.yaml * version * pnpm-lock.yaml * pnpm-lock.yaml * pnpm-lock.yaml * switch base_url to production
1 parent 54b31a6 commit 08133ea

File tree

11 files changed

+21
-16
lines changed

11 files changed

+21
-16
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import krispcall from "../../krispcall.app.mjs";
33
export default {
44
key: "krispcall-add-contact",
55
name: "Add Contact",
6-
description: "Creates a new contact. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)",
7-
version: "0.0.4",
6+
description: "Creates a new contact. [See the documentation](https://documenter.getpostman.com/view/38507826/2sB2xEA8V5#12ee9977-7639-479c-8931-d92f7d7f9dfe)",
7+
version: "0.0.5",
88
type: "action",
99
props: {
1010
krispcall,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import krispcall from "../../krispcall.app.mjs";
44
export default {
55
key: "krispcall-delete-contact",
66
name: "Delete Contact",
7-
description: "Deletes a list of contacts. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)",
8-
version: "0.0.4",
7+
description: "Deletes a list of contacts. [See the documentation](https://documenter.getpostman.com/view/38507826/2sB2xEA8V5#fa88b9ed-84fe-49f7-acc1-a37169fc6cb0)",
8+
version: "0.0.5",
99
type: "action",
1010
props: {
1111
krispcall,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import krispcall from "../../krispcall.app.mjs";
33
export default {
44
key: "krispcall-new-mms",
55
name: "Send New MMS",
6-
description: "Send a new MMS to a contact. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)",
7-
version: "0.0.4",
6+
description: "Send a new MMS to a contact. [See the documentation](https://documenter.getpostman.com/view/38507826/2sB2xEA8V5#a5e31a96-ff7a-48cf-9f12-e1215e90970a)",
7+
version: "0.0.5",
88
type: "action",
99
props: {
1010
krispcall,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import krispcall from "../../krispcall.app.mjs";
33
export default {
44
key: "krispcall-new-sms",
55
name: "Send New SMS",
6-
description: "Send a new SMS to a number. [See the documentation](https://documenter.getpostman.com/view/32476792/2sA3dxFCaL)",
7-
version: "0.0.4",
6+
description: "Send a new SMS to a number. [See the documentation](https://documenter.getpostman.com/view/38507826/2sB2xEA8V5#be2f5790-43b5-482e-9f4e-c9e8cb9fd633)",
7+
version: "0.0.5",
88
type: "action",
99
props: {
1010
krispcall,

components/krispcall/krispcall.app.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
number: {
88
type: "string",
99
label: "Number",
10-
description: "The phone number of the contact",
10+
description: "The phone number of the contact. Example: `+16789296543`",
1111
},
1212
name: {
1313
type: "string",
@@ -75,10 +75,10 @@ export default {
7575
methods: {
7676
_baseUrl() {
7777
// Base URL for Production
78-
return "https://automationapi.krispcall.com/api/v1/platform/pipedream";
78+
return "https://automationapi.krispcall.com/api/v3/platform/pipedream";
7979

8080
// Base URL for Development
81-
// return "https://automationqaapi.safefamilyapp.com/api/v1/platform/pipedream";
81+
// return "https://qa.safefamilyapp.com/api/v3/platform/pipedream";
8282
},
8383
_headers() {
8484
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.2.2",
3+
"version": "0.2.3",
44
"description": "Pipedream KrispCall Components",
55
"main": "krispcall.app.mjs",
66
"keywords": [

components/krispcall/sources/common/base.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ export default {
88
customResponse: false,
99
},
1010
db: "$.service.db",
11+
alert: {
12+
type: "alert",
13+
alertType: "info",
14+
content: "Note: Krispcall webhook triggers will emit events for changes made via the KrispCall UI, but not via the API.",
15+
},
1116
},
1217
methods: {
1318
_setHookId(hookId) {

components/krispcall/sources/new-call-instant/new-call-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-call-instant",
77
name: "New Call (Instant)",
88
description: "Emit new event when a new call is created.",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
type: "source",
1111
dedupe: "unique",
1212
methods: {

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.4",
9+
version: "0.0.5",
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.4",
9+
version: "0.0.5",
1010
type: "source",
1111
dedupe: "unique",
1212
methods: {

0 commit comments

Comments
 (0)