Skip to content

Commit 06addf6

Browse files
committed
[FEATURE] New prop to Gong action
1 parent efea192 commit 06addf6

File tree

7 files changed

+30
-9
lines changed

7 files changed

+30
-9
lines changed

components/gong/actions/add-new-call/add-new-call.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
name: "Add New Call",
99
description: "Add a new call. [See the documentation](https://us-66463.app.gong.io/settings/api/documentation#post-/v2/calls)",
1010
type: "action",
11-
version: "0.0.1",
11+
version: "0.0.2",
1212
props: {
1313
app,
1414
clientUniqueId: {

components/gong/actions/list-calls/list-calls.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "List calls",
66
description: "List calls. [See the documentation](https://us-66463.app.gong.io/settings/api/documentation#get-/v2/calls)",
77
type: "action",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
props: {
1010
app,
1111
fromDateTime: {

components/gong/actions/retrieve-transcripts-of-calls/retrieve-transcripts-of-calls.mjs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Retrieve Transcripts Of Calls",
66
description: "Retrieve transcripts of calls. [See the documentation](https://us-66463.app.gong.io/settings/api/documentation#post-/v2/calls/transcript)",
77
type: "action",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
props: {
1010
app,
1111
fromDateTime: {
@@ -29,6 +29,12 @@ export default {
2929
"workspaceId",
3030
],
3131
},
32+
callIds: {
33+
propDefinition: [
34+
app,
35+
"callIds",
36+
],
37+
},
3238
},
3339
methods: {
3440
retrieveTranscriptsOfCalls(args = {}) {
@@ -51,7 +57,7 @@ export default {
5157
data: {
5258
filter,
5359
},
54-
summary: (response) => `Successfully retrieved transcripts of calls with request ID \`${response.requestId}\``,
60+
summary: (response) => `Successfully retrieved transcripts of calls with request ID \`${response.requestId}\`.`,
5561
});
5662
},
5763
};

components/gong/gong.app.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,21 @@ export default {
6666
label: "To Date Time",
6767
description: "Date and time (in ISO-8601 format: `2018-02-18T02:30:00-07:00` or `2018-02-18T08:00:00Z`, where Z stands for UTC) until which to list recorded calls. Returns calls that started up to but excluding specified date and time. If not provided, list ends with most recent call.",
6868
},
69+
callIds: {
70+
type: "string[]",
71+
label: "Call IDs",
72+
description: "List of calls Ids to be filtered. If not supplied, returns all calls between **From Date Time** and **To Date Time**.",
73+
optional: true,
74+
async options() {
75+
const { calls } = await this.listCalls();
76+
return calls.map(({
77+
id: value, title: label,
78+
}) => ({
79+
label,
80+
value,
81+
}));
82+
},
83+
},
6984
},
7085
methods: {
7186
exportSummary(step) {

components/gong/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/gong",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Gong Components",
55
"main": "gong.app.mjs",
66
"keywords": [
@@ -10,7 +10,7 @@
1010
"homepage": "https://pipedream.com/apps/gong",
1111
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
1212
"dependencies": {
13-
"@pipedream/platform": "^1.5.1"
13+
"@pipedream/platform": "^3.0.3"
1414
},
1515
"publishConfig": {
1616
"access": "public"

components/gong/sources/new-call/new-call.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "New Call",
77
description: "Triggers when a new call is added. [See the documentation](https://us-66463.app.gong.io/settings/api/documentation#get-/v2/calls)",
88
type: "source",
9-
version: "0.0.1",
9+
version: "0.0.2",
1010
dedupe: "unique",
1111
methods: {
1212
...common.methods,

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)