Skip to content

Commit 9fccf17

Browse files
committed
some adjusts
1 parent 2622f7b commit 9fccf17

File tree

10 files changed

+9
-33
lines changed

10 files changed

+9
-33
lines changed

components/dixa/actions/add-message/add-message.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
},
4444
},
4545
async additionalProps(props) {
46-
props.agentId.hidden = !this.direction === "Outbound";
46+
props.agentId.hidden = !(this.direction === "Outbound");
4747
return {};
4848
},
4949
async run({ $ }) {

components/dixa/actions/create-conversation/create-conversation.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default {
6464
},
6565
},
6666
async additionalProps(props) {
67-
props.agentId.hidden = !this.direction === "Outbound";
67+
props.agentId.hidden = !(this.direction === "Outbound");
6868
props.channel.options = this.direction === "Outbound"
6969
? [
7070
"Email",

components/dixa/actions/set-custom-contact-attributes/set-custom-contact-attributes.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import dixa from "../../dixa.app.mjs";
33
export default {
44
key: "dixa-set-custom-contact-attributes",
55
name: "Set Custom Contact Attributes",
6-
description: "Updates custom attributes for a specified user. [See the documentation]()",
6+
description: "Updates custom attributes for a specified user. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Custom-Attributes/#tag/Custom-Attributes/operation/patchEndusersUseridCustom-attributes)",
77
version: "0.0.1",
88
type: "action",
99
props: {

components/dixa/common/utils.mjs

Lines changed: 0 additions & 24 deletions
This file was deleted.

components/dixa/sources/common/base.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939
},
4040
},
4141
async run({ body }) {
42-
const ts = Date.parse(new Date());
42+
const ts = Date.now();
4343
this.$emit(body, {
4444
id: body.event_id,
4545
summary: this.getSummary(body),

components/dixa/sources/conversation-status-changed-instant/conversation-status-changed-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
...common,
66
key: "dixa-conversation-status-changed-instant",
77
name: "New Conversation Status Changed (Instant)",
8-
description: "Emit new events when the status of a conversation changes (e.g., open, closed, or abandoned).",
8+
description: "Emit new events when the status of a conversation changes (e.g., open, closed, or abandoned). [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Webhooks/).",
99
version: "0.0.1",
1010
type: "source",
1111
dedupe: "unique",

components/dixa/sources/new-conversation-created-instant/new-conversation-created-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
...common,
66
key: "dixa-new-conversation-created-instant",
77
name: "New Conversation Created (Instant)",
8-
description: "Emit new event when a conversation is created in Dixa.",
8+
description: "Emit new event when a conversation is created in Dixa. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Webhooks/).",
99
version: "0.0.1",
1010
type: "source",
1111
dedupe: "unique",

components/dixa/sources/new-customer-satisfaction-rating-instant/new-customer-satisfaction-rating-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
...common,
66
key: "dixa-new-customer-satisfaction-rating-instant",
77
name: "New Customer Satisfaction Rating (Instant)",
8-
description: "Emit new event when a customer submits a satisfaction rating for a conversation.",
8+
description: "Emit new event when a customer submits a satisfaction rating for a conversation. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Webhooks/).",
99
version: "0.0.1",
1010
type: "source",
1111
dedupe: "unique",

components/dixa/sources/new-message-added-instant/new-message-added-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
...common,
66
key: "dixa-new-message-added-instant",
77
name: "New Message Added to Conversation (Instant)",
8-
description: "Emit new event when a new message is added to a conversation.",
8+
description: "Emit new event when a new message is added to a conversation. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Webhooks/).",
99
version: "0.0.1",
1010
type: "source",
1111
dedupe: "unique",

components/dixa/sources/new-tag-added-instant/new-tag-added-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
...common,
66
key: "dixa-new-tag-added-instant",
77
name: "New Tag Added in Conversation (Instant)",
8-
description: "Emit new event when a tag is added to a conversation.",
8+
description: "Emit new event when a tag is added to a conversation. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Webhooks/).",
99
version: "0.0.1",
1010
type: "source",
1111
dedupe: "unique",

0 commit comments

Comments
 (0)