@pipedream/prodpad 0.0.1
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/LICENSE +41 -0
- package/README.md +33 -0
- package/actions/create-company/create-company.mjs +81 -0
- package/actions/create-contact/create-contact.mjs +115 -0
- package/actions/create-feedback/create-feedback.mjs +85 -0
- package/actions/create-idea/create-idea.mjs +151 -0
- package/actions/find-company/find-company.mjs +85 -0
- package/actions/find-contact/find-contact.mjs +90 -0
- package/actions/find-feedback/find-feedback.mjs +123 -0
- package/actions/find-idea/find-idea.mjs +66 -0
- package/actions/find-or-create-company/find-or-create-company.mjs +105 -0
- package/actions/find-or-create-contact/find-or-create-contact.mjs +114 -0
- package/actions/find-or-create-feedback/find-or-create-feedback.mjs +149 -0
- package/actions/update-company/update-company.mjs +101 -0
- package/actions/update-contact/update-contact.mjs +134 -0
- package/actions/update-feedback/update-feedback.mjs +87 -0
- package/actions/update-idea-stage/update-idea-stage.mjs +52 -0
- package/common/constants.mjs +11 -0
- package/common/utils.mjs +42 -0
- package/package.json +19 -0
- package/prodpad.app.mjs +427 -0
- package/sources/common/polling.mjs +65 -0
- package/sources/new-company-created/new-company-created.mjs +27 -0
- package/sources/new-contact-created/new-contact-created.mjs +27 -0
- package/sources/new-feedback-created/new-feedback-created.mjs +27 -0
- package/sources/new-idea-created/new-idea-created.mjs +27 -0
- package/sources/new-idea-feedback-created/new-idea-feedback-created.mjs +38 -0
- package/sources/new-persona-created/new-persona-created.mjs +24 -0
- package/sources/new-product-created/new-product-created.mjs +24 -0
- package/sources/new-tag-created/new-tag-created.mjs +24 -0
- package/sources/new-user-story-created/new-user-story-created.mjs +24 -0
- package/sources/pushed-idea/pushed-idea.mjs +24 -0
- package/sources/pushed-user-story/pushed-user-story.mjs +24 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import common from "../common/polling.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
...common,
|
|
5
|
+
key: "prodpad-new-tag-created",
|
|
6
|
+
name: "New Tag Created",
|
|
7
|
+
description: "Emit new event when a new tag is created. [See the docs](https://app.swaggerhub.com/apis-docs/ProdPad/prodpad/1.0#/Misc/GetTags).",
|
|
8
|
+
type: "source",
|
|
9
|
+
version: "0.0.1",
|
|
10
|
+
dedupe: "unique",
|
|
11
|
+
methods: {
|
|
12
|
+
...common.methods,
|
|
13
|
+
getRequestResourcesFn() {
|
|
14
|
+
return this.app.listTags;
|
|
15
|
+
},
|
|
16
|
+
generateMeta(resource) {
|
|
17
|
+
return {
|
|
18
|
+
id: resource.id,
|
|
19
|
+
ts: Date.parse(resource.created_at),
|
|
20
|
+
summary: `New Tag ${resource.id}`,
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import common from "../common/polling.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
...common,
|
|
5
|
+
key: "prodpad-new-user-story-created",
|
|
6
|
+
name: "New User Story Created",
|
|
7
|
+
description: "Emit new event when a new user story is created. [See the docs](https://app.swaggerhub.com/apis-docs/ProdPad/prodpad/1.0#/Ideas/GetUserStories).",
|
|
8
|
+
type: "source",
|
|
9
|
+
version: "0.0.1",
|
|
10
|
+
dedupe: "unique",
|
|
11
|
+
methods: {
|
|
12
|
+
...common.methods,
|
|
13
|
+
getRequestResourcesFn() {
|
|
14
|
+
return this.app.listUserstories;
|
|
15
|
+
},
|
|
16
|
+
generateMeta(resource) {
|
|
17
|
+
return {
|
|
18
|
+
id: resource.id,
|
|
19
|
+
ts: Date.parse(resource.created_at),
|
|
20
|
+
summary: `New User Story ${resource.id}`,
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import app from "../../prodpad.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "prodpad-pushed-idea",
|
|
5
|
+
name: "New Pushed Idea",
|
|
6
|
+
description: "Emit new event when an idea is pushed. [See the docs](https://help.prodpad.com/article/759-create-a-custom-webhook).",
|
|
7
|
+
type: "source",
|
|
8
|
+
version: "0.0.1",
|
|
9
|
+
dedupe: "unique",
|
|
10
|
+
props: {
|
|
11
|
+
app,
|
|
12
|
+
http: "$.interface.http",
|
|
13
|
+
},
|
|
14
|
+
async run({ body: resource }) {
|
|
15
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
16
|
+
if (resource.hasOwnProperty("user_stories")) {
|
|
17
|
+
this.$emit(resource, {
|
|
18
|
+
id: resource.id,
|
|
19
|
+
summary: `New Idea ${resource.id}`,
|
|
20
|
+
ts: Date.parse(resource.created_at),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import app from "../../prodpad.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "prodpad-pushed-user-story",
|
|
5
|
+
name: "New Pushed User Story",
|
|
6
|
+
description: "Emit new event when a user story is pushed. [See the docs](https://help.prodpad.com/article/759-create-a-custom-webhook).",
|
|
7
|
+
type: "source",
|
|
8
|
+
version: "0.0.1",
|
|
9
|
+
dedupe: "unique",
|
|
10
|
+
props: {
|
|
11
|
+
app,
|
|
12
|
+
http: "$.interface.http",
|
|
13
|
+
},
|
|
14
|
+
async run({ body: resource }) {
|
|
15
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
16
|
+
if (resource.hasOwnProperty("story")) {
|
|
17
|
+
this.$emit(resource, {
|
|
18
|
+
id: resource.id,
|
|
19
|
+
summary: `New User Story ${resource.id}`,
|
|
20
|
+
ts: Date.parse(resource.created_at),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
};
|