0xSMW / lightyear

https://www.runlightyear.com
GNU Affero General Public License v3.0
0 stars 0 forks source link

Sweep (map): extend the lightyear package to have an Intercom integration #1

Open 0xSMW opened 1 year ago

0xSMW commented 1 year ago

The interactions should get contacts, conversations, and anything related Review the Airtable integration for structure Use this file for reference for how naming and structure related to the API: https://raw.githubusercontent.com/runlightyear/lightyear/main/packages/%40runlightyear/openai/NAMING.md


Checklist:

Create Intercom directory and base files

  • In packages/@runlightyear/, create a new directory named intercom.
  • In packages/@runlightyear/intercom/, create new files: contacts.ts, conversations.ts, types.ts, and index.ts.

Implement Intercom contacts API

  • In packages/@runlightyear/intercom/contacts.ts, implement the Intercom contacts API call.
  • In packages/@runlightyear/intercom/types.ts, define any necessary data types for the contacts API.

Implement Intercom conversations API

  • In packages/@runlightyear/intercom/conversations.ts, implement the Intercom conversations API call.
  • In packages/@runlightyear/intercom/types.ts, define any necessary data types for the conversations API.

Finalize Intercom integration

  • In packages/@runlightyear/intercom/index.ts, export all the implemented features of the Intercom API.
  • Ensure that all naming conventions follow the guidelines outlined in the provided reference file.
sweep-ai[bot] commented 1 year ago

To retrigger Sweep, edit the issue.


Step 1: 🔍 Code Search

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/0xSMW/lightyear/blob/d7778049791278ed8f9eb1dbb9718482dea505a8/packages/@runlightyear/openai/NAMING.md#L1-L11 https://github.com/0xSMW/lightyear/blob/d7778049791278ed8f9eb1dbb9718482dea505a8/README.md#L1-L58 https://github.com/0xSMW/lightyear/blob/d7778049791278ed8f9eb1dbb9718482dea505a8/packages/@runlightyear/openai/src/completions/createCompletion.ts#L1-L41 https://github.com/0xSMW/lightyear/blob/d7778049791278ed8f9eb1dbb9718482dea505a8/packages/@runlightyear/openai/src/OpenAI.ts#L1-L132 https://github.com/0xSMW/lightyear/blob/d7778049791278ed8f9eb1dbb9718482dea505a8/packages/@runlightyear/openai/src/audio/createTranscription.ts#L1-L75

I also found the following external resources that might be helpful:

Summaries of links found in the content:

I also found some related docs:


Step 2: 🧐 Snippet Analysis

Working on it...


Step 3: 📝 Planning

I'm creating the following subissues:

Create Intercom directory and base files:

  • In packages/@runlightyear/, create a new directory named intercom.
  • In packages/@runlightyear/intercom/, create new files: contacts.ts, conversations.ts, types.ts, and index.ts.

Implement Intercom contacts API:

  • In packages/@runlightyear/intercom/contacts.ts, implement the Intercom contacts API call.
  • In packages/@runlightyear/intercom/types.ts, define any necessary data types for the contacts API.

Implement Intercom conversations API:

  • In packages/@runlightyear/intercom/conversations.ts, implement the Intercom conversations API call.
  • In packages/@runlightyear/intercom/types.ts, define any necessary data types for the conversations API.

Finalize Intercom integration:

  • In packages/@runlightyear/intercom/index.ts, export all the implemented features of the Intercom API.
  • Ensure that all naming conventions follow the guidelines outlined in the provided reference file.

Step 4: ⌨️ Coding

I finished creating the subissues! Track them at:


Step 5: 🔁 Code Review

N/A


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. Join Our Discord