@pipedream/harvest 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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import harvest from "../../harvest.app.mjs";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
key: "harvest-
|
|
4
|
+
key: "harvest-stop-timer",
|
|
5
5
|
name: "Stop Time Entry",
|
|
6
6
|
description: "Stop a timer entry. [See docs here](https://help.getharvest.com/api-v2/timesheets-api/timesheets/time-entries/#stop-a-running-time-entry)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
harvest,
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "harvest-new-invoice-entry",
|
|
5
5
|
name: "New Invoice Entry",
|
|
6
6
|
description: "Emit new notifications when a new invoice is created",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
8
8
|
type: "source",
|
|
9
9
|
props: {
|
|
10
10
|
harvest,
|
|
@@ -39,6 +39,7 @@ export default {
|
|
|
39
39
|
{
|
|
40
40
|
id: invoice.id,
|
|
41
41
|
summary: `Invoice number: ${invoice.number}`,
|
|
42
|
+
ts: Date.parse(invoice.updated_at),
|
|
42
43
|
});
|
|
43
44
|
});
|
|
44
45
|
},
|
|
@@ -3,8 +3,8 @@ import harvest from "../../harvest.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "harvest-new-timesheet-entry",
|
|
5
5
|
name: "New Timesheet Entry",
|
|
6
|
-
description: "Emit new notifications when a new timesheet is created",
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Emit new notifications when a new timesheet entry is created",
|
|
7
|
+
version: "0.0.2",
|
|
8
8
|
type: "source",
|
|
9
9
|
props: {
|
|
10
10
|
harvest,
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
description: "Pipedream will poll Harvest API on this schedule",
|
|
14
14
|
type: "$.interface.timer",
|
|
15
15
|
default: {
|
|
16
|
-
intervalSeconds: 60 * 15,
|
|
16
|
+
intervalSeconds: 60 * 15, //15 minutes
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
db: "$.service.db",
|
|
@@ -41,6 +41,7 @@ export default {
|
|
|
41
41
|
summary: `Task: ${entry.task.name} - ${entry.spent_date} ${entry.started_time || ""} ${entry.ended_time
|
|
42
42
|
? " to " + entry.ended_time
|
|
43
43
|
: ""}`,
|
|
44
|
+
ts: Date.parse(entry.updated_at),
|
|
44
45
|
});
|
|
45
46
|
});
|
|
46
47
|
},
|