@pipedream/recreation_gov 0.0.3 → 0.1.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.
@@ -2,7 +2,12 @@ import app from "../../recreation_gov.app.mjs";
2
2
 
3
3
  export default {
4
4
  key: "recreation_gov-get-recreation-area",
5
- version: "0.0.1",
5
+ version: "0.0.2",
6
+ annotations: {
7
+ destructiveHint: false,
8
+ openWorldHint: true,
9
+ readOnlyHint: true,
10
+ },
6
11
  type: "action",
7
12
  name: "Get Recreation Area",
8
13
  description: "Retrieves details of a specific campsite. [See the documentation](https://ridb.recreation.gov/docs#/Campsites/getCampsites)",
@@ -0,0 +1,34 @@
1
+ import recreation_gov from "../../recreation_gov.app.mjs";
2
+
3
+ export default {
4
+ key: "recreation_gov-list-activities-options",
5
+ name: "List Activities Options",
6
+ description: "Retrieves available options for the Activities field.",
7
+ version: "0.0.1",
8
+ type: "action",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: true,
13
+ },
14
+ props: {
15
+ recreation_gov,
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 recreation_gov.propDefinitions.activities.options
26
+ .call(this.recreation_gov, {
27
+ page: this.page,
28
+ });
29
+ $.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
30
+ ? ""
31
+ : "s"}`);
32
+ return options;
33
+ },
34
+ };
@@ -0,0 +1,34 @@
1
+ import recreation_gov from "../../recreation_gov.app.mjs";
2
+
3
+ export default {
4
+ key: "recreation_gov-list-campsite-id-options",
5
+ name: "List Campsite Id Options",
6
+ description: "Retrieves available options for the Campsite 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
+ recreation_gov,
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 recreation_gov.propDefinitions.campsiteId.options
26
+ .call(this.recreation_gov, {
27
+ page: this.page,
28
+ });
29
+ $.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
30
+ ? ""
31
+ : "s"}`);
32
+ return options;
33
+ },
34
+ };
@@ -0,0 +1,34 @@
1
+ import recreation_gov from "../../recreation_gov.app.mjs";
2
+
3
+ export default {
4
+ key: "recreation_gov-list-rec-area-id-options",
5
+ name: "List Recreation Area Id Options",
6
+ description: "Retrieves available options for the Recreation Area 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
+ recreation_gov,
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 recreation_gov.propDefinitions.recAreaId.options
26
+ .call(this.recreation_gov, {
27
+ page: this.page,
28
+ });
29
+ $.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
30
+ ? ""
31
+ : "s"}`);
32
+ return options;
33
+ },
34
+ };
@@ -3,7 +3,12 @@ import utils from "../../common/utils.mjs";
3
3
 
4
4
  export default {
5
5
  key: "recreation_gov-search-campsites",
6
- version: "0.0.1",
6
+ version: "0.0.2",
7
+ annotations: {
8
+ destructiveHint: false,
9
+ openWorldHint: true,
10
+ readOnlyHint: true,
11
+ },
7
12
  type: "action",
8
13
  name: "Search Campsites",
9
14
  description: "Searchs campsites with the given query. If no query given, returns campsites from the beginning. Returning campsite number is limited to `1000`. [See the documentation](https://ridb.recreation.gov/docs#/Campsites/getCampsites)",
@@ -3,7 +3,12 @@ import utils from "../../common/utils.mjs";
3
3
 
4
4
  export default {
5
5
  key: "recreation_gov-search-recreation-areas",
6
- version: "0.0.1",
6
+ version: "0.0.2",
7
+ annotations: {
8
+ destructiveHint: false,
9
+ openWorldHint: true,
10
+ readOnlyHint: true,
11
+ },
7
12
  type: "action",
8
13
  name: "Search Recreation Areas",
9
14
  description: "Searchs recreation areas with the given properties. If no parameters given, returns all. [See the documentation](https://ridb.recreation.gov/docs#/Recreation%20Areas/getRecAreas)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/recreation_gov",
3
- "version": "0.0.3",
3
+ "version": "0.1.0",
4
4
  "description": "Pipedream Recreation.gov Components",
5
5
  "main": "recreation_gov.app.mjs",
6
6
  "keywords": [
@@ -13,6 +13,6 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
- "@pipedream/platform": "^1.5.1"
16
+ "@pipedream/platform": "^1.6.8"
17
17
  }
18
18
  }