Pipedrive Wrapper is a sugar wrapper over official package Pipedrive
npm install pipedrive-wrapperAdd new functionality to the official package. In the list you can find extensions the wrapper brought.
``javascript`
findOrCreateOrganization(input, callback)
Find or create an organization.
|Parameter |Tags |Description
|---------------|-------------|-----------
|input.body |Required |An organization data the same as for rest of OrganizationsControllerRequired
|input.params | |Item search parameters the same as for rest of ItemsController
Return a promise with a not modified response.
`javascript`
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 OrganizationsControllerRequired
|input.params | |Item search parameters the same as for rest of ItemsController
Return a promise with a not modified response.
`javascript`
findOrCreatePerson(input, callback)
Find or create a person.
|Parameter |Tags |Description
|---------------|-------------|-----------
|input.body |Required |A person data the same as for rest of PersonsControllerRequired
|input.params | |Item search parameters the same as for rest of ItemsController
Return a promise with a not modified response.
`javascript`
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 PersonsControllerRequired
|input.params | |Item search parameters the same as for rest of ItemsController
Return a promise with a not modified response.
`javascript`
findOrCreateDeal(input, callback)
Find or create a deal.
|Parameter |Tags |Description
|---------------|-------------|-----------
|input.body |Required |A deal data the same as for rest of DealsControllerRequired
|input.params | |Item search parameters the same as for rest of ItemsController
Return a promise with a not modified response.
`javascript`
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 DealsControllerRequired
|input.params | |Item search parameters the same as for rest of ItemsController
Return a promise with a not modified response.
`javascript`
findOrCreateProduct(input, callback)
Find or create a product.
|Parameter |Tags |Description
|---------------|-------------|-----------
|input.body |Required |A product data the same as for rest of ProductsControllerRequired
|input.params | |Item search parameters the same as for rest of ItemsController
Return a promise with a not modified response.
`javascript`
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 ProductsControllerRequired
|input.params | |Item search parameters the same as for rest of ItemsController
Return a promise with a not modified response.
`javascript`
all(fn, input, callback)
Paginate and return all records.
|Parameter |Tags |Description
|---------------|-------------|-----------
|fn |Required |A method that should be paginated e.g. PersonsController.getAllPersonsOptional
|input | |An input data for the paginated methodOptional
|callback | |A callback
Return a promise with a single connected array.
Some models were modified cause an original package returned a null mapped response.
```
[
{ name: 'success', realName: 'success' },
{ name: 'data', realName: 'data', array: true },
]