Skip to content

Commit c6f52be

Browse files
Merge branch 'master' into issue-16299
2 parents 31b446f + e84d0d4 commit c6f52be

File tree

16 files changed

+387
-31
lines changed

16 files changed

+387
-31
lines changed

components/agentx/agentx.app.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "agentx",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/agentx/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/agentx",
3+
"version": "0.0.1",
4+
"description": "Pipedream AgentX Components",
5+
"main": "agentx.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"agentx"
9+
],
10+
"homepage": "https://pipedream.com/apps/agentx",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import gmail from "../../gmail.app.mjs";
2+
import constants from "../../common/constants.mjs";
3+
4+
export default {
5+
key: "gmail-archive-email",
6+
name: "Archive Email",
7+
description: "Archive an email message. [See the documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/modify)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
gmail,
12+
message: {
13+
propDefinition: [
14+
gmail,
15+
"message",
16+
],
17+
},
18+
},
19+
async run({ $ }) {
20+
const {
21+
gmail,
22+
message,
23+
} = this;
24+
25+
const response = await gmail.updateLabels({
26+
message,
27+
removeLabelIds: [
28+
constants.INBOX_LABEL_ID,
29+
],
30+
});
31+
32+
$.export("$summary", `Successfully archived email (ID: ${message})`);
33+
return response;
34+
},
35+
};

components/gmail/common/constants.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ const BODY_TYPES = {
55
};
66
const HISTORICAL_EVENTS = 10;
77
const DEFAULT_LIMIT = 100;
8+
const INBOX_LABEL_ID = "INBOX";
89

910
export default {
1011
USER_ID,
1112
BODY_TYPES,
1213
HISTORICAL_EVENTS,
1314
DEFAULT_LIMIT,
15+
INBOX_LABEL_ID,
1416
};

components/gmail/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/gmail",
3-
"version": "0.2.10",
3+
"version": "0.3.0",
44
"description": "Pipedream Gmail Components",
55
"main": "gmail.app.mjs",
66
"keywords": [

components/salesloft/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/salesloft",
3+
"version": "0.0.1",
4+
"description": "Pipedream Salesloft Components",
5+
"main": "salesloft.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"salesloft"
9+
],
10+
"homepage": "https://pipedream.com/apps/salesloft",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "salesloft",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/screenshot_api",
3+
"version": "0.0.1",
4+
"description": "Pipedream Screenshot API Components",
5+
"main": "screenshot_api.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"screenshot_api"
9+
],
10+
"homepage": "https://pipedream.com/apps/screenshot_api",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "screenshot_api",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

docs-v2/pages/connect/api.mdx

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,10 @@ curl -X POST "https://api.pipedream.com/v1/connect/{your_project_id}/actions/run
20112011

20122012
#### Deploy a trigger
20132013

2014+
<Callout type="info">
2015+
See [here](/connect/components/#deploying-triggers) for more info on supported trigger types with example payloads
2016+
</Callout>
2017+
20142018
Deploy a trigger component that will emit events to a webhook or workflow for a Pipedream Connect user.
20152019

20162020
```text
@@ -2492,14 +2496,14 @@ curl -X GET \
24922496
Retrieve a single deployed trigger for a given user.
24932497

24942498
```text
2495-
GET /deployed-triggers/{deployed_component_id}/
2499+
GET /deployed-triggers/{deployed_trigger_id}/
24962500
```
24972501

24982502
##### Path parameters
24992503

2500-
`dcid` **string**
2504+
`deployed_trigger_id` **string**
25012505

2502-
The deployed component ID for the trigger you'd like to retrieve.
2506+
The deployed trigger ID for the trigger you'd like to retrieve (ex, `dc_xxxxxxx`, `hi_xxxxxxx`, `ti_xxxxxxx`, or `ei_xxxxxxx`).
25032507

25042508
##### Query parameters
25052509

@@ -2590,7 +2594,7 @@ curl -X POST https://api.pipedream.com/v1/oauth/token \
25902594

25912595
curl -X GET \
25922596
-G \
2593-
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{dcid}/" \
2597+
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{deployed_trigger_id}/" \
25942598
-H "Authorization: Bearer {access_token}" \
25952599
-H "Content-Type: application/json" \
25962600
-H "x-pd-environment: development" \
@@ -2677,14 +2681,14 @@ curl -X GET \
26772681
Delete deployed trigger for a given user.
26782682

26792683
```text
2680-
DELETE /deployed-triggers/{deployed_component_id}/
2684+
DELETE /deployed-triggers/{deployed_trigger_id}/
26812685
```
26822686

26832687
##### Path parameters
26842688

2685-
`dcid` **string**
2689+
`deployed_trigger_id` **string**
26862690

2687-
The deployed component ID for the trigger you'd like to retrieve.
2691+
The deployed trigger ID for the trigger you'd like to retrieve (ex, `dc_xxxxxxx`, `hi_xxxxxxx`, `ti_xxxxxxx`, or `ei_xxxxxxx`).
26882692

26892693
##### Query parameters
26902694

@@ -2768,7 +2772,7 @@ curl -X POST https://api.pipedream.com/v1/oauth/token \
27682772

27692773
curl -X DELETE \
27702774
-G \
2771-
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{dcid}/" \
2775+
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{deployed_trigger_id}/" \
27722776
-H "Authorization: Bearer {access_token}" \
27732777
-H "Content-Type: application/json" \
27742778
-H "x-pd-environment: development" \
@@ -2787,14 +2791,14 @@ Pipedream returns a `204 No Content` response on successful deletion
27872791
Retrieve a list of the last events that a deployed trigger emitted.
27882792

27892793
```text
2790-
GET /deployed-triggers/{deployed_component_id}/events/
2794+
GET /deployed-triggers/{deployed_trigger_id}/events/
27912795
```
27922796

27932797
##### Path parameters
27942798

2795-
`dcid` **string**
2799+
`deployed_trigger_id` **string**
27962800

2797-
The deployed component ID for the trigger you'd like to retrieve.
2801+
The deployed trigger ID for the trigger you'd like to retrieve (ex, `dc_xxxxxxx`, `hi_xxxxxxx`, `ti_xxxxxxx`, or `ei_xxxxxxx`).
27982802

27992803
##### Query parameters
28002804

@@ -2889,7 +2893,7 @@ curl -X POST https://api.pipedream.com/v1/oauth/token \
28892893

28902894
curl -X GET \
28912895
-G \
2892-
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{dcid}/events" \
2896+
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{deployed_trigger_id}/events" \
28932897
-H "Authorization: Bearer {access_token}" \
28942898
-H "Content-Type: application/json" \
28952899
-H "x-pd-environment: development" \
@@ -2984,14 +2988,14 @@ curl -X GET \
29842988
Retrieve the list of webhook URLs listening to a deployed trigger.
29852989

29862990
```text
2987-
GET /deployed-triggers/{deployed_component_id}/webhooks/
2991+
GET /deployed-triggers/{deployed_trigger_id}/webhooks/
29882992
```
29892993

29902994
##### Path parameters
29912995

2992-
`dcid` **string**
2996+
`deployed_trigger_id` **string**
29932997

2994-
The deployed component ID for the trigger you'd like to retrieve.
2998+
The deployed trigger ID for the trigger you'd like to retrieve (ex, `dc_xxxxxxx`, `hi_xxxxxxx`, `ti_xxxxxxx`, or `ei_xxxxxxx`).
29952999

29963000
##### Query parameters
29973001

@@ -3081,7 +3085,7 @@ curl -X POST https://api.pipedream.com/v1/oauth/token \
30813085

30823086
curl -X GET \
30833087
-G \
3084-
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{dcid}/webhooks/" \
3088+
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{deployed_trigger_id}/webhooks/" \
30853089
-H "Authorization: Bearer {access_token}" \
30863090
-H "Content-Type: application/json" \
30873091
-H "x-pd-environment: development" \
@@ -3105,14 +3109,14 @@ curl -X GET \
31053109
Update the list of webhook URLs that will listen to a deployed trigger.
31063110

31073111
```text
3108-
PUT /deployed-triggers/{deployed_component_id}/webhooks/
3112+
PUT /deployed-triggers/{deployed_trigger_id}/webhooks/
31093113
```
31103114

31113115
##### Path parameters
31123116

3113-
`dcid` **string**
3117+
`deployed_trigger_id` **string**
31143118

3115-
The deployed component ID for the trigger you'd like to retrieve.
3119+
The deployed trigger ID for the trigger you'd like to retrieve (ex, `dc_xxxxxxx`, `hi_xxxxxxx`, `ti_xxxxxxx`, or `ei_xxxxxxx`).
31163120

31173121
##### Query parameters
31183122

@@ -3220,7 +3224,7 @@ curl -X POST https://api.pipedream.com/v1/oauth/token \
32203224
# This request will update the list of webhook URLs listening to the specified deployed trigger.
32213225

32223226
curl -X PUT \
3223-
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{dcid}/webhooks/" \
3227+
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{deployed_trigger_id}/webhooks/" \
32243228
-H "Authorization: Bearer {access_token}" \
32253229
-H "Content-Type: application/json" \
32263230
-H "x-pd-environment: development" \
@@ -3244,14 +3248,14 @@ curl -X PUT \
32443248
Retrieve the list of workflow IDs listening to a deployed trigger.
32453249

32463250
```text
3247-
GET /deployed-triggers/{deployed_component_id}/workflows/
3251+
GET /deployed-triggers/{deployed_trigger_id}/workflows/
32483252
```
32493253

32503254
##### Path parameters
32513255

3252-
`dcid` **string**
3256+
`deployed_trigger_id` **string**
32533257

3254-
The deployed component ID for the trigger you'd like to retrieve.
3258+
The deployed trigger ID for the trigger you'd like to retrieve (ex, `dc_xxxxxxx`, `hi_xxxxxxx`, `ti_xxxxxxx`, or `ei_xxxxxxx`).
32553259

32563260
##### Query parameters
32573261

@@ -3341,7 +3345,7 @@ curl -X POST https://api.pipedream.com/v1/oauth/token \
33413345

33423346
curl -X GET \
33433347
-G \
3344-
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{dcid}/workflows/" \
3348+
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{deployed_trigger_id}/workflows/" \
33453349
-H "Authorization: Bearer {access_token}" \
33463350
-H "Content-Type: application/json" \
33473351
-H "x-pd-environment: development" \
@@ -3366,14 +3370,14 @@ curl -X GET \
33663370
Update the list of workflows that will listen to a deployed trigger.
33673371

33683372
```text
3369-
PUT /deployed-triggers/{deployed_component_id}/workflows/
3373+
PUT /deployed-triggers/{deployed_trigger_id}/workflows/
33703374
```
33713375

33723376
##### Path parameters
33733377

3374-
`dcid` **string**
3378+
`deployed_trigger_id` **string**
33753379

3376-
The deployed component ID for the trigger you'd like to retrieve.
3380+
The deployed trigger ID for the trigger you'd like to retrieve (ex, `dc_xxxxxxx`, `hi_xxxxxxx`, `ti_xxxxxxx`, or `ei_xxxxxxx`).
33773381

33783382
##### Query parameters
33793383

@@ -3482,7 +3486,7 @@ curl -X POST https://api.pipedream.com/v1/oauth/token \
34823486
# This request will update the list of webhook URLs listening to the specified deployed trigger.
34833487

34843488
curl -X PUT \
3485-
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{dcid}/webhooks/" \
3489+
"https://api.pipedream.com/v1/connect/{your_project_id}/deployed-triggers/{deployed_trigger_id}/webhooks/" \
34863490
-H "Authorization: Bearer {access_token}" \
34873491
-H "Content-Type: application/json" \
34883492
-H "x-pd-environment: development" \

0 commit comments

Comments
 (0)