Back to customer-api

SalesCandy Git archive

customer-api

Implements backend operations for Manager Portal and the mobile app.

README

This repository manages the backend APIs for the Manager Portal and mobile application. It handles core business logic for user management, lead processing, and portal configurations.

Use this repository to interact with the services powering the Manager Portal and mobile app. It manages state related to leads and user profiles.

Selected files and folders

  • handlers
  • package.json
  • readme.md
  • serverless.yml

Reconstructed issues

Summaries inferred from the archive. Original issue records are unavailable here.

Null ID teams in project list

The manager portal was incorrectly displaying teams with null IDs when fetching project data. This issue was resolved by filtering out records where the team ID was null, ensuring a cleaner UI experience.

9a58519479cd

Funnel stages not provisioned on fetch

Previously, funnel stages were not automatically added to the lead action template when the front-end first fetched the lead and action status template. This change ensures stages are provisioned correctly upon initial data retrieval.

c12d4162c951

Incorrect parameter order for user retrieval

The function responsible for retrieving tenant user details was accepting parameters in the wrong order. This fix corrected the parameter sequence, ensuring the function operates with the expected inputs for accurate user data retrieval.

1b130882719d

Selected commits

  1. Automatically add funnel stages for the first time when front-end fetches lead and action status template

    Reza Rosli ·

    c12d4162c9515d505d154e2c27183b5f4b7aaa24

  2. Add funnel stages to lead action template

    Reza Rosli ·

    18e2ef3cf1c4e86765edd2e2f86bebd26d72e7ed

  3. Bugfix: removed teams with null ID for getProjects response, which causes manager portal to show "Route to null" teams.

    Reza Rosli ·

    9a58519479cd59e7233659dcaeca497755c170d7

  4. Bugfix: wrong parameters order for getTenantUser

    Reza Rosli ·

    1b130882719d4047b10cab85b20119e8ed6970b4

  5. Refactored functions for LeadActionTemplates. With workaround for a front-end bug where validation does not ignore deleted fields

    Reza Rosli ·

    63dd4fcffe016e440de69eecec7a119fc36eb76a

  6. Refactoring

    Reza Rosli ·

    393a94b90a61bf4541d7835e87e575c0e2078aae

  7. Allow to reactivate a deactivated super manager from Manager Portal

    Reza Rosli ·

    4dbb2d53b8e38d4d29a1b19af672789c120cfdbb

  8. Bugfix for handling bulk user create when the user belongs to multiple tenants

    Reza Rosli ·

    a8f09cc605b4694834485e943526063f7b6750a9

  9. Implemented getPortalUserPrefs and updatePortalUserPrefs functions

    Reza Rosli ·

    aadd56f61431c27765ed7b415bc6a6b9e572488e

  10. Implemented getPortalUserPrefs and updatePortalUserPrefs functions

    Reza Rosli ·

    1d878a1b3a4de5dd9e2ff08c1e6e2b87aedbab4f

  11. Develop

    Reza Rosli ·

    c531336c0e824410a9d06dbd5b1562a78de0d56e

  12. Use new CandyBaseNotifier.marshalAndPublish function for tenant:updated event

    Reza Rosli ·

    3f5503b3195dadf82aeb0137edccff94536443b8

  13. Refactor notifications in users handler

    Reza Rosli ·

    cb1cd99767778a1ae8cc21499a2a89bc89713d4f

  14. Fix security issues with spaghetti code in users management functions

    Reza Rosli ·

    6bf13a3babc856360383c146868ae3f632ecb4bb

  15. Fix issue when we accidentally create an empty username

    Reza Rosli ·

    0e4bc7cf1fbd00455631b238de45fdbec737d73c

  16. More refactoring and fix problems with username generation

    Reza Rosli ·

    03cf7dd2effe055f5e16013aeae40a5dac5b66ed

  17. change accountId to tenantId

    Shoaib ·

    7a78811efac9003f90e4a70417ac9cd9460ad273

  18. Complete CRUD and tests for below modules

    Shoaib ·

    f6c38379b322510d1f8df148e9300e411c9f5680

  19. api's for projects & lead and action statuses

    Shoaib ·

    cfbe5d14b2507a8401d36366cb7765e95e1d275c

  20. modify readme for styles

    Shoaib ·

    cad64d51c62890348450777daf7164d5d7197c7c

  21. initial commit

    Shoaib ·

    b686fd090365d3c70a8cfba4183e1f2fa733a4f6