Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement discord integration #369

Closed
wants to merge 59 commits into from

Commits on Nov 15, 2023

  1. basic folder arch

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    90e7ed3 View commit details
    Browse the repository at this point in the history
  2. cert update

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    c834c51 View commit details
    Browse the repository at this point in the history
  3. discord yml update

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    ae3f45b View commit details
    Browse the repository at this point in the history
  4. fern file update

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    027f865 View commit details
    Browse the repository at this point in the history
  5. users yml

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    fccfa05 View commit details
    Browse the repository at this point in the history
  6. config

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    90ca48a View commit details
    Browse the repository at this point in the history
  7. discord webhook setup

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    53990c8 View commit details
    Browse the repository at this point in the history
  8. discord oauth added

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    ccf006b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5fad63b View commit details
    Browse the repository at this point in the history
  10. endpoint update as per slack

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    9b97f1b View commit details
    Browse the repository at this point in the history
  11. import token from .env

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    9a9f8b0 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    cc0c7bb View commit details
    Browse the repository at this point in the history
  13. discord stash changes

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    f820c51 View commit details
    Browse the repository at this point in the history
  14. code refactor

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    f6ee9a4 View commit details
    Browse the repository at this point in the history
  15. discord client update

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    53d4c33 View commit details
    Browse the repository at this point in the history
  16. bot token update in prisma

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    4030d8f View commit details
    Browse the repository at this point in the history
  17. bot token client issue solved

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    83ad43e View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    9f1d8d4 View commit details
    Browse the repository at this point in the history
  19. sdk path error

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    c765ebd View commit details
    Browse the repository at this point in the history
  20. feat: field mapping and custom schema (revertinc#207)

    * prisma migration to add field mapping schemas
    
    * seed hs note model (unverified)
    
    * seed hs note model (verified)
    
    * seed hs note model
    
    * transform note acc to schema mapping
    
    * (approach 2) transform note acc to schema field mapping
    
    * (approach 2) seed all note fields and fix single note structure
    
    * minor fix
    
    * common func to transform field mapping to model
    
    * disunify using field mapping
    
    * allow connections to override field mapping
    
    * support custom objects in schema; show custom fields as additional
    
    * add winston and morgan logger
    
    * Field mapping for contact; support custom field mapping to custom crm field
    
    * add field mapping config
    
    * common unify and disunify methods
    
    * seed contact field mapping
    
    * use lodash get to transform nested mappings
    
    * unify and disunify for contact
    
    * disunify based on account config
    
    * unify and disunify for company
    
    * unify and disunify for deal
    
    * unify and disunify for event
    
    * unify and disunify for lead
    
    * unify and disunify for task
    
    * unify and disunify for user
    
    * minor refactor
    
    * handle 2 level nesting and fix mapping
    
    * make target field optional; multi level nesting
    
    * fix
    
    * fix
    
    * fix obj merge
    
    * fix pipedrive get format
    
    * preprocess
    
    * preprocess unify and disunify
    
    * disunify postprocess
    
    * flatten before disunify
    
    * pipedrive fix contact create
    
    * minor fixes
    
    * fix pipedrive lead disunify
    
    * chore: add account id to morgan logs
    
    * chore: cleanup
    
    * chore: cleanup
    
    * chore: cleanup
    
    * feat: ui for field mapping (revertinc#242)
    
    * feat: processing ui
    
    * feat: immplememt sse and redis pubsub
    
    * feat: read sse data to render failed ui
    
    * minor changes
    
    * feat: api to fetch mappable details and crm object properties
    
    * feat: api to create connection field mapping
    
    * feat: add custom field mapped to connection schema
    
    * feat: reallly basic ui for std field mapping
    
    * feat: reallly basic ui for custom field mapping
    
    * feat: add styling
    
    * fix: fix add btn order
    
    * feat: check for t_id in sse msg; send private token for calling further apis
    
    * feat: save mappings on click
    
    * feat: fix ui
    
    * feat: show done screen
    
    * feat: mark form dirty if empty fields
    
    * feat: show done stage if config doesnt exist
    
    * chore: fix pr comments
    
    * chore: use temp tenant token for auth; ui fixes
    
    * chore: fix dropdown caret; redis timeout
    
    * chore: pubsub fix
    
    * chore: cleanup
    
    * chore: cleanup
    
    * chore: resolve conflicts
    
    * feat: add remove mapping btn and divider
    
    * fix: fix logger
    
    * chore: cleanup
    
    * chore: move endpoints to fern
    
    * update yarn.lock
    
    * fix issues
    
    * add hubspot create custom properties api
    
    ---------
    
    Co-authored-by: jatin <sandilya.jatin@gmail.com>
    2 people authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    045778b View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    7ab9d2a View commit details
    Browse the repository at this point in the history
  22. chore(deps-dev): bump @types/node from 17.0.23 to 20.8.2 (revertinc#279)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.23 to 20.8.2.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    f232820 View commit details
    Browse the repository at this point in the history
  23. chore(docs): update readme (revertinc#281)

    * chore(docs): update readme
    
    * update heading
    
    * move links
    
    * nit fix
    jatinsandilya authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    2c843c9 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    6db5c4e View commit details
    Browse the repository at this point in the history
  25. feat: add api analytics (revertinc#320)

    * add api analytics w/moesif
    
    * feat: make api analytics work
    
    * only run db migration when prisma folder changes
    jatinsandilya authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    2818abf View commit details
    Browse the repository at this point in the history
  26. feat: slack integration (revertinc#322)

    * removed install state for rebasing
    
    * slack integration with refactored code
    
    * removed cert.pem
    
    * client side updated with respect to slack integration
    
    * localhost https configs removed
    
    * Refactored code worked successfully with hubspot
    
    * Added PubSub for chat feature
    
    * removed install-state to fix rebase
    
    * make improvements & fixes post testing
    
    * update header text
    
    ---------
    
    Co-authored-by: Ashutosh Dhande <ashutosh.dhande001@gmail.com>
    2 people authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    4817ec7 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    71cba93 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    776881d View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    c8d275e View commit details
    Browse the repository at this point in the history
  30. feat: field mapping and custom schema (revertinc#207)

    * prisma migration to add field mapping schemas
    
    * seed hs note model (unverified)
    
    * seed hs note model (verified)
    
    * seed hs note model
    
    * transform note acc to schema mapping
    
    * (approach 2) transform note acc to schema field mapping
    
    * (approach 2) seed all note fields and fix single note structure
    
    * minor fix
    
    * common func to transform field mapping to model
    
    * disunify using field mapping
    
    * allow connections to override field mapping
    
    * support custom objects in schema; show custom fields as additional
    
    * add winston and morgan logger
    
    * Field mapping for contact; support custom field mapping to custom crm field
    
    * add field mapping config
    
    * common unify and disunify methods
    
    * seed contact field mapping
    
    * use lodash get to transform nested mappings
    
    * unify and disunify for contact
    
    * disunify based on account config
    
    * unify and disunify for company
    
    * unify and disunify for deal
    
    * unify and disunify for event
    
    * unify and disunify for lead
    
    * unify and disunify for task
    
    * unify and disunify for user
    
    * minor refactor
    
    * handle 2 level nesting and fix mapping
    
    * make target field optional; multi level nesting
    
    * fix
    
    * fix
    
    * fix obj merge
    
    * fix pipedrive get format
    
    * preprocess
    
    * preprocess unify and disunify
    
    * disunify postprocess
    
    * flatten before disunify
    
    * pipedrive fix contact create
    
    * minor fixes
    
    * fix pipedrive lead disunify
    
    * chore: add account id to morgan logs
    
    * chore: cleanup
    
    * chore: cleanup
    
    * chore: cleanup
    
    * feat: ui for field mapping (revertinc#242)
    
    * feat: processing ui
    
    * feat: immplememt sse and redis pubsub
    
    * feat: read sse data to render failed ui
    
    * minor changes
    
    * feat: api to fetch mappable details and crm object properties
    
    * feat: api to create connection field mapping
    
    * feat: add custom field mapped to connection schema
    
    * feat: reallly basic ui for std field mapping
    
    * feat: reallly basic ui for custom field mapping
    
    * feat: add styling
    
    * fix: fix add btn order
    
    * feat: check for t_id in sse msg; send private token for calling further apis
    
    * feat: save mappings on click
    
    * feat: fix ui
    
    * feat: show done screen
    
    * feat: mark form dirty if empty fields
    
    * feat: show done stage if config doesnt exist
    
    * chore: fix pr comments
    
    * chore: use temp tenant token for auth; ui fixes
    
    * chore: fix dropdown caret; redis timeout
    
    * chore: pubsub fix
    
    * chore: cleanup
    
    * chore: cleanup
    
    * chore: resolve conflicts
    
    * feat: add remove mapping btn and divider
    
    * fix: fix logger
    
    * chore: cleanup
    
    * chore: move endpoints to fern
    
    * update yarn.lock
    
    * fix issues
    
    * add hubspot create custom properties api
    
    ---------
    
    Co-authored-by: jatin <sandilya.jatin@gmail.com>
    2 people authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    38c3731 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    0088fa5 View commit details
    Browse the repository at this point in the history
  32. chore(deps-dev): bump eslint from 7.32.0 to 8.50.0 (revertinc#274)

    Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 8.50.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](eslint/eslint@v7.32.0...v8.50.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    7ad4d8c View commit details
    Browse the repository at this point in the history
  33. chore(deps-dev): bump @types/node from 17.0.23 to 20.8.2 (revertinc#279)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.23 to 20.8.2.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    4c17e78 View commit details
    Browse the repository at this point in the history
  34. basic folder arch

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    bf593ff View commit details
    Browse the repository at this point in the history
  35. cert update

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    dee749c View commit details
    Browse the repository at this point in the history
  36. discord yml update

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    f5ecba4 View commit details
    Browse the repository at this point in the history
  37. config

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    899e914 View commit details
    Browse the repository at this point in the history
  38. discord webhook setup

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    109c814 View commit details
    Browse the repository at this point in the history
  39. discord oauth added

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    048de31 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    6472d32 View commit details
    Browse the repository at this point in the history
  41. endpoint update as per slack

    hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    051f397 View commit details
    Browse the repository at this point in the history
  42. chore(deps-dev): bump eslint from 7.32.0 to 8.50.0 (revertinc#274)

    Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 8.50.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](eslint/eslint@v7.32.0...v8.50.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    ac5f7fc View commit details
    Browse the repository at this point in the history
  43. chore(deps-dev): bump @types/node from 17.0.23 to 20.8.2 (revertinc#279)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.23 to 20.8.2.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    b7aa2f5 View commit details
    Browse the repository at this point in the history
  44. chore(deps): bump @sentry/react from 7.64.0 to 7.73.0 (revertinc#287)

    Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript) from 7.64.0 to 7.73.0.
    - [Release notes](https://github.com/getsentry/sentry-javascript/releases)
    - [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
    - [Commits](getsentry/sentry-javascript@7.64.0...7.73.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@sentry/react"
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    95be989 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    6ee4256 View commit details
    Browse the repository at this point in the history
  46. feat: add api analytics (revertinc#320)

    * add api analytics w/moesif
    
    * feat: make api analytics work
    
    * only run db migration when prisma folder changes
    jatinsandilya authored and hrutik7 committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    6fe4bc5 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Configuration menu
    Copy the full SHA
    13a8ac1 View commit details
    Browse the repository at this point in the history
  2. properties import error

    hrutik7 committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    5fb1550 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2023

  1. Configuration menu
    Copy the full SHA
    70d07cf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    46b933d View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2023

  1. sdk tested

    hrutik7 committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    49dd8cf View commit details
    Browse the repository at this point in the history
  2. hardcoded token removed

    hrutik7 committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    6b8e234 View commit details
    Browse the repository at this point in the history
  3. channel file deleted

    hrutik7 committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    2d7babe View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2023

  1. Configuration menu
    Copy the full SHA
    b27f73d View commit details
    Browse the repository at this point in the history
  2. bottoken removed

    hrutik7 committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    1713cf7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    40a1d48 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2023

  1. PR requested changes

    hrutik7 committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    576d6f6 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. Configuration menu
    Copy the full SHA
    a836410 View commit details
    Browse the repository at this point in the history
  2. removed comment

    hrutik7 committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    3a9cfcb View commit details
    Browse the repository at this point in the history