1.0.8 • Published 3 years ago

pipedrive-wrapper v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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.

ParameterTagsDescription
input.bodyRequiredAn organization data the same as for rest of OrganizationsController
input.paramsRequiredItem 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.

ParameterTagsDescription
input.bodyRequiredAn organization data the same as for rest of OrganizationsController
input.paramsRequiredItem 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.

ParameterTagsDescription
input.bodyRequiredA person data the same as for rest of PersonsController
input.paramsRequiredItem 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.

ParameterTagsDescription
input.bodyRequiredA person data the same as for rest of PersonsController
input.paramsRequiredItem 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.

ParameterTagsDescription
input.bodyRequiredA deal data the same as for rest of DealsController
input.paramsRequiredItem 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.

ParameterTagsDescription
input.bodyRequiredA deal data the same as for rest of DealsController
input.paramsRequiredItem 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.

ParameterTagsDescription
input.bodyRequiredA product data the same as for rest of ProductsController
input.paramsRequiredItem 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.

ParameterTagsDescription
input.bodyRequiredA product data the same as for rest of ProductsController
input.paramsRequiredItem 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.

ParameterTagsDescription
fnRequiredA method that should be paginated e.g. PersonsController.getAllPersons
inputOptionalAn input data for the paginated method
callbackOptionalA 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 },
]
1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago