pipedrive-wrapper

    1.0.8 • Public • Published

    Pipedrive Wrapper

    Add new functionality to the official package. In the list you can find extensions the wrapper brought.

    OrganizationsController

    findOrCreateOrganization(input, callback)

    Find or create an organization.

    Parameter Tags Description
    input.body Required An organization data the same as for rest of OrganizationsController
    input.params Required Item search parameters the same as for rest of ItemsController

    Return a promise with a not modified response.

    findAndSaveOrganization(input, callback)

    Find or create and update a founded organization.

    Parameter Tags Description
    input.body Required An organization data the same as for rest of OrganizationsController
    input.params Required Item search parameters the same as for rest of ItemsController

    Return a promise with a not modified response.

    PersonsController

    findOrCreatePerson(input, callback)

    Find or create a person.

    Parameter Tags Description
    input.body Required A person data the same as for rest of PersonsController
    input.params Required Item search parameters the same as for rest of ItemsController

    Return a promise with a not modified response.

    findAndSavePerson(input, callback)

    Find or create and update a founded person.

    Parameter Tags Description
    input.body Required A person data the same as for rest of PersonsController
    input.params Required Item search parameters the same as for rest of ItemsController

    Return a promise with a not modified response.

    DealsController

    findOrCreateDeal(input, callback)

    Find or create a deal.

    Parameter Tags Description
    input.body Required A deal data the same as for rest of DealsController
    input.params Required Item search parameters the same as for rest of ItemsController

    Return a promise with a not modified response.

    findAndSaveDeal(input, callback)

    Find or create and update a founded deal.

    Parameter Tags Description
    input.body Required A deal data the same as for rest of DealsController
    input.params Required Item search parameters the same as for rest of ItemsController

    Return a promise with a not modified response.

    ProductsController

    findOrCreateProduct(input, callback)

    Find or create a product.

    Parameter Tags Description
    input.body Required A product data the same as for rest of ProductsController
    input.params Required Item search parameters the same as for rest of ItemsController

    Return a promise with a not modified response.

    findAndSaveProduct(input, callback)

    Find or create and update a founded product.

    Parameter Tags Description
    input.body Required A product data the same as for rest of ProductsController
    input.params Required Item search parameters the same as for rest of ItemsController

    Return a promise with a not modified response.

    PaginationController

    all(fn, input, callback)

    Paginate and return all records.

    Parameter Tags Description
    fn Required A method that should be paginated e.g. PersonsController.getAllPersons
    input Optional An input data for the paginated method
    callback Optional A callback

    Return a promise with a single connected array.

    Models

    Some models were modified cause an original package returned a null mapped response.

    Product

    [
      { name: 'success', realName: 'success' },
      { name: 'data', realName: 'data', array: true },
    ]
    

    Install

    npm i pipedrive-wrapper

    DownloadsWeekly Downloads

    2

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    43.9 kB

    Total Files

    20

    Last publish

    Collaborators

    • metawork.studio