From 10e798c50229e7def46acd00bc6c76c1e26dad21 Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Mon, 28 Jul 2025 16:19:36 -0400 Subject: [PATCH 1/4] new components --- .../actions/create-macro/create-macro.mjs | 61 ++++++++++++++++ .../actions/delete-macro/delete-macro.mjs | 26 +++++++ .../actions/get-ticket/get-ticket.mjs | 27 +++++++ .../actions/list-macros/list-macros.mjs | 46 ++++++++++++ .../actions/update-macro/update-macro.mjs | 73 +++++++++++++++++++ components/gorgias_oauth/common/constants.mjs | 28 +++++++ .../gorgias_oauth/gorgias_oauth.app.mjs | 67 +++++++++++++++++ components/gorgias_oauth/package.json | 4 +- .../sources/common/base-polling.mjs | 62 ++++++++++++++++ .../sources/common/event-types.mjs | 3 + .../sources/macro-updated/macro-updated.mjs | 35 +++++++++ .../sources/macro-updated/test-event.mjs | 22 ++++++ .../new-macro-created/new-macro-created.mjs | 32 ++++++++ .../sources/new-macro-created/test-event.mjs | 13 ++++ 14 files changed, 497 insertions(+), 2 deletions(-) create mode 100644 components/gorgias_oauth/actions/create-macro/create-macro.mjs create mode 100644 components/gorgias_oauth/actions/delete-macro/delete-macro.mjs create mode 100644 components/gorgias_oauth/actions/get-ticket/get-ticket.mjs create mode 100644 components/gorgias_oauth/actions/list-macros/list-macros.mjs create mode 100644 components/gorgias_oauth/actions/update-macro/update-macro.mjs create mode 100644 components/gorgias_oauth/sources/common/base-polling.mjs create mode 100644 components/gorgias_oauth/sources/macro-updated/macro-updated.mjs create mode 100644 components/gorgias_oauth/sources/macro-updated/test-event.mjs create mode 100644 components/gorgias_oauth/sources/new-macro-created/new-macro-created.mjs create mode 100644 components/gorgias_oauth/sources/new-macro-created/test-event.mjs diff --git a/components/gorgias_oauth/actions/create-macro/create-macro.mjs b/components/gorgias_oauth/actions/create-macro/create-macro.mjs new file mode 100644 index 0000000000000..67c60c7e4c542 --- /dev/null +++ b/components/gorgias_oauth/actions/create-macro/create-macro.mjs @@ -0,0 +1,61 @@ +import gorgias_oauth from "../../gorgias_oauth.app.mjs"; +import { parseObject } from "../../common/utils.mjs"; +import constants from "../../common/constants.mjs"; + +export default { + key: "gorgias_oauth-create-macro", + name: "Create Macro", + description: "Create a macro. [See the documentation](https://developers.gorgias.com/reference/create-macro)", + version: "0.0.1", + type: "action", + props: { + gorgias_oauth, + name: { + type: "string", + label: "Name", + description: "The name of the Macro. Tips: choose a name that can be easily searched.", + }, + intent: { + type: "string", + label: "Intent", + description: "The intention of the macro should be used for", + optional: true, + options: constants.macroIntents, + }, + language: { + propDefinition: [ + gorgias_oauth, + "language", + ], + description: "The language of the macro", + }, + actions: { + type: "string[]", + label: "Actions", + description: `A list of actions to be applied on tickets. [See the documentation](https://developers.gorgias.com/reference/create-macro) for more info. + \nExample: [{ + "arguments": { + "tags": "question, order-status" + }, + "name": "addTags", + "title": "add tags", + "type": "user" + }]`, + optional: true, + }, + }, + async run({ $ }) { + const data = { + name: this.name, + intent: this.intent, + language: this.language, + actions: parseObject(this.actions), + }; + const response = await this.gorgias_oauth.createMacro({ + $, + data, + }); + $.export("$summary", `Successfully created macro ${response.id}`); + return response; + }, +}; diff --git a/components/gorgias_oauth/actions/delete-macro/delete-macro.mjs b/components/gorgias_oauth/actions/delete-macro/delete-macro.mjs new file mode 100644 index 0000000000000..f0a0eaa510ba6 --- /dev/null +++ b/components/gorgias_oauth/actions/delete-macro/delete-macro.mjs @@ -0,0 +1,26 @@ +import gorgias_oauth from "../../gorgias_oauth.app.mjs"; + +export default { + key: "gorgias_oauth-delete-macro", + name: "Delete Macro", + description: "Delete a macro. [See the documentation](https://developers.gorgias.com/reference/delete-macro)", + version: "0.0.1", + type: "action", + props: { + gorgias_oauth, + macroId: { + propDefinition: [ + gorgias_oauth, + "macroId", + ], + }, + }, + async run({ $ }) { + const response = await this.gorgias_oauth.deleteMacro({ + $, + id: this.macroId, + }); + $.export("$summary", `Successfully deleted macro ${this.macroId}`); + return response; + }, +}; diff --git a/components/gorgias_oauth/actions/get-ticket/get-ticket.mjs b/components/gorgias_oauth/actions/get-ticket/get-ticket.mjs new file mode 100644 index 0000000000000..c23abb750e9c9 --- /dev/null +++ b/components/gorgias_oauth/actions/get-ticket/get-ticket.mjs @@ -0,0 +1,27 @@ +import gorgias_oauth from "../../gorgias_oauth.app.mjs"; + +export default { + key: "gorgias_oauth-get-ticket", + name: "Get Ticket", + description: "Get a ticket. [See the documentation](https://developers.gorgias.com/reference/get-ticket)", + version: "0.0.1", + type: "action", + props: { + gorgias_oauth, + ticketId: { + propDefinition: [ + gorgias_oauth, + "ticketId", + ], + description: "The ID of a ticket to get", + }, + }, + async run({ $ }) { + const response = await this.gorgias_oauth.retrieveTicket({ + $, + id: this.ticketId, + }); + $.export("$summary", `Successfully retrieved ticket with ID: ${this.ticketId}`); + return response; + }, +}; diff --git a/components/gorgias_oauth/actions/list-macros/list-macros.mjs b/components/gorgias_oauth/actions/list-macros/list-macros.mjs new file mode 100644 index 0000000000000..54bf3e0f7321c --- /dev/null +++ b/components/gorgias_oauth/actions/list-macros/list-macros.mjs @@ -0,0 +1,46 @@ +import gorgias_oauth from "../../gorgias_oauth.app.mjs"; + +export default { + key: "gorgias_oauth-list-macros", + name: "List Macros", + description: "List all macros. [See the documentation](https://developers.gorgias.com/reference/list-macros)", + version: "0.0.1", + type: "action", + props: { + gorgias_oauth, + search: { + type: "string", + label: "Search", + description: "Filter macros containing the given search query", + optional: true, + }, + limit: { + propDefinition: [ + gorgias_oauth, + "limit", + ], + }, + }, + async run({ $ }) { + const params = { + search: this.search, + limit: this.limit, + }; + + const macros = []; + const paginator = this.gorgias_oauth.paginate({ + $, + fn: this.gorgias_oauth.listMacros, + params, + }); + for await (const macro of paginator) { + macros.push(macro); + } + + const suffix = macros.length === 1 + ? "" + : "s"; + $.export("$summary", `Returned ${macros.length} macro${suffix}`); + return macros; + }, +}; diff --git a/components/gorgias_oauth/actions/update-macro/update-macro.mjs b/components/gorgias_oauth/actions/update-macro/update-macro.mjs new file mode 100644 index 0000000000000..1df43cb6fd35d --- /dev/null +++ b/components/gorgias_oauth/actions/update-macro/update-macro.mjs @@ -0,0 +1,73 @@ +import gorgias_oauth from "../../gorgias_oauth.app.mjs"; +import constants from "../../common/constants.mjs"; +import { parseObject } from "../../common/utils.mjs"; + +export default { + key: "gorgias_oauth-update-macro", + name: "Update Macro", + description: "Update a macro. [See the documentation](https://developers.gorgias.com/reference/update-macro)", + version: "0.0.1", + type: "action", + props: { + gorgias_oauth, + macroId: { + propDefinition: [ + gorgias_oauth, + "macroId", + ], + }, + name: { + type: "string", + label: "Name", + description: "The name of the Macro. Tips: choose a name that can be easily searched.", + optional: true, + }, + intent: { + type: "string", + label: "Intent", + description: "The intention of the macro should be used for", + optional: true, + options: constants.macroIntents, + }, + language: { + propDefinition: [ + gorgias_oauth, + "language", + ], + description: "The language of the macro", + }, + actions: { + type: "string[]", + label: "Actions", + description: `A list of actions to be applied on tickets. [See the documentation](https://developers.gorgias.com/reference/create-macro) for more info. + \nExample: [{ + "arguments": { + "tags": "question, order-status" + }, + "name": "addTags", + "title": "add tags", + "type": "user" + }]`, + optional: true, + }, + }, + async run({ $ }) { + const macro = await this.gorgias_oauth.getMacro({ + $, + id: this.macroId, + }); + const data = { + name: this.name || macro.name, + intent: this.intent, + language: this.language, + actions: parseObject(this.actions), + }; + const response = await this.gorgias_oauth.updateMacro({ + $, + id: this.macroId, + data, + }); + $.export("$summary", `Successfully updated macro ${response.id}`); + return response; + }, +}; diff --git a/components/gorgias_oauth/common/constants.mjs b/components/gorgias_oauth/common/constants.mjs index 5bf1c1ab496dc..e5617bd828ea2 100644 --- a/components/gorgias_oauth/common/constants.mjs +++ b/components/gorgias_oauth/common/constants.mjs @@ -100,8 +100,36 @@ const sourceTypes = [ "whatsapp-message", ]; +const macroIntents = [ + "discount/request", + "exchange/request", + "exchange/status", + "feedback", + "order/damaged", + "order/cancel", + "order/change", + "order/wrong", + "other/no_reply", + "other/question", + "other/thanks", + "product/recommendation", + "product/question", + "refund/request", + "refund/status", + "return/request", + "return/status", + "shipping/change", + "shipping/delivery-issue", + "shipping/policy", + "shipping/status", + "stock/request", + "subscription/cancel", + "subscription/change", +]; + export default { channels, vias, sourceTypes, + macroIntents, }; diff --git a/components/gorgias_oauth/gorgias_oauth.app.mjs b/components/gorgias_oauth/gorgias_oauth.app.mjs index ccb76f930d129..d5b36b22a9d32 100644 --- a/components/gorgias_oauth/gorgias_oauth.app.mjs +++ b/components/gorgias_oauth/gorgias_oauth.app.mjs @@ -80,6 +80,30 @@ export default { }; }, }, + macroId: { + type: "integer", + label: "Macro ID", + description: "The ID of a macro", + async options({ prevContext }) { + const { + data: macros, + meta, + } = await this.listMacros({ + params: { + cursor: prevContext.nextCursor, + }, + }); + return { + options: macros.map((macro) => ({ + label: macro.name, + value: macro.id, + })), + context: { + nextCursor: meta.next_cursor, + }, + }; + }, + }, address: { type: "string", label: "Address", @@ -410,5 +434,48 @@ export default { ...opts, }); }, + getMacro({ + $, id, + }) { + return this._makeRequest({ + $, + path: `/macros/${id}`, + }); + }, + listMacros(opts = {}) { + return this._makeRequest({ + path: "/macros", + ...opts, + }); + }, + createMacro({ + $, data, + }) { + return this._makeRequest({ + $, + path: "/macros", + method: "POST", + data, + }); + }, + updateMacro({ + $, id, data, + }) { + return this._makeRequest({ + $, + path: `/macros/${id}`, + method: "PUT", + data, + }); + }, + deleteMacro({ + $, id, + }) { + return this._makeRequest({ + $, + path: `/macros/${id}`, + method: "DELETE", + }); + }, }, }; diff --git a/components/gorgias_oauth/package.json b/components/gorgias_oauth/package.json index 52da9ee2878d8..b75510b87a5f8 100644 --- a/components/gorgias_oauth/package.json +++ b/components/gorgias_oauth/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/gorgias_oauth", - "version": "0.5.2", + "version": "0.6.2", "description": "Pipedream Gorgias OAuth Components", "main": "gorgias_oauth.app.mjs", "keywords": [ @@ -15,7 +15,7 @@ "access": "public" }, "dependencies": { - "@pipedream/platform": "^2.0.0", + "@pipedream/platform": "^3.1.0", "lodash-es": "^4.17.21" } } diff --git a/components/gorgias_oauth/sources/common/base-polling.mjs b/components/gorgias_oauth/sources/common/base-polling.mjs new file mode 100644 index 0000000000000..c1b21feee9198 --- /dev/null +++ b/components/gorgias_oauth/sources/common/base-polling.mjs @@ -0,0 +1,62 @@ +import gorgias_oauth from "../../gorgias_oauth.app.mjs"; +import { + DEFAULT_POLLING_SOURCE_TIMER_INTERVAL, ConfigurationError, +} from "@pipedream/platform"; +import constants from "../../common/constants.mjs"; + +export default { + props: { + gorgias_oauth, + db: "$.service.db", + timer: { + type: "$.interface.timer", + default: { + intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL, + }, + }, + }, + methods: { + async processEvent(limit) { + const { data } = await this.gorgias_oauth.getEvents({ + params: { + order_by: "created_datetime:desc", + limit, + types: this.getEventType(), + }, + }); + + const events = (await Promise.all( + data.map((event) => this.getEventData(event)), + )).filter((event) => event !== null); + + for (const event of events.reverse()) { + this.emitEvent(event); + } + }, + emitEvent(event) { + const ts = Date.parse(event[this.getTsKey()]); + this.$emit(event, { + id: `${event.id}_${ts}`, + ts, + summary: `New ${this.getEventType()}: ${event.id}`, + }); + }, + getTsKey() { + throw new ConfigurationError("getTsKey is not implemented"); + }, + getEventType() { + throw new ConfigurationError("getEventType is not implemented"); + }, + getEventData() { + throw new ConfigurationError("getEventData is not implemented"); + }, + }, + hooks: { + async deploy() { + await this.processEvent(constants.HISTORICAL_EVENTS_LIMIT); + }, + }, + async run() { + await this.processEvent(); + }, +}; diff --git a/components/gorgias_oauth/sources/common/event-types.mjs b/components/gorgias_oauth/sources/common/event-types.mjs index 21cfbcec6a196..873ef47608fe7 100644 --- a/components/gorgias_oauth/sources/common/event-types.mjs +++ b/components/gorgias_oauth/sources/common/event-types.mjs @@ -6,4 +6,7 @@ export default { TICKET_UPDATED: "ticket-updated", TICKET_MESSAGE_CREATED: "ticket-message-created", TICKET_MESSAGE_FAILED: "ticket-message-failed", + MACRO_CREATED: "macro-created", + MACRO_UPDATED: "macro-updated", + MACRO_DELETED: "macro-deleted", }; diff --git a/components/gorgias_oauth/sources/macro-updated/macro-updated.mjs b/components/gorgias_oauth/sources/macro-updated/macro-updated.mjs new file mode 100644 index 0000000000000..1b66c9268ff62 --- /dev/null +++ b/components/gorgias_oauth/sources/macro-updated/macro-updated.mjs @@ -0,0 +1,35 @@ +import base from "../common/base-polling.mjs"; +import sampleEmit from "./test-event.mjs"; + +export default { + ...base, + key: "gorgias_oauth-macro-updated", + name: "Macro Updated", + description: "Emit new event when a macro is updated. [See the documentation](https://developers.gorgias.com/reference/the-event-object)", + version: "0.0.1", + type: "source", + dedupe: "unique", + methods: { + ...base.methods, + getEventType() { + return "macro-updated"; + }, + getTsKey() { + return "updated_datetime"; + }, + async getEventData(event) { + if (event.created_datetime === event.updated_datetime) { + return null; + } + try { + return await this.gorgias_oauth.getMacro({ + id: event.object_id, + }); + } catch (e) { + console.log(`Macro ${event.object_id} not found`); + return null; + } + }, + }, + sampleEmit, +}; diff --git a/components/gorgias_oauth/sources/macro-updated/test-event.mjs b/components/gorgias_oauth/sources/macro-updated/test-event.mjs new file mode 100644 index 0000000000000..9583ac3a36658 --- /dev/null +++ b/components/gorgias_oauth/sources/macro-updated/test-event.mjs @@ -0,0 +1,22 @@ +export default { + "id": 118371, + "external_id": null, + "name": "new macro updated", + "intent": "exchange/request", + "language": "en", + "usage": 0, + "actions": [ + { + "arguments": { + "tags": "question, order-status" + }, + "name": "addTags", + "title": "add tags", + "type": "user" + } + ], + "created_datetime": "2025-07-28T18:59:46.464679+00:00", + "updated_datetime": "2025-07-28T19:06:28.727401+00:00", + "archived_datetime": null, + "uri": "/api/macros/118371/" +} \ No newline at end of file diff --git a/components/gorgias_oauth/sources/new-macro-created/new-macro-created.mjs b/components/gorgias_oauth/sources/new-macro-created/new-macro-created.mjs new file mode 100644 index 0000000000000..ac8678dc79a8b --- /dev/null +++ b/components/gorgias_oauth/sources/new-macro-created/new-macro-created.mjs @@ -0,0 +1,32 @@ +import base from "../common/base-polling.mjs"; +import sampleEmit from "./test-event.mjs"; + +export default { + ...base, + key: "gorgias_oauth-new-macro-created", + name: "New Macro Created", + description: "Emit new event when a macro is created. [See the documentation](https://developers.gorgias.com/reference/the-event-object)", + version: "0.0.1", + type: "source", + dedupe: "unique", + methods: { + ...base.methods, + getEventType() { + return "macro-created"; + }, + getTsKey() { + return "created_datetime"; + }, + async getEventData(event) { + try { + return await this.gorgias_oauth.getMacro({ + id: event.object_id, + }); + } catch (e) { + console.log(`Macro ${event.object_id} not found`); + return null; + } + }, + }, + sampleEmit, +}; diff --git a/components/gorgias_oauth/sources/new-macro-created/test-event.mjs b/components/gorgias_oauth/sources/new-macro-created/test-event.mjs new file mode 100644 index 0000000000000..0740abaccbbf8 --- /dev/null +++ b/components/gorgias_oauth/sources/new-macro-created/test-event.mjs @@ -0,0 +1,13 @@ +export default { + "id": 118419, + "external_id": null, + "name": "new macro", + "intent": null, + "language": null, + "usage": 0, + "actions": [], + "created_datetime": "2025-07-28T20:04:50.816316+00:00", + "updated_datetime": null, + "archived_datetime": null, + "uri": "/api/macros/118419/" +} \ No newline at end of file From fbfc69155997a6cb545fa9fe3359571ea544009e Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Mon, 28 Jul 2025 16:20:11 -0400 Subject: [PATCH 2/4] pnpm-lock.yaml --- pnpm-lock.yaml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0fbeef452bcc7..0bbd645daff6b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5896,8 +5896,8 @@ importers: components/gorgias_oauth: dependencies: '@pipedream/platform': - specifier: ^2.0.0 - version: 2.0.0 + specifier: ^3.1.0 + version: 3.1.0 lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -6384,8 +6384,7 @@ importers: specifier: ^1.11.7 version: 1.11.13 - components/hospitable: - specifiers: {} + components/hospitable: {} components/hostaway: dependencies: @@ -6893,8 +6892,7 @@ importers: components/invoicing_plus: {} - components/ionos_hosting_services: - specifiers: {} + components/ionos_hosting_services: {} components/ip2location: dependencies: @@ -16189,7 +16187,7 @@ importers: version: 3.1.7 ts-jest: specifier: ^29.2.5 - version: 29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0))(typescript@5.7.2) + version: 29.2.5(@babel/core@8.0.0-alpha.13)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@8.0.0-alpha.13))(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0))(typescript@5.7.2) tsup: specifier: ^8.3.6 version: 8.3.6(@microsoft/api-extractor@7.47.12(@types/node@20.17.30))(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.4)(typescript@5.7.2)(yaml@2.6.1) @@ -16232,7 +16230,7 @@ importers: version: 3.1.0 jest: specifier: ^29.1.2 - version: 29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0) + version: 29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0) type-fest: specifier: ^4.15.0 version: 4.27.0 @@ -51423,7 +51421,7 @@ snapshots: ts-interface-checker@0.1.13: {} - ts-jest@29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0))(typescript@5.7.2): + ts-jest@29.2.5(@babel/core@8.0.0-alpha.13)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@8.0.0-alpha.13))(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0))(typescript@5.7.2): dependencies: bs-logger: 0.2.6 ejs: 3.1.10 @@ -51437,10 +51435,10 @@ snapshots: typescript: 5.7.2 yargs-parser: 21.1.1 optionalDependencies: - '@babel/core': 7.26.0 + '@babel/core': 8.0.0-alpha.13 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.26.0) + babel-jest: 29.7.0(@babel/core@8.0.0-alpha.13) ts-jest@29.2.5(@babel/core@8.0.0-alpha.13)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@8.0.0-alpha.13))(jest@29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0))(typescript@5.6.3): dependencies: From ad005443b3fdb23e4480f1ebddd058650101a62f Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Mon, 28 Jul 2025 16:21:13 -0400 Subject: [PATCH 3/4] pnpm-lock.yaml --- pnpm-lock.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0bbd645daff6b..bf78ff5b25caa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16187,7 +16187,7 @@ importers: version: 3.1.7 ts-jest: specifier: ^29.2.5 - version: 29.2.5(@babel/core@8.0.0-alpha.13)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@8.0.0-alpha.13))(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0))(typescript@5.7.2) + version: 29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0))(typescript@5.7.2) tsup: specifier: ^8.3.6 version: 8.3.6(@microsoft/api-extractor@7.47.12(@types/node@20.17.30))(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.4)(typescript@5.7.2)(yaml@2.6.1) @@ -16230,7 +16230,7 @@ importers: version: 3.1.0 jest: specifier: ^29.1.2 - version: 29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0) + version: 29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0) type-fest: specifier: ^4.15.0 version: 4.27.0 @@ -51421,7 +51421,7 @@ snapshots: ts-interface-checker@0.1.13: {} - ts-jest@29.2.5(@babel/core@8.0.0-alpha.13)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@8.0.0-alpha.13))(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0))(typescript@5.7.2): + ts-jest@29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0))(typescript@5.7.2): dependencies: bs-logger: 0.2.6 ejs: 3.1.10 @@ -51435,10 +51435,10 @@ snapshots: typescript: 5.7.2 yargs-parser: 21.1.1 optionalDependencies: - '@babel/core': 8.0.0-alpha.13 + '@babel/core': 7.26.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@8.0.0-alpha.13) + babel-jest: 29.7.0(@babel/core@7.26.0) ts-jest@29.2.5(@babel/core@8.0.0-alpha.13)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@8.0.0-alpha.13))(jest@29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0))(typescript@5.6.3): dependencies: From fa68c7df33bd76d14c3790a99bd11915bd93b24a Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Mon, 28 Jul 2025 16:23:41 -0400 Subject: [PATCH 4/4] versions --- .../gorgias_oauth/actions/create-customer/create-customer.mjs | 2 +- .../actions/create-ticket-message/create-ticket-message.mjs | 2 +- .../gorgias_oauth/actions/create-ticket/create-ticket.mjs | 2 +- components/gorgias_oauth/actions/list-tickets/list-tickets.mjs | 2 +- .../actions/retrieve-customer/retrieve-customer.mjs | 2 +- .../gorgias_oauth/actions/update-customer/update-customer.mjs | 2 +- .../gorgias_oauth/actions/update-ticket/update-ticket.mjs | 2 +- .../sources/internal-note-created/internal-note-created.mjs | 2 +- .../gorgias_oauth/sources/ticket-created/ticket-created.mjs | 2 +- .../sources/ticket-message-created/ticket-message-created.mjs | 2 +- .../gorgias_oauth/sources/ticket-updated/ticket-updated.mjs | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/gorgias_oauth/actions/create-customer/create-customer.mjs b/components/gorgias_oauth/actions/create-customer/create-customer.mjs index 5ebf75f3e9189..be15421d20a6c 100644 --- a/components/gorgias_oauth/actions/create-customer/create-customer.mjs +++ b/components/gorgias_oauth/actions/create-customer/create-customer.mjs @@ -5,7 +5,7 @@ export default { key: "gorgias_oauth-create-customer", name: "Create Customer", description: "Create a new customer. [See the docs](https://developers.gorgias.com/reference/post_api-customers)", - version: "0.0.6", + version: "0.0.7", type: "action", props: { gorgias_oauth, diff --git a/components/gorgias_oauth/actions/create-ticket-message/create-ticket-message.mjs b/components/gorgias_oauth/actions/create-ticket-message/create-ticket-message.mjs index 330250067cef3..659f0dd673359 100644 --- a/components/gorgias_oauth/actions/create-ticket-message/create-ticket-message.mjs +++ b/components/gorgias_oauth/actions/create-ticket-message/create-ticket-message.mjs @@ -7,7 +7,7 @@ export default { key: "gorgias_oauth-create-ticket-message", name: "Create Ticket Message", description: "Create a message for a ticket in the Gorgias system. [See the documentation](https://developers.gorgias.com/reference/create-ticket-message)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { gorgiasOauth, diff --git a/components/gorgias_oauth/actions/create-ticket/create-ticket.mjs b/components/gorgias_oauth/actions/create-ticket/create-ticket.mjs index 2ce3fddb9fd33..d9d1217d0badb 100644 --- a/components/gorgias_oauth/actions/create-ticket/create-ticket.mjs +++ b/components/gorgias_oauth/actions/create-ticket/create-ticket.mjs @@ -4,7 +4,7 @@ export default { key: "gorgias_oauth-create-ticket", name: "Create Ticket", description: "Create a new ticket. [See the docs](https://developers.gorgias.com/reference/post_api-tickets)", - version: "0.0.7", + version: "0.0.8", type: "action", props: { gorgias_oauth, diff --git a/components/gorgias_oauth/actions/list-tickets/list-tickets.mjs b/components/gorgias_oauth/actions/list-tickets/list-tickets.mjs index 0684b34552830..f8e47d0e72e80 100644 --- a/components/gorgias_oauth/actions/list-tickets/list-tickets.mjs +++ b/components/gorgias_oauth/actions/list-tickets/list-tickets.mjs @@ -4,7 +4,7 @@ export default { key: "gorgias_oauth-list-tickets", name: "List Tickets", description: "List all tickets. [See the docs](https://developers.gorgias.com/reference/get_api-tickets)", - version: "0.0.7", + version: "0.0.8", type: "action", props: { gorgias_oauth, diff --git a/components/gorgias_oauth/actions/retrieve-customer/retrieve-customer.mjs b/components/gorgias_oauth/actions/retrieve-customer/retrieve-customer.mjs index 5638146b8e8fb..10f4106a1fcbc 100644 --- a/components/gorgias_oauth/actions/retrieve-customer/retrieve-customer.mjs +++ b/components/gorgias_oauth/actions/retrieve-customer/retrieve-customer.mjs @@ -4,7 +4,7 @@ export default { key: "gorgias_oauth-retrieve-customer", name: "Retrieve a Customer", description: "Retrieve a customer. [See the docs](https://developers.gorgias.com/reference/get_api-customers-id-)", - version: "0.0.6", + version: "0.0.7", type: "action", props: { gorgias_oauth, diff --git a/components/gorgias_oauth/actions/update-customer/update-customer.mjs b/components/gorgias_oauth/actions/update-customer/update-customer.mjs index 2876bd520ccea..3a2b4376788ff 100644 --- a/components/gorgias_oauth/actions/update-customer/update-customer.mjs +++ b/components/gorgias_oauth/actions/update-customer/update-customer.mjs @@ -10,7 +10,7 @@ export default { key: "gorgias_oauth-update-customer", name: "Update Customer", description: "Update a customer. [See the docs](https://developers.gorgias.com/reference/put_api-customers-id-)", - version: "0.0.6", + version: "0.0.7", type: "action", props: { gorgias_oauth, diff --git a/components/gorgias_oauth/actions/update-ticket/update-ticket.mjs b/components/gorgias_oauth/actions/update-ticket/update-ticket.mjs index 6a1a6976cf482..6110dc5040070 100644 --- a/components/gorgias_oauth/actions/update-ticket/update-ticket.mjs +++ b/components/gorgias_oauth/actions/update-ticket/update-ticket.mjs @@ -5,7 +5,7 @@ export default { key: "gorgias_oauth-update-ticket", name: "Update Ticket", description: "Updates a predefined ticket in the Gorgias system. [See the documentation](https://developers.gorgias.com/reference/update-ticket)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { gorgiasOauth, diff --git a/components/gorgias_oauth/sources/internal-note-created/internal-note-created.mjs b/components/gorgias_oauth/sources/internal-note-created/internal-note-created.mjs index 306b13b60fbd0..8d7bd7c9e832b 100644 --- a/components/gorgias_oauth/sources/internal-note-created/internal-note-created.mjs +++ b/components/gorgias_oauth/sources/internal-note-created/internal-note-created.mjs @@ -7,7 +7,7 @@ export default { key: "gorgias_oauth-internal-note-created", name: "New Internal Note", description: "Emit new event when an internal note is created on a ticket. [See the documentation](https://developers.gorgias.com/reference/the-event-object)", - version: "0.0.1", + version: "0.0.2", type: "source", props: { ...base.props, diff --git a/components/gorgias_oauth/sources/ticket-created/ticket-created.mjs b/components/gorgias_oauth/sources/ticket-created/ticket-created.mjs index 4e2d69d7d6c80..8cd2bce3ee69c 100644 --- a/components/gorgias_oauth/sources/ticket-created/ticket-created.mjs +++ b/components/gorgias_oauth/sources/ticket-created/ticket-created.mjs @@ -7,7 +7,7 @@ export default { key: "gorgias_oauth-ticket-created", name: "New Ticket", description: "Emit new event when a ticket is created. [See the documentation](https://developers.gorgias.com/reference/the-event-object)", - version: "0.1.7", + version: "0.1.8", type: "source", props: { ...base.props, diff --git a/components/gorgias_oauth/sources/ticket-message-created/ticket-message-created.mjs b/components/gorgias_oauth/sources/ticket-message-created/ticket-message-created.mjs index e8fb51f71b901..504daa74a67ea 100644 --- a/components/gorgias_oauth/sources/ticket-message-created/ticket-message-created.mjs +++ b/components/gorgias_oauth/sources/ticket-message-created/ticket-message-created.mjs @@ -8,7 +8,7 @@ export default { key: "gorgias_oauth-ticket-message-created", name: "New Ticket Message", description: "Emit new event when a ticket message is created. [See the documentation](https://developers.gorgias.com/reference/the-event-object)", - version: "0.1.7", + version: "0.1.8", type: "source", props: { ...base.props, diff --git a/components/gorgias_oauth/sources/ticket-updated/ticket-updated.mjs b/components/gorgias_oauth/sources/ticket-updated/ticket-updated.mjs index f5698e179b4f3..3259ed9e02c37 100644 --- a/components/gorgias_oauth/sources/ticket-updated/ticket-updated.mjs +++ b/components/gorgias_oauth/sources/ticket-updated/ticket-updated.mjs @@ -7,7 +7,7 @@ export default { key: "gorgias_oauth-ticket-updated", name: "New Updated Ticket", description: "Emit new event when a ticket is updated. [See the documentation](https://developers.gorgias.com/reference/the-event-object)", - version: "0.1.7", + version: "0.1.8", type: "source", props: { ...base.props,