@pipedream/freshdesk 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/freshdesk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Pipedream Freshdesk Components",
|
|
5
5
|
"main": "freshdesk.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@pipedream/platform": "^
|
|
17
|
+
"@pipedream/platform": "^1.2.0",
|
|
18
18
|
"async-retry": "^1.3.3",
|
|
19
19
|
"moment": "2.29.2"
|
|
20
20
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import freshdesk from "../../freshdesk.app.mjs";
|
|
2
2
|
import moment from "moment";
|
|
3
|
+
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
|
|
3
4
|
|
|
4
5
|
export default {
|
|
5
6
|
key: "freshdesk-new-contact",
|
|
6
7
|
name: "New Contact",
|
|
7
8
|
description: "Emit new notifications when a new contact is created",
|
|
8
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.2",
|
|
9
10
|
type: "source",
|
|
10
11
|
props: {
|
|
11
12
|
freshdesk,
|
|
@@ -14,7 +15,7 @@ export default {
|
|
|
14
15
|
description: "Pipedream will poll Harvest API on this schedule",
|
|
15
16
|
type: "$.interface.timer",
|
|
16
17
|
default: {
|
|
17
|
-
intervalSeconds:
|
|
18
|
+
intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
|
|
18
19
|
},
|
|
19
20
|
},
|
|
20
21
|
db: "$.service.db",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import freshdesk from "../../freshdesk.app.mjs";
|
|
2
2
|
import moment from "moment";
|
|
3
|
+
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
|
|
3
4
|
|
|
4
5
|
export default {
|
|
5
6
|
key: "freshdesk-new-ticket",
|
|
6
7
|
name: "New Ticket",
|
|
7
8
|
description: "Emit new notifications when a new ticket is created",
|
|
8
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.2",
|
|
9
10
|
type: "source",
|
|
10
11
|
props: {
|
|
11
12
|
freshdesk,
|
|
@@ -14,7 +15,7 @@ export default {
|
|
|
14
15
|
description: "Pipedream will poll Harvest API on this schedule",
|
|
15
16
|
type: "$.interface.timer",
|
|
16
17
|
default: {
|
|
17
|
-
intervalSeconds:
|
|
18
|
+
intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
|
|
18
19
|
},
|
|
19
20
|
},
|
|
20
21
|
db: "$.service.db",
|
|
@@ -42,7 +43,7 @@ export default {
|
|
|
42
43
|
{
|
|
43
44
|
id: ticket.id,
|
|
44
45
|
summary: `Ticket number: ${ticket.id}`,
|
|
45
|
-
ts: Date.parse(ticket.created_at)
|
|
46
|
+
ts: Date.parse(ticket.created_at),
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
49
|
});
|