@pipedream/recreation_gov 0.0.2 → 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.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # Overview
2
+
3
+ The Recreation.gov API provides access to data about federal recreational activities and areas. With it, you can fetch details about campsites, tours, permits, and articles. On Pipedream, leverage this API to automate notifications, analyze recreational data, or integrate with other services for trip planning or environmental monitoring.
4
+
5
+ # Example Use Cases
6
+
7
+ - **Campsite Availability Alerts**: Set up a workflow on Pipedream that periodically checks for new campsite availability at your favorite parks. Pair it with the Twilio app to send SMS alerts when a spot opens up.
8
+
9
+ - **Recreational Data Analysis**: Create a workflow that collects data on park visitations, campsite usage, and permit issuance. Pipe this data to Google Sheets, allowing for regular analysis and reporting on trends and patterns.
10
+
11
+ - **Environmental Monitoring Integration**: Combine the Recreation.gov API with weather apps to inform users of the best times to visit based on weather conditions. Integrate with an email service like SendGrid to send custom weather-based recommendations for outdoor activities.
@@ -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,8 +1,8 @@
1
1
  {
2
2
  "name": "@pipedream/recreation_gov",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "description": "Pipedream Recreation.gov Components",
5
- "main": "dist/app/recreation_gov.app.mjs",
5
+ "main": "recreation_gov.app.mjs",
6
6
  "keywords": [
7
7
  "pipedream",
8
8
  "recreation_gov"
@@ -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
  }