@pipedream/pushcut 0.1.0 → 0.2.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 +11 -0
- package/actions/execute-homekit-scene/execute-homekit-scene.mjs +6 -1
- package/actions/execute-shortcut/execute-shortcut.mjs +6 -1
- package/actions/list-homekit-scene-options/list-homekit-scene-options.mjs +26 -0
- package/actions/list-notification-options/list-notification-options.mjs +26 -0
- package/actions/list-shortcut-options/list-shortcut-options.mjs +26 -0
- package/actions/send-notification/send-notification.mjs +6 -1
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
|
|
3
|
+
The Pushcut API enables the automation of iOS notifications with custom actions, triggering events based on various conditions. On Pipedream, you can harness this functionality to create intricate workflows, combining Pushcut notifications with a multitude of services to act based on data from APIs, schedules, or other apps. Think of Pushcut as a bridge between the real world and your digital tasks, letting you know when to act and offering shortcuts to execute specific automations directly from your iOS devices.
|
|
4
|
+
|
|
5
|
+
# Example Use Cases
|
|
6
|
+
|
|
7
|
+
- **Dynamic Notification for Calendar Events**: Send custom notifications for upcoming calendar events. By integrating with Google Calendar on Pipedream, you can schedule a workflow that fetches events and uses Pushcut to notify you with action buttons to check details or postpone events.
|
|
8
|
+
|
|
9
|
+
- **Smart Home Alerts**: Combine Pushcut with IoT platforms like SmartThings. Set up a Pipedream workflow that listens for sensor triggers in your home—like motion or door openings—and then sends a Pushcut notification to your device with options to toggle devices or set modes.
|
|
10
|
+
|
|
11
|
+
- **GitHub Repo Updates**: Stay on top of changes to your GitHub repositories. With a Pipedream workflow, get Pushcut notifications whenever there's a new commit, issue, or pull request. You can add action buttons to open the GitHub app, directly view the changes, or even run a CI/CD pipeline.
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "pushcut-execute-homekit-scene",
|
|
5
5
|
name: "Execute Homekit Scene",
|
|
6
6
|
description: "Schedules an Automation Server action request for a homekit scene. [See the documentation](https://www.pushcut.io/webapi)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
pushcut,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "pushcut-execute-shortcut",
|
|
5
5
|
name: "Execute Shortcut",
|
|
6
6
|
description: "Schedules an Automation Server action request for a shortcut. [See the documentation](https://www.pushcut.io/webapi)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
pushcut,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import pushcut from "../../pushcut.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "pushcut-list-homekit-scene-options",
|
|
5
|
+
name: "List Homekit Scene Options",
|
|
6
|
+
description: "Retrieves available options for the Homekit Scene field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
pushcut,
|
|
16
|
+
},
|
|
17
|
+
async run({ $ }) {
|
|
18
|
+
const options = await pushcut.propDefinitions.homekitScene.options.call(this.pushcut, {});
|
|
19
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${
|
|
20
|
+
options.length === 1
|
|
21
|
+
? ""
|
|
22
|
+
: "s"
|
|
23
|
+
}`);
|
|
24
|
+
return options;
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import pushcut from "../../pushcut.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "pushcut-list-notification-options",
|
|
5
|
+
name: "List Notification Options",
|
|
6
|
+
description: "Retrieves available options for the Notification field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
pushcut,
|
|
16
|
+
},
|
|
17
|
+
async run({ $ }) {
|
|
18
|
+
const options = await pushcut.propDefinitions.notification.options.call(this.pushcut, {});
|
|
19
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${
|
|
20
|
+
options.length === 1
|
|
21
|
+
? ""
|
|
22
|
+
: "s"
|
|
23
|
+
}`);
|
|
24
|
+
return options;
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import pushcut from "../../pushcut.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "pushcut-list-shortcut-options",
|
|
5
|
+
name: "List Shortcut Options",
|
|
6
|
+
description: "Retrieves available options for the Shortcut field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
pushcut,
|
|
16
|
+
},
|
|
17
|
+
async run({ $ }) {
|
|
18
|
+
const options = await pushcut.propDefinitions.shortcut.options.call(this.pushcut, {});
|
|
19
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${
|
|
20
|
+
options.length === 1
|
|
21
|
+
? ""
|
|
22
|
+
: "s"
|
|
23
|
+
}`);
|
|
24
|
+
return options;
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "pushcut-send-notification",
|
|
5
5
|
name: "Send Notification",
|
|
6
6
|
description: "Sends a smart notification to your devices. [See the documentation](https://www.pushcut.io/webapi)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
pushcut,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/pushcut",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Pipedream Pushcut Components",
|
|
5
5
|
"main": "pushcut.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@pipedream/platform": "^1.
|
|
16
|
+
"@pipedream/platform": "^1.6.8"
|
|
17
17
|
}
|
|
18
18
|
}
|