diff --git a/flows.yaml b/flows.yaml index eba21470..4078bf89 100644 --- a/flows.yaml +++ b/flows.yaml @@ -3497,16 +3497,17 @@ integrations: is_escalated: boolean front: syncs: - list-conversations: + conversations: runs: every day description: List the conversations in the company in reverse chronological order. output: Conversation endpoint: method: GET path: /conversations + group: Conversations track_deletes: true sync_type: full - version: 1.0.1 + version: 1.0.2 actions: conversation: description: >- diff --git a/integrations/front/actions/conversation.ts b/integrations/front/actions/conversation.ts index 17bfe881..3ba7f44c 100644 --- a/integrations/front/actions/conversation.ts +++ b/integrations/front/actions/conversation.ts @@ -11,6 +11,7 @@ export default async function runAction(nango: NangoAction, input: SingleConvers paginate: { type: 'link', response_path: '_results', + limit_name_in_request: 'limit', link_path_in_response_body: 'next', limit: 100 } diff --git a/integrations/front/mocks/list-conversations/Conversation/batchDelete.json b/integrations/front/mocks/conversations/Conversation/batchDelete.json similarity index 100% rename from integrations/front/mocks/list-conversations/Conversation/batchDelete.json rename to integrations/front/mocks/conversations/Conversation/batchDelete.json diff --git a/integrations/front/mocks/list-conversations/Conversation/batchSave.json b/integrations/front/mocks/conversations/Conversation/batchSave.json similarity index 100% rename from integrations/front/mocks/list-conversations/Conversation/batchSave.json rename to integrations/front/mocks/conversations/Conversation/batchSave.json diff --git a/integrations/front/mocks/nango/get/proxy/conversations/list-conversations.json b/integrations/front/mocks/nango/get/proxy/conversations/conversations.json similarity index 100% rename from integrations/front/mocks/nango/get/proxy/conversations/list-conversations.json rename to integrations/front/mocks/nango/get/proxy/conversations/conversations.json diff --git a/integrations/front/nango.yaml b/integrations/front/nango.yaml index 635ed911..a22fe55b 100644 --- a/integrations/front/nango.yaml +++ b/integrations/front/nango.yaml @@ -1,16 +1,17 @@ integrations: front: syncs: - list-conversations: + conversations: runs: every day description: List the conversations in the company in reverse chronological order. output: Conversation endpoint: method: GET path: /conversations + group: Conversations track_deletes: true sync_type: full - version: 1.0.1 + version: 1.0.2 actions: conversation: description: List the messages in a conversation in reverse chronological order (newest first). diff --git a/integrations/front/syncs/list-conversations.md b/integrations/front/syncs/conversations.md similarity index 91% rename from integrations/front/syncs/list-conversations.md rename to integrations/front/syncs/conversations.md index e91766cc..a08a9133 100644 --- a/integrations/front/syncs/list-conversations.md +++ b/integrations/front/syncs/conversations.md @@ -1,14 +1,14 @@ -# List Conversations +# Conversations ## General Information - **Description:** List the conversations in the company in reverse chronological order. -- **Version:** 1.0.1 +- **Version:** 1.0.2 - **Group:** Others - **Scopes:** _None_ - **Endpoint Type:** Sync -- **Code:** [github.com](https://github.com/NangoHQ/integration-templates/tree/main/integrations/front/syncs/list-conversations.ts) +- **Code:** [github.com](https://github.com/NangoHQ/integration-templates/tree/main/integrations/front/syncs/conversations.ts) ## Endpoint Reference @@ -74,8 +74,8 @@ _No request body_ ## Changelog -- [Script History](https://github.com/NangoHQ/integration-templates/commits/main/integrations/front/syncs/list-conversations.ts) -- [Documentation History](https://github.com/NangoHQ/integration-templates/commits/main/integrations/front/syncs/list-conversations.md) +- [Script History](https://github.com/NangoHQ/integration-templates/commits/main/integrations/front/syncs/conversations.ts) +- [Documentation History](https://github.com/NangoHQ/integration-templates/commits/main/integrations/front/syncs/conversations.md) diff --git a/integrations/front/syncs/list-conversations.ts b/integrations/front/syncs/conversations.ts similarity index 100% rename from integrations/front/syncs/list-conversations.ts rename to integrations/front/syncs/conversations.ts diff --git a/integrations/front/tests/front-list-conversations.test.ts b/integrations/front/tests/front-conversations.test.ts similarity index 90% rename from integrations/front/tests/front-list-conversations.test.ts rename to integrations/front/tests/front-conversations.test.ts index d0895b4b..090ba529 100644 --- a/integrations/front/tests/front-list-conversations.test.ts +++ b/integrations/front/tests/front-conversations.test.ts @@ -1,11 +1,11 @@ import { vi, expect, it, describe } from 'vitest'; -import fetchData from '../syncs/list-conversations.js'; +import fetchData from '../syncs/conversations.js'; -describe('front list-conversations tests', () => { +describe('front conversations tests', () => { const nangoMock = new global.vitest.NangoSyncMock({ dirname: __dirname, - name: 'list-conversations', + name: 'conversations', Model: 'Conversation' });