diff --git a/components/gong/actions/add-new-call/add-new-call.mjs b/components/gong/actions/add-new-call/add-new-call.mjs index 36a4925559309..38b21904435c7 100644 --- a/components/gong/actions/add-new-call/add-new-call.mjs +++ b/components/gong/actions/add-new-call/add-new-call.mjs @@ -8,7 +8,7 @@ export default { name: "Add New Call", description: "Add a new call. [See the documentation](https://us-66463.app.gong.io/settings/api/documentation#post-/v2/calls)", type: "action", - version: "0.0.1", + version: "0.0.2", props: { app, clientUniqueId: { diff --git a/components/gong/actions/list-calls/list-calls.mjs b/components/gong/actions/list-calls/list-calls.mjs index abe28e2b2c72b..3fc6631be0b4e 100644 --- a/components/gong/actions/list-calls/list-calls.mjs +++ b/components/gong/actions/list-calls/list-calls.mjs @@ -5,7 +5,7 @@ export default { name: "List calls", description: "List calls. [See the documentation](https://us-66463.app.gong.io/settings/api/documentation#get-/v2/calls)", type: "action", - version: "0.0.1", + version: "0.0.2", props: { app, fromDateTime: { diff --git a/components/gong/actions/retrieve-transcripts-of-calls/retrieve-transcripts-of-calls.mjs b/components/gong/actions/retrieve-transcripts-of-calls/retrieve-transcripts-of-calls.mjs index 4b281c086bbe7..ef503c7080471 100644 --- a/components/gong/actions/retrieve-transcripts-of-calls/retrieve-transcripts-of-calls.mjs +++ b/components/gong/actions/retrieve-transcripts-of-calls/retrieve-transcripts-of-calls.mjs @@ -5,7 +5,7 @@ export default { name: "Retrieve Transcripts Of Calls", description: "Retrieve transcripts of calls. [See the documentation](https://us-66463.app.gong.io/settings/api/documentation#post-/v2/calls/transcript)", type: "action", - version: "0.0.1", + version: "0.0.2", props: { app, fromDateTime: { @@ -29,6 +29,12 @@ export default { "workspaceId", ], }, + callIds: { + propDefinition: [ + app, + "callIds", + ], + }, }, methods: { retrieveTranscriptsOfCalls(args = {}) { @@ -51,7 +57,7 @@ export default { data: { filter, }, - summary: (response) => `Successfully retrieved transcripts of calls with request ID \`${response.requestId}\``, + summary: (response) => `Successfully retrieved transcripts of calls with request ID \`${response.requestId}\`.`, }); }, }; diff --git a/components/gong/gong.app.mjs b/components/gong/gong.app.mjs index 681595c9afc0f..828b21a82dd6f 100644 --- a/components/gong/gong.app.mjs +++ b/components/gong/gong.app.mjs @@ -66,6 +66,21 @@ export default { label: "To Date Time", 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.", }, + callIds: { + type: "string[]", + label: "Call IDs", + description: "List of calls Ids to be filtered. If not supplied, returns all calls between **From Date Time** and **To Date Time**.", + optional: true, + async options() { + const { calls } = await this.listCalls(); + return calls.map(({ + id: value, title: label, + }) => ({ + label, + value, + })); + }, + }, }, methods: { exportSummary(step) { diff --git a/components/gong/package.json b/components/gong/package.json index ac7811567cffb..a19f959b525f9 100644 --- a/components/gong/package.json +++ b/components/gong/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/gong", - "version": "0.1.0", + "version": "0.1.1", "description": "Pipedream Gong Components", "main": "gong.app.mjs", "keywords": [ @@ -10,7 +10,7 @@ "homepage": "https://pipedream.com/apps/gong", "author": "Pipedream (https://pipedream.com/)", "dependencies": { - "@pipedream/platform": "^1.5.1" + "@pipedream/platform": "^3.0.3" }, "publishConfig": { "access": "public" diff --git a/components/gong/sources/new-call/new-call.mjs b/components/gong/sources/new-call/new-call.mjs index fe8c0b1eba23c..91b44d543eccb 100644 --- a/components/gong/sources/new-call/new-call.mjs +++ b/components/gong/sources/new-call/new-call.mjs @@ -6,7 +6,7 @@ export default { name: "New Call", description: "Triggers when a new call is added. [See the documentation](https://us-66463.app.gong.io/settings/api/documentation#get-/v2/calls)", type: "source", - version: "0.0.1", + version: "0.0.2", dedupe: "unique", methods: { ...common.methods, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9a1bc250af74b..82b8a4acb6db4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4110,9 +4110,9 @@ importers: components/gong: specifiers: - '@pipedream/platform': ^1.5.1 + '@pipedream/platform': ^3.0.3 dependencies: - '@pipedream/platform': 1.5.1 + '@pipedream/platform': 3.0.3 components/goodbits: specifiers: {}