Back to crm-api

SalesCandy Git archive

crm-api

Exposes SalesCandy data and workflows through a GraphQL API for integrations.

README

This repository exposes SalesCandy data and workflows via a GraphQL API. It allows clients to query specific object graph fields, minimizing data transfer compared to traditional REST methods.

Authentication requires an API Key and a JWT web token in the request headers. The API enforces granular read/write access checks based on provided credentials.

Selected files and folders

  • README.md
  • app
  • package.json
  • serverless.yml

Reconstructed issues

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

Schema mismatch with documentation

The GraphQL schema was found to deviate from the documented structure. This commit corrects the schema definition to align perfectly with the intended API documentation.

0f4dc821452b

Access check logic refinement

The logic for checking read and write access was incomplete or buggy. This update refines the access control checks to ensure that permissions are correctly validated before data is returned or modified.

d7f3ffbb0ff6

Missing action in access check

Previously, the access checking function could fail or behave unexpectedly when a specific action was not explicitly passed. This fix ensures that the required action is always provided to the check function.

f327d28a2253

Selected commits

  1. More updates

    Reza Rosli ·

    b27adb726d2dd3aada29bb2099bdefd26e254237

  2. Fix schema not matching documentation

    Reza Rosli ·

    0f4dc821452b5a4bdd21e599d68d7ea6831d6d40

  3. Fix missing action passed to checkaccess

    Reza Rosli ·

    f327d28a2253a217f2f94124def821c98da9ff00

  4. Handling for write-only tokens

    Reza Rosli ·

    ec4473c8f37bfd33b2daa6e215f3c51bf954571e

  5. Bugfix/check access for read write

    Reza Rosli ·

    d7f3ffbb0ff6662e3cad4cea2d989e55176a7972

  6. Fix a schema error in documentation that others have followed

    Reza Rosli ·

    57e941e938c2010782a3936d60f92fa58fe83431

  7. Close the security flaw

    Reza Rosli ·

    31392d17f581406432ddbf991e83760d409f2f77

  8. Add audit logs

    Reza Rosli ·

    cf355b8049f86db9385bd1882554d66cb2989688

  9. Closer result format to sc-auth check access function

    Reza Rosli ·

    12b3199bf3bbfc2c4a45249cb2cc1c7bd365bf3b

  10. Implement allowed actions based on API key role

    Reza Rosli ·

    ff58077aa620aa7a4bd9a906e60834c7fd8c3247

  11. Restructure files

    Reza Rosli ·

    f8f3f1703341c67984a8b8862c6ae6ef8d70c70b

  12. Query for checking access

    Reza Rosli ·

    e5bb2b046a6f24a3c60deddf99e9c12d6e657b41

  13. Restructure directories

    Reza Rosli ·

    b7ef7e31ccd26a6ff4adc64b51cbdc69d0f2b49e

  14. update wondata schema

    ibrahim ·

    20fcc613322b85cb9f6bd89c1c6a6c52c8582766

  15. update ElasticTimeInput with more variables

    ibrahim ·

    26e0a2e208ed2d772366b83586ad6ed901243761

  16. update ElasticTimeInput with more variables

    ibrahim ·

    054e6fc1ce5983f00bd5d9d3a845f39f92ea170d

  17. change data source for lead action template to candybase

    Shoaib ·

    0003b526fb589c3f2177e500c6af6a961284860a

  18. added lastUsed

    Shi Yek Lim ·

    6e81584d6a8de6146223309630b76e6d9a64b07a

  19. base

    Shi Yek Lim ·

    c3b448d973ef369ab47bbc44fb0783194e9747b7

  20. Initial commit

    Lim ·

    ea3f7ff7a1510d4df6d3a0f191ea0a66f69a1140

  21. - added missing enum - remove split-stacks plugin

    Shoaib ·

    d0a60cd91591700940337d25a36721b2d900f163