Skip to content

Commit 524d196

Browse files
committed
updates
1 parent 214e592 commit 524d196

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

components/frontapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/frontapp",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"description": "Pipedream Frontapp Components",
55
"main": "frontapp.app.mjs",
66
"keywords": [

components/frontapp/sources/common/base.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
},
1515
methods: {
1616
_getLastTs() {
17-
return this.db.get("lastTs") ?? 1000000000;
17+
return this.db.get("lastTs") ?? 0;
1818
},
1919
_setLastTs(lastTs) {
2020
this.db.set("lastTs", lastTs);
@@ -36,6 +36,8 @@ export default {
3636
// If filterFn is provided, use it to filter items, otherwise add all items
3737
if (!filterFn || filterFn(item, lastTs)) {
3838
responseArray.push(item);
39+
} else {
40+
break; // done paginating
3941
}
4042
}
4143

components/frontapp/sources/new-conversation-created/new-conversation-created.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "frontapp-new-conversation-created",
77
name: "New Conversation Created",
88
description: "Emit new event when a conversation is created. [See the documentation](https://dev.frontapp.com/reference/list-conversations)",
9-
version: "0.0.2",
9+
version: "0.0.3",
1010
type: "source",
1111
dedupe: "unique",
1212
methods: {

components/frontapp/sources/new-conversation-state-change/new-conversation-state-change.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export default {
66
...common,
77
key: "frontapp-new-conversation-state-change",
88
name: "New Conversation State Change",
9-
description: "Emit new event when a conversation reaches a specific state. [See the documentation](https://dev.frontapp.com/reference/list-conversations)",
10-
version: "0.0.4",
9+
description: "Emit new event when a conversation reaches a specific state. [See the documentation](https://dev.frontapp.com/reference/list-events)",
10+
version: "0.0.5",
1111
type: "source",
1212
dedupe: "unique",
1313
props: {
@@ -28,6 +28,8 @@ export default {
2828
return {
2929
"q[after]": lastTs,
3030
"q[types]": this.types,
31+
"sort_by": "created_at",
32+
"sort_order": "desc",
3133
};
3234
},
3335
_getEmit(item) {

components/frontapp/sources/new-conversation-tag/new-conversation-tag.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "frontapp-new-conversation-tag",
77
name: "New Conversation Tag",
88
description: "Emit new event when a conversation is tagged with a specific tag or any tag. [See the documentation](https://dev.frontapp.com/reference/events)",
9-
version: "0.0.4",
9+
version: "0.0.5",
1010
type: "source",
1111
dedupe: "unique",
1212
props: {
@@ -30,6 +30,8 @@ export default {
3030
"q[types]": [
3131
"tag",
3232
],
33+
"sort_by": "created_at",
34+
"sort_order": "desc",
3335
};
3436
},
3537
_getEmit(item) {

components/frontapp/sources/new-message-template-created/new-message-template-created.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "frontapp-new-message-template-created",
77
name: "New Message Template Created",
88
description: "Emit new event when a message template is created. [See the documentation](https://dev.frontapp.com/reference/list-message-templates)",
9-
version: "0.0.2",
9+
version: "0.0.3",
1010
type: "source",
1111
dedupe: "unique",
1212
methods: {

0 commit comments

Comments
 (0)