@pipedream/toggl 0.0.3 → 0.0.5

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/README.md CHANGED
@@ -24,3 +24,6 @@ Here are a few examples of what you can build using the Toggl Track API:
24
24
  related to time tracking data.
25
25
  - User interface: Access and integrate Toggl Track's intuitive user interface
26
26
  into applications.
27
+
28
+ - The API Reference has been updated to V9 and has been relocated [here](https://developers.track.toggl.com/)
29
+ - This current implementation in pipdream only utilizes time entries. Toggl also offers coverage at the workspace level down to the individual task level. The workspace docs located [here](https://developers.track.toggl.com/docs/api/workspaces) provide insight in how to begin creating workspaces and allowing other individuals to be added to those workspaces allowing the tracking of whole teams at a time.
@@ -2,9 +2,9 @@ import toggl from "../../toggl.app.mjs";
2
2
 
3
3
  export default {
4
4
  name: "Get Current Time Entry",
5
- version: "0.0.2",
5
+ version: "0.0.4",
6
6
  key: "toggl-get-current-time-entry",
7
- description: "Get the time entry that is running now. [See docs here](https://github.com/toggl/toggl_api_docs/blob/master/chapters/time_entries.md#get-running-time-entry)",
7
+ description: "Get the time entry that is running now. [See docs here]https://developers.track.toggl.com/docs/api/time_entries#get-get-current-time-entry)",
8
8
  type: "action",
9
9
  props: {
10
10
  toggl,
@@ -2,9 +2,9 @@ import toggl from "../../toggl.app.mjs";
2
2
 
3
3
  export default {
4
4
  name: "Get Time Entries",
5
- version: "0.0.2",
5
+ version: "0.0.4",
6
6
  key: "toggl-get-time-entries",
7
- description: "Get the last thousand time entries. [See docs here](https://github.com/toggl/toggl_api_docs/blob/master/chapters/time_entries.md#get-time-entries-started-in-a-specific-time-range)",
7
+ description: "Get the last thousand time entries. [See docs here](https://developers.track.toggl.com/docs/api/time_entries#get-timeentries)",
8
8
  type: "action",
9
9
  props: {
10
10
  toggl,
@@ -2,9 +2,9 @@ import toggl from "../../toggl.app.mjs";
2
2
 
3
3
  export default {
4
4
  name: "Get Time Entry",
5
- version: "0.0.2",
5
+ version: "0.0.4",
6
6
  key: "toggl-get-time-entry",
7
- description: "Get details about a specific time entry. [See docs here](https://github.com/toggl/toggl_api_docs/blob/master/chapters/time_entries.md#get-time-entry-details)",
7
+ description: "Get details about a specific time entry. [See docs here](https://developers.track.toggl.com/docs/api/time_entries)",
8
8
  type: "action",
9
9
  props: {
10
10
  toggl,
@@ -2,5 +2,6 @@ export default {
2
2
  API_BASE_URL_VERSIONS: {
3
3
  "v1": "https://track.toggl.com/webhooks/api/v1",
4
4
  "v8": "https://api.track.toggl.com/api/v8",
5
+ "v9": "https://api.track.toggl.com/api/v9",
5
6
  },
6
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/toggl",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Pipedream Toggl Components",
5
5
  "main": "toggl.app.js",
6
6
  "keywords": [
@@ -3,7 +3,7 @@ import base from "../common/base.mjs";
3
3
  export default {
4
4
  ...base,
5
5
  name: "New Start Time Entry (Instant)",
6
- version: "0.0.1",
6
+ version: "0.0.2",
7
7
  key: "toggl-new-start-time-entry",
8
8
  description: "Emit new event when a time entry is started. [See docs here](https://github.com/toggl/toggl_api_docs/blob/master/webhooks.md)",
9
9
  type: "source",
@@ -3,7 +3,7 @@ import base from "../common/base.mjs";
3
3
  export default {
4
4
  ...base,
5
5
  name: "New Time Entry (Instant)",
6
- version: "0.0.1",
6
+ version: "0.0.2",
7
7
  key: "toggl-new-time-entry",
8
8
  description: "Emit new event when a time entry is created. [See docs here](https://github.com/toggl/toggl_api_docs/blob/master/webhooks.md)",
9
9
  type: "source",
@@ -3,7 +3,7 @@ import base from "../common/base.mjs";
3
3
  export default {
4
4
  ...base,
5
5
  name: "New Update Time Entry (Instant)",
6
- version: "0.0.1",
6
+ version: "0.0.2",
7
7
  key: "toggl-new-update-time-entry",
8
8
  description: "Emit new event when a time entry is updated. [See docs here](https://github.com/toggl/toggl_api_docs/blob/master/webhooks.md)",
9
9
  type: "source",
@@ -4,7 +4,7 @@ import constants from "../common/constants.mjs";
4
4
  export default {
5
5
  ...base,
6
6
  name: "New Webhook Event (Instant)",
7
- version: "0.0.1",
7
+ version: "0.0.2",
8
8
  key: "toggl-new-webhook-event",
9
9
  description: "Emit new event on receive a webhook event. [See docs here](https://github.com/toggl/toggl_api_docs/blob/master/webhooks.md)",
10
10
  type: "source",
package/toggl.app.mjs CHANGED
@@ -76,16 +76,18 @@ export default {
76
76
  method: "delete",
77
77
  });
78
78
  },
79
- async getWorkspaces({ $ } = {}) {
80
- return this._makeRequest("v8", "workspaces", {}, $);
79
+ async getWorkspaces({
80
+ workspaceId, $,
81
+ }) {
82
+ return this._makeRequest("v9", `workspaces/${workspaceId}`, {}, $);
81
83
  },
82
84
  async getCurrentTimeEntry({ $ } = {}) {
83
- return this._makeRequest("v8", "time_entries/current", {}, $);
85
+ return this._makeRequest("v9", "me/time_entries/current", {}, $);
84
86
  },
85
87
  async getTimeEntries({
86
88
  params, $,
87
89
  } = {}) {
88
- return this._makeRequest("v8", "time_entries", {
90
+ return this._makeRequest("v9", "me/time_entries", {
89
91
  params: {
90
92
  ...params,
91
93
  per_page: 1000,