@pipedream/readwise 0.1.1 → 0.3.0

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.
@@ -4,7 +4,12 @@ export default {
4
4
  key: "readwise-get-highlight-details",
5
5
  name: "Get Highlight Details",
6
6
  description: "Get Highlight´s Details [See the docs here](https://readwise.io/api_deets)",
7
- version: "0.0.3",
7
+ version: "0.0.4",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  readwise,
@@ -0,0 +1,33 @@
1
+ import readwise from "../../readwise.app.mjs";
2
+
3
+ export default {
4
+ key: "readwise-list-book-id-options",
5
+ name: "List Book Id Options",
6
+ description: "Retrieves available options for the Book Id field.",
7
+ version: "0.0.1",
8
+ type: "action",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: true,
13
+ },
14
+ props: {
15
+ readwise,
16
+ page: {
17
+ type: "integer",
18
+ label: "Page",
19
+ description: "The page of results to retrieve.",
20
+ min: 0,
21
+ default: 0,
22
+ },
23
+ },
24
+ async run({ $ }) {
25
+ const options = await readwise.propDefinitions.bookId.options.call(this.readwise, {
26
+ page: this.page,
27
+ });
28
+ $.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
29
+ ? ""
30
+ : "s"}`);
31
+ return options;
32
+ },
33
+ };
@@ -4,7 +4,12 @@ export default {
4
4
  key: "readwise-list-highlights",
5
5
  name: "List Highlights",
6
6
  description: "A list of highlights with a pagination metadata. The rate limit of this endpoint is restricted to 20 requests per minute. Each request returns 1000 items. [See the docs here](https://readwise.io/api_deets)",
7
- version: "0.0.3",
7
+ version: "0.0.4",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  readwise,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/readwise",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "Pipedream Readwise Components",
5
5
  "main": "readwise.app.mjs",
6
6
  "keywords": [
@@ -13,6 +13,6 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
- "@pipedream/platform": "^1.2.0"
16
+ "@pipedream/platform": "^1.6.8"
17
17
  }
18
18
  }
@@ -5,7 +5,7 @@ export default {
5
5
  key: "readwise-new-documents",
6
6
  name: "New Documents",
7
7
  description: "Emit new document [See the documentation](https://readwise.io/reader_api)",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  props: {
@@ -22,14 +22,30 @@ export default {
22
22
  type: "string",
23
23
  label: "Location",
24
24
  description: "(Optional) The document's location. [See the documentation](https://readwise.io/reader_api).",
25
- options: ["new", "later", "shortlist", "archive", "feed"],
25
+ options: [
26
+ "new",
27
+ "later",
28
+ "shortlist",
29
+ "archive",
30
+ "feed",
31
+ ],
26
32
  optional: true,
27
33
  },
28
34
  category: {
29
35
  type: "string",
30
36
  label: "Category",
31
37
  description: "(Optional) The document's category. [See the documentation](https://readwise.io/reader_api).",
32
- options: ["article", "email", "rss", "highlight", "note", "pdf", "epub", "tweet", "video"],
38
+ options: [
39
+ "article",
40
+ "email",
41
+ "rss",
42
+ "highlight",
43
+ "note",
44
+ "pdf",
45
+ "epub",
46
+ "tweet",
47
+ "video",
48
+ ],
33
49
  optional: true,
34
50
  },
35
51
  },