diff --git a/CHANGELOG.md b/CHANGELOG.md index 51872896..c9d24071 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,82 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19). ## [Unreleased] +### Removed +- Removed deprecated v1 endpoints that have v2 equivalents. See the [deprecation announcement](https://developers.pipedrive.com/changelog/post/deprecation-of-selected-api-v1-endpoints) for details. Migrate by switching imports from `versions/v1` to `versions/v2` and using the corresponding SDK methods listed below. + + **ActivitiesApi** (`import { ActivitiesApi } from 'pipedrive/versions/v2'`): + - `v1.ActivitiesApi.getActivities()` → `v2.ActivitiesApi.getActivities()` (`GET /v1/activities` → `GET /api/v2/activities`) + - `v1.ActivitiesApi.getActivitiesCollection()` → `v2.ActivitiesApi.getActivities()` (`GET /v1/activities/collection` → `GET /api/v2/activities`) + - `v1.ActivitiesApi.getActivity()` → `v2.ActivitiesApi.getActivity()` (`GET /v1/activities/{id}` → `GET /api/v2/activities/{id}`) + - `v1.ActivitiesApi.addActivity()` → `v2.ActivitiesApi.addActivity()` (`POST /v1/activities` → `POST /api/v2/activities`) + - `v1.ActivitiesApi.updateActivity()` → `v2.ActivitiesApi.updateActivity()` (`PUT /v1/activities/{id}` → `PATCH /api/v2/activities/{id}`) + - `v1.ActivitiesApi.deleteActivity()` → `v2.ActivitiesApi.deleteActivity()` (`DELETE /v1/activities/{id}` → `DELETE /api/v2/activities/{id}`) + + **DealsApi** (`import { DealsApi } from 'pipedrive/versions/v2'`): + - `v1.DealsApi.getDeals()` → `v2.DealsApi.getDeals()` (`GET /v1/deals` → `GET /api/v2/deals`) + - `v1.DealsApi.getDealsCollection()` → `v2.DealsApi.getDeals()` (`GET /v1/deals/collection` → `GET /api/v2/deals`) + - `v1.DealsApi.getDeal()` → `v2.DealsApi.getDeal()` (`GET /v1/deals/{id}` → `GET /api/v2/deals/{id}`) + - `v1.DealsApi.searchDeals()` → `v2.DealsApi.searchDeals()` (`GET /v1/deals/search` → `GET /api/v2/deals/search`) + - `v1.DealsApi.addDeal()` → `v2.DealsApi.addDeal()` (`POST /v1/deals` → `POST /api/v2/deals`) + - `v1.DealsApi.updateDeal()` → `v2.DealsApi.updateDeal()` (`PUT /v1/deals/{id}` → `PATCH /api/v2/deals/{id}`) + - `v1.DealsApi.deleteDeal()` → `v2.DealsApi.deleteDeal()` (`DELETE /v1/deals/{id}` → `DELETE /api/v2/deals/{id}`) + - `v1.DealsApi.getDealActivities()` → `v2.ActivitiesApi.getActivities({ deal_id })` (`GET /v1/deals/{id}/activities` → `GET /api/v2/activities?deal_id={id}`) + - `v1.DealsApi.getDealPersons()` → `v2.PersonsApi.getPersons({ deal_id })` (`GET /v1/deals/{id}/persons` → `GET /api/v2/persons?deal_id={id}`) + - `v1.DealsApi.getDealProducts()` → `v2.DealsApi.getDealProducts()` (`GET /v1/deals/{id}/products` → `GET /api/v2/deals/{id}/products`) + - `v1.DealsApi.addDealProduct()` → `v2.DealsApi.addDealProduct()` (`POST /v1/deals/{id}/products` → `POST /api/v2/deals/{id}/products`) + - `v1.DealsApi.updateDealProduct()` → `v2.DealsApi.updateDealProduct()` (`PUT /v1/deals/{id}/products/{product_attachment_id}` → `PATCH /api/v2/deals/{id}/products/{product_attachment_id}`) + - `v1.DealsApi.deleteDealProduct()` → `v2.DealsApi.deleteDealProduct()` (`DELETE /v1/deals/{id}/products/{product_attachment_id}` → `DELETE /api/v2/deals/{id}/products/{product_attachment_id}`) + + **ItemSearchApi** (`import { ItemSearchApi } from 'pipedrive/versions/v2'`): + - `v1.ItemSearchApi.searchItem()` → `v2.ItemSearchApi.searchItem()` (`GET /v1/itemSearch` → `GET /api/v2/itemSearch`) + - `v1.ItemSearchApi.searchItemByField()` → `v2.ItemSearchApi.searchItemByField()` (`GET /v1/itemSearch/field` → `GET /api/v2/itemSearch/field`) + + **OrganizationsApi** (`import { OrganizationsApi } from 'pipedrive/versions/v2'`): + - `v1.OrganizationsApi.getOrganizations()` → `v2.OrganizationsApi.getOrganizations()` (`GET /v1/organizations` → `GET /api/v2/organizations`) + - `v1.OrganizationsApi.getOrganizationsCollection()` → `v2.OrganizationsApi.getOrganizations()` (`GET /v1/organizations/collection` → `GET /api/v2/organizations`) + - `v1.OrganizationsApi.getOrganization()` → `v2.OrganizationsApi.getOrganization()` (`GET /v1/organizations/{id}` → `GET /api/v2/organizations/{id}`) + - `v1.OrganizationsApi.searchOrganization()` → `v2.OrganizationsApi.searchOrganization()` (`GET /v1/organizations/search` → `GET /api/v2/organizations/search`) + - `v1.OrganizationsApi.addOrganization()` → `v2.OrganizationsApi.addOrganization()` (`POST /v1/organizations` → `POST /api/v2/organizations`) + - `v1.OrganizationsApi.updateOrganization()` → `v2.OrganizationsApi.updateOrganization()` (`PUT /v1/organizations/{id}` → `PATCH /api/v2/organizations/{id}`) + - `v1.OrganizationsApi.deleteOrganization()` → `v2.OrganizationsApi.deleteOrganization()` (`DELETE /v1/organizations/{id}` → `DELETE /api/v2/organizations/{id}`) + - `v1.OrganizationsApi.getOrganizationDeals()` → `v2.DealsApi.getDeals({ org_id })` (`GET /v1/organizations/{id}/deals` → `GET /api/v2/deals?org_id={id}`) + - `v1.OrganizationsApi.getOrganizationActivities()` → `v2.ActivitiesApi.getActivities({ org_id })` (`GET /v1/organizations/{id}/activities` → `GET /api/v2/activities?org_id={id}`) + - `v1.OrganizationsApi.getOrganizationPersons()` → `v2.PersonsApi.getPersons({ org_id })` (`GET /v1/organizations/{id}/persons` → `GET /api/v2/persons?org_id={id}`) + + **PersonsApi** (`import { PersonsApi } from 'pipedrive/versions/v2'`): + - `v1.PersonsApi.getPersons()` → `v2.PersonsApi.getPersons()` (`GET /v1/persons` → `GET /api/v2/persons`) + - `v1.PersonsApi.getPersonsCollection()` → `v2.PersonsApi.getPersons()` (`GET /v1/persons/collection` → `GET /api/v2/persons`) + - `v1.PersonsApi.getPerson()` → `v2.PersonsApi.getPerson()` (`GET /v1/persons/{id}` → `GET /api/v2/persons/{id}`) + - `v1.PersonsApi.searchPersons()` → `v2.PersonsApi.searchPersons()` (`GET /v1/persons/search` → `GET /api/v2/persons/search`) + - `v1.PersonsApi.addPerson()` → `v2.PersonsApi.addPerson()` (`POST /v1/persons` → `POST /api/v2/persons`) + - `v1.PersonsApi.updatePerson()` → `v2.PersonsApi.updatePerson()` (`PUT /v1/persons/{id}` → `PATCH /api/v2/persons/{id}`) + - `v1.PersonsApi.deletePerson()` → `v2.PersonsApi.deletePerson()` (`DELETE /v1/persons/{id}` → `DELETE /api/v2/persons/{id}`) + - `v1.PersonsApi.getPersonDeals()` → `v2.DealsApi.getDeals({ person_id })` (`GET /v1/persons/{id}/deals` → `GET /api/v2/deals?person_id={id}`) + - `v1.PersonsApi.getPersonActivities()` → `v2.ActivitiesApi.getActivities({ person_id })` (`GET /v1/persons/{id}/activities` → `GET /api/v2/activities?person_id={id}`) + + **PipelinesApi** (`import { PipelinesApi } from 'pipedrive/versions/v2'`): + - `v1.PipelinesApi.getPipelines()` → `v2.PipelinesApi.getPipelines()` (`GET /v1/pipelines` → `GET /api/v2/pipelines`) + - `v1.PipelinesApi.getPipeline()` → `v2.PipelinesApi.getPipeline()` (`GET /v1/pipelines/{id}` → `GET /api/v2/pipelines/{id}`) + - `v1.PipelinesApi.addPipeline()` → `v2.PipelinesApi.addPipeline()` (`POST /v1/pipelines` → `POST /api/v2/pipelines`) + - `v1.PipelinesApi.updatePipeline()` → `v2.PipelinesApi.updatePipeline()` (`PUT /v1/pipelines/{id}` → `PATCH /api/v2/pipelines/{id}`) + - `v1.PipelinesApi.deletePipeline()` → `v2.PipelinesApi.deletePipeline()` (`DELETE /v1/pipelines/{id}` → `DELETE /api/v2/pipelines/{id}`) + + **ProductsApi** (`import { ProductsApi } from 'pipedrive/versions/v2'`): + - `v1.ProductsApi.getProducts()` → `v2.ProductsApi.getProducts()` (`GET /v1/products` → `GET /api/v2/products`) + - `v1.ProductsApi.getProduct()` → `v2.ProductsApi.getProduct()` (`GET /v1/products/{id}` → `GET /api/v2/products/{id}`) + - `v1.ProductsApi.searchProducts()` → `v2.ProductsApi.searchProducts()` (`GET /v1/products/search` → `GET /api/v2/products/search`) + - `v1.ProductsApi.addProduct()` → `v2.ProductsApi.addProduct()` (`POST /v1/products` → `POST /api/v2/products`) + - `v1.ProductsApi.updateProduct()` → `v2.ProductsApi.updateProduct()` (`PUT /v1/products/{id}` → `PATCH /api/v2/products/{id}`) + - `v1.ProductsApi.deleteProduct()` → `v2.ProductsApi.deleteProduct()` (`DELETE /v1/products/{id}` → `DELETE /api/v2/products/{id}`) + + **StagesApi** (`import { StagesApi } from 'pipedrive/versions/v2'`): + - `v1.StagesApi.getStages()` → `v2.StagesApi.getStages()` (`GET /v1/stages` → `GET /api/v2/stages`) + - `v1.StagesApi.getStage()` → `v2.StagesApi.getStage()` (`GET /v1/stages/{id}` → `GET /api/v2/stages/{id}`) + - `v1.StagesApi.addStage()` → `v2.StagesApi.addStage()` (`POST /v1/stages` → `POST /api/v2/stages`) + - `v1.StagesApi.updateStage()` → `v2.StagesApi.updateStage()` (`PUT /v1/stages/{id}` → `PATCH /api/v2/stages/{id}`) + - `v1.StagesApi.deleteStage()` → `v2.StagesApi.deleteStage()` (`DELETE /v1/stages/{id}` → `DELETE /api/v2/stages/{id}`) +### Fixed +- Made `picture_id`, `org_id`, `label`, `last_name`, `cc_email`, `last_incoming_mail_time`, and `last_outgoing_mail_time` nullable in person and organization schemas to match real API behavior ## [31.6.0] - 2026-03-05 ### Changed diff --git a/docs/v1.md b/docs/v1.md index d1465d55..dd8765ab 100644 --- a/docs/v1.md +++ b/docs/v1.md @@ -4,12 +4,6 @@ All URIs are relative to _https://api.pipedrive.com/v1_ Class | Method | HTTP request | Description | ------------ | ------------- | ------------- | ------------- | -ActivitiesApi | addActivity | **POST** /activities | Add an activity -ActivitiesApi | deleteActivity | **DELETE** /activities/{id} | Delete an activity -ActivitiesApi | getActivities | **GET** /activities | Get all activities assigned to a particular user -ActivitiesApi | getActivitiesCollection | **GET** /activities/collection | Get all activities collection -ActivitiesApi | getActivity | **GET** /activities/{id} | Get details of an activity -ActivitiesApi | updateActivity | **PUT** /activities/{id} | Update an activity ActivityFieldsApi | getActivityFields | **GET** /activityFields | Get all activity fields ActivityTypesApi | addActivityType | **POST** /activityTypes | Add new activity type ActivityTypesApi | deleteActivityType | **DELETE** /activityTypes/{id} | Delete an activity type @@ -32,38 +26,25 @@ DealFieldsApi | deleteDealFields | **DELETE** /dealFields | Delete multiple deal DealFieldsApi | getDealField | **GET** /dealFields/{id} | Get one deal field DealFieldsApi | getDealFields | **GET** /dealFields | Get all deal fields DealFieldsApi | updateDealField | **PUT** /dealFields/{id} | Update a deal field -DealsApi | addDeal | **POST** /deals | Add a deal DealsApi | addDealFollower | **POST** /deals/{id}/followers | Add a follower to a deal DealsApi | addDealParticipant | **POST** /deals/{id}/participants | Add a participant to a deal -DealsApi | addDealProduct | **POST** /deals/{id}/products | Add a product to a deal -DealsApi | deleteDeal | **DELETE** /deals/{id} | Delete a deal DealsApi | deleteDealFollower | **DELETE** /deals/{id}/followers/{follower_id} | Delete a follower from a deal DealsApi | deleteDealParticipant | **DELETE** /deals/{id}/participants/{deal_participant_id} | Delete a participant from a deal -DealsApi | deleteDealProduct | **DELETE** /deals/{id}/products/{product_attachment_id} | Delete an attached product from a deal DealsApi | duplicateDeal | **POST** /deals/{id}/duplicate | Duplicate deal DealsApi | getArchivedDeals | **GET** /deals/archived | Get all archived deals DealsApi | getArchivedDealsSummary | **GET** /deals/summary/archived | Get archived deals summary DealsApi | getArchivedDealsTimeline | **GET** /deals/timeline/archived | Get archived deals timeline -DealsApi | getDeal | **GET** /deals/{id} | Get details of a deal -DealsApi | getDealActivities | **GET** /deals/{id}/activities | List activities associated with a deal DealsApi | getDealChangelog | **GET** /deals/{id}/changelog | List updates about deal field values DealsApi | getDealFiles | **GET** /deals/{id}/files | List files attached to a deal DealsApi | getDealFollowers | **GET** /deals/{id}/followers | List followers of a deal DealsApi | getDealMailMessages | **GET** /deals/{id}/mailMessages | List mail messages associated with a deal DealsApi | getDealParticipants | **GET** /deals/{id}/participants | List participants of a deal DealsApi | getDealParticipantsChangelog | **GET** /deals/{id}/participantsChangelog | List updates about participants of a deal -DealsApi | getDealPersons | **GET** /deals/{id}/persons | List all persons associated with a deal -DealsApi | getDealProducts | **GET** /deals/{id}/products | List products attached to a deal DealsApi | getDealUpdates | **GET** /deals/{id}/flow | List updates about a deal DealsApi | getDealUsers | **GET** /deals/{id}/permittedUsers | List permitted users -DealsApi | getDeals | **GET** /deals | Get all deals -DealsApi | getDealsCollection | **GET** /deals/collection | Get all deals collection DealsApi | getDealsSummary | **GET** /deals/summary | Get deals summary DealsApi | getDealsTimeline | **GET** /deals/timeline | Get deals timeline DealsApi | mergeDeals | **PUT** /deals/{id}/merge | Merge two deals -DealsApi | searchDeals | **GET** /deals/search | Search deals -DealsApi | updateDeal | **PUT** /deals/{id} | Update a deal -DealsApi | updateDealProduct | **PUT** /deals/{id}/products/{product_attachment_id} | Update the product attached to a deal FilesApi | addFile | **POST** /files | Add file FilesApi | addFileAndLinkIt | **POST** /files/remote | Create a remote file and link it to an item FilesApi | deleteFile | **DELETE** /files/{id} | Delete a file @@ -84,8 +65,6 @@ GoalsApi | deleteGoal | **DELETE** /goals/{id} | Delete existing goal GoalsApi | getGoalResult | **GET** /goals/{id}/results | Get result of a goal GoalsApi | getGoals | **GET** /goals/find | Find goals GoalsApi | updateGoal | **PUT** /goals/{id} | Update existing goal -ItemSearchApi | searchItem | **GET** /itemSearch | Perform a search from multiple item types -ItemSearchApi | searchItemByField | **GET** /itemSearch/field | Perform a search using a specific field from an item type LeadFieldsApi | getLeadFields | **GET** /leadFields | Get all lead fields LeadLabelsApi | addLeadLabel | **POST** /leadLabels | Add a lead label LeadLabelsApi | deleteLeadLabel | **DELETE** /leadLabels/{id} | Delete a lead label @@ -138,25 +117,15 @@ OrganizationRelationshipsApi | deleteOrganizationRelationship | **DELETE** /orga OrganizationRelationshipsApi | getOrganizationRelationship | **GET** /organizationRelationships/{id} | Get one organization relationship OrganizationRelationshipsApi | getOrganizationRelationships | **GET** /organizationRelationships | Get all relationships for organization OrganizationRelationshipsApi | updateOrganizationRelationship | **PUT** /organizationRelationships/{id} | Update an organization relationship -OrganizationsApi | addOrganization | **POST** /organizations | Add an organization OrganizationsApi | addOrganizationFollower | **POST** /organizations/{id}/followers | Add a follower to an organization -OrganizationsApi | deleteOrganization | **DELETE** /organizations/{id} | Delete an organization OrganizationsApi | deleteOrganizationFollower | **DELETE** /organizations/{id}/followers/{follower_id} | Delete a follower from an organization -OrganizationsApi | getOrganization | **GET** /organizations/{id} | Get details of an organization -OrganizationsApi | getOrganizationActivities | **GET** /organizations/{id}/activities | List activities associated with an organization OrganizationsApi | getOrganizationChangelog | **GET** /organizations/{id}/changelog | List updates about organization field values -OrganizationsApi | getOrganizationDeals | **GET** /organizations/{id}/deals | List deals associated with an organization OrganizationsApi | getOrganizationFiles | **GET** /organizations/{id}/files | List files attached to an organization OrganizationsApi | getOrganizationFollowers | **GET** /organizations/{id}/followers | List followers of an organization OrganizationsApi | getOrganizationMailMessages | **GET** /organizations/{id}/mailMessages | List mail messages associated with an organization -OrganizationsApi | getOrganizationPersons | **GET** /organizations/{id}/persons | List persons of an organization OrganizationsApi | getOrganizationUpdates | **GET** /organizations/{id}/flow | List updates about an organization OrganizationsApi | getOrganizationUsers | **GET** /organizations/{id}/permittedUsers | List permitted users -OrganizationsApi | getOrganizations | **GET** /organizations | Get all organizations -OrganizationsApi | getOrganizationsCollection | **GET** /organizations/collection | Get all organizations collection OrganizationsApi | mergeOrganizations | **PUT** /organizations/{id}/merge | Merge two organizations -OrganizationsApi | searchOrganization | **GET** /organizations/search | Search organizations -OrganizationsApi | updateOrganization | **PUT** /organizations/{id} | Update an organization PermissionSetsApi | getPermissionSet | **GET** /permissionSets/{id} | Get one permission set PermissionSetsApi | getPermissionSetAssignments | **GET** /permissionSets/{id}/assignments | List permission set assignments PermissionSetsApi | getPermissionSets | **GET** /permissionSets | Get all permission sets @@ -166,53 +135,33 @@ PersonFieldsApi | deletePersonFields | **DELETE** /personFields | Delete multipl PersonFieldsApi | getPersonField | **GET** /personFields/{id} | Get one person field PersonFieldsApi | getPersonFields | **GET** /personFields | Get all person fields PersonFieldsApi | updatePersonField | **PUT** /personFields/{id} | Update a person field -PersonsApi | addPerson | **POST** /persons | Add a person PersonsApi | addPersonFollower | **POST** /persons/{id}/followers | Add a follower to a person PersonsApi | addPersonPicture | **POST** /persons/{id}/picture | Add person picture -PersonsApi | deletePerson | **DELETE** /persons/{id} | Delete a person PersonsApi | deletePersonFollower | **DELETE** /persons/{id}/followers/{follower_id} | Delete a follower from a person PersonsApi | deletePersonPicture | **DELETE** /persons/{id}/picture | Delete person picture -PersonsApi | getPerson | **GET** /persons/{id} | Get details of a person -PersonsApi | getPersonActivities | **GET** /persons/{id}/activities | List activities associated with a person PersonsApi | getPersonChangelog | **GET** /persons/{id}/changelog | List updates about person field values -PersonsApi | getPersonDeals | **GET** /persons/{id}/deals | List deals associated with a person PersonsApi | getPersonFiles | **GET** /persons/{id}/files | List files attached to a person PersonsApi | getPersonFollowers | **GET** /persons/{id}/followers | List followers of a person PersonsApi | getPersonMailMessages | **GET** /persons/{id}/mailMessages | List mail messages associated with a person PersonsApi | getPersonProducts | **GET** /persons/{id}/products | List products associated with a person PersonsApi | getPersonUpdates | **GET** /persons/{id}/flow | List updates about a person PersonsApi | getPersonUsers | **GET** /persons/{id}/permittedUsers | List permitted users -PersonsApi | getPersons | **GET** /persons | Get all persons -PersonsApi | getPersonsCollection | **GET** /persons/collection | Get all persons collection PersonsApi | mergePersons | **PUT** /persons/{id}/merge | Merge two persons -PersonsApi | searchPersons | **GET** /persons/search | Search persons -PersonsApi | updatePerson | **PUT** /persons/{id} | Update a person -PipelinesApi | addPipeline | **POST** /pipelines | Add a new pipeline -PipelinesApi | deletePipeline | **DELETE** /pipelines/{id} | Delete a pipeline -PipelinesApi | getPipeline | **GET** /pipelines/{id} | Get one pipeline PipelinesApi | getPipelineConversionStatistics | **GET** /pipelines/{id}/conversion_statistics | Get deals conversion rates in pipeline PipelinesApi | getPipelineDeals | **GET** /pipelines/{id}/deals | Get deals in a pipeline PipelinesApi | getPipelineMovementStatistics | **GET** /pipelines/{id}/movement_statistics | Get deals movements in pipeline -PipelinesApi | getPipelines | **GET** /pipelines | Get all pipelines -PipelinesApi | updatePipeline | **PUT** /pipelines/{id} | Update a pipeline ProductFieldsApi | addProductField | **POST** /productFields | Add a new product field ProductFieldsApi | deleteProductField | **DELETE** /productFields/{id} | Delete a product field ProductFieldsApi | deleteProductFields | **DELETE** /productFields | Delete multiple product fields in bulk ProductFieldsApi | getProductField | **GET** /productFields/{id} | Get one product field ProductFieldsApi | getProductFields | **GET** /productFields | Get all product fields ProductFieldsApi | updateProductField | **PUT** /productFields/{id} | Update a product field -ProductsApi | addProduct | **POST** /products | Add a product ProductsApi | addProductFollower | **POST** /products/{id}/followers | Add a follower to a product -ProductsApi | deleteProduct | **DELETE** /products/{id} | Delete a product ProductsApi | deleteProductFollower | **DELETE** /products/{id}/followers/{follower_id} | Delete a follower from a product -ProductsApi | getProduct | **GET** /products/{id} | Get one product ProductsApi | getProductDeals | **GET** /products/{id}/deals | Get deals where a product is attached to ProductsApi | getProductFiles | **GET** /products/{id}/files | List files attached to a product ProductsApi | getProductFollowers | **GET** /products/{id}/followers | List followers of a product ProductsApi | getProductUsers | **GET** /products/{id}/permittedUsers | List permitted users -ProductsApi | getProducts | **GET** /products | Get all products -ProductsApi | searchProducts | **GET** /products/search | Search products -ProductsApi | updateProduct | **PUT** /products/{id} | Update a product ProjectTemplatesApi | getProjectTemplate | **GET** /projectTemplates/{id} | Get details of a template ProjectTemplatesApi | getProjectTemplates | **GET** /projectTemplates | Get all project templates ProjectTemplatesApi | getProjectsBoard | **GET** /projects/boards/{id} | Get details of a board @@ -244,12 +193,7 @@ RolesApi | getRoleSettings | **GET** /roles/{id}/settings | List role settings RolesApi | getRoles | **GET** /roles | Get all roles RolesApi | updateRole | **PUT** /roles/{id} | Update role details RolesApi | updateRolePipelines | **PUT** /roles/{id}/pipelines | Update pipeline visibility for a role -StagesApi | addStage | **POST** /stages | Add a new stage -StagesApi | deleteStage | **DELETE** /stages/{id} | Delete a stage -StagesApi | getStage | **GET** /stages/{id} | Get one stage StagesApi | getStageDeals | **GET** /stages/{id}/deals | Get deals in a stage -StagesApi | getStages | **GET** /stages | Get all stages -StagesApi | updateStage | **PUT** /stages/{id} | Update stage details TasksApi | addTask | **POST** /tasks | Add a task TasksApi | deleteTask | **DELETE** /tasks/{id} | Delete a task TasksApi | getTask | **GET** /tasks/{id} | Get details of a task diff --git a/src/versions/v1/api.ts b/src/versions/v1/api.ts index f0f65ace..45a4e1e7 100644 --- a/src/versions/v1/api.ts +++ b/src/versions/v1/api.ts @@ -14,7 +14,6 @@ -export * from './api/activities-api'; export * from './api/activity-fields-api'; export * from './api/activity-types-api'; export * from './api/billing-api'; @@ -26,7 +25,6 @@ export * from './api/deals-api'; export * from './api/files-api'; export * from './api/filters-api'; export * from './api/goals-api'; -export * from './api/item-search-api'; export * from './api/lead-fields-api'; export * from './api/lead-labels-api'; export * from './api/lead-sources-api'; diff --git a/src/versions/v1/api/activities-api.ts b/src/versions/v1/api/activities-api.ts deleted file mode 100644 index ff817799..00000000 --- a/src/versions/v1/api/activities-api.ts +++ /dev/null @@ -1,793 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import type { Configuration } from '../configuration'; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import globalAxios from 'axios'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { AddActivityRequest } from '../models'; -// @ts-ignore -import { AddActivityResponse } from '../models'; -// @ts-ignore -import { DeleteActivityResponse } from '../models'; -// @ts-ignore -import { FailResponse } from '../models'; -// @ts-ignore -import { GetActivitiesCollectionResponse } from '../models'; -// @ts-ignore -import { GetActivitiesResponse } from '../models'; -// @ts-ignore -import { GetActivityResponse } from '../models'; -// @ts-ignore -import { UpdateActivityRequest } from '../models'; -// @ts-ignore -import { UpdateActivityResponse } from '../models'; -/** - * ActivitiesApi - axios parameter creator - * @export - */ -export const ActivitiesApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Adds a new activity. Includes `more_activities_scheduled_in_context` property in response\'s `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information, see the tutorial for adding an activity.

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @summary Add an activity - * @param {AddActivityRequest} [AddActivityRequest] - * @deprecated - * @throws {RequiredError} - */ - addActivity: async (AddActivityRequest?: AddActivityRequest, ): Promise => { - const localVarPath = `/activities`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(AddActivityRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. - * @summary Delete an activity - * @param {number} id The ID of the activity - * @deprecated - * @throws {RequiredError} - */ - deleteActivity: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteActivity', 'id', id) - const localVarPath = `/activities/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns all activities assigned to a particular user. - * @summary Get all activities assigned to a particular user - * @param {number} [user_id] The ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets. - * @param {number} [filter_id] The ID of the filter to use (will narrow down results if used together with `user_id` parameter) - * @param {string} [type] The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - * @param {number} [start] For pagination, the position that represents the first result for the page - * @param {string} [start_date] Use the activity due date where you wish to begin fetching activities from. Insert due date in YYYY-MM-DD format. - * @param {string} [end_date] Use the activity due date where you wish to stop fetching activities from. Insert due date in YYYY-MM-DD format. - * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both done and not done activities. - * @deprecated - * @throws {RequiredError} - */ - getActivities: async (user_id?: number, filter_id?: number, type?: string, limit?: number, start?: number, start_date?: string, end_date?: string, done?: 0 | 1, ): Promise => { - const localVarPath = `/activities`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) - - if (user_id !== undefined) { - localVarQueryParameter['user_id'] = user_id; - } - - if (filter_id !== undefined) { - localVarQueryParameter['filter_id'] = filter_id; - } - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (start_date !== undefined) { - localVarQueryParameter['start_date'] = (start_date as any instanceof Date) ? - (start_date as any).toISOString().substr(0,10) : - start_date; - } - - if (end_date !== undefined) { - localVarQueryParameter['end_date'] = (end_date as any instanceof Date) ? - (end_date as any).toISOString().substr(0,10) : - end_date; - } - - if (done !== undefined) { - localVarQueryParameter['done'] = done; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns all activities. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/activities instead. - * @summary Get all activities collection - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {number} [user_id] The ID of the user whose activities will be fetched. If omitted, all activities are returned. - * @param {boolean} [done] Whether the activity is done or not. `false` = Not done, `true` = Done. If omitted, returns both done and not done activities. - * @param {string} [type] The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - * @deprecated - * @throws {RequiredError} - */ - getActivitiesCollection: async (cursor?: string, limit?: number, since?: string, until?: string, user_id?: number, done?: boolean, type?: string, ): Promise => { - const localVarPath = `/activities/collection`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) - - if (cursor !== undefined) { - localVarQueryParameter['cursor'] = cursor; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (since !== undefined) { - localVarQueryParameter['since'] = since; - } - - if (until !== undefined) { - localVarQueryParameter['until'] = until; - } - - if (user_id !== undefined) { - localVarQueryParameter['user_id'] = user_id; - } - - if (done !== undefined) { - localVarQueryParameter['done'] = done; - } - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns the details of a specific activity. - * @summary Get details of an activity - * @param {number} id The ID of the activity - * @deprecated - * @throws {RequiredError} - */ - getActivity: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getActivity', 'id', id) - const localVarPath = `/activities/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates an activity. Includes `more_activities_scheduled_in_context` property in response\'s `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data).

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @summary Update an activity - * @param {number} id The ID of the activity - * @param {UpdateActivityRequest} [UpdateActivityRequest] - * @deprecated - * @throws {RequiredError} - */ - updateActivity: async (id: number, UpdateActivityRequest?: UpdateActivityRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateActivity', 'id', id) - const localVarPath = `/activities/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(UpdateActivityRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - - -/** - * ActivitiesApi - functional programming interface - * @export - */ -export const ActivitiesApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ActivitiesApiAxiosParamCreator(configuration) - return { - /** - * Adds a new activity. Includes `more_activities_scheduled_in_context` property in response\'s `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information, see the tutorial for adding an activity.

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @summary Add an activity - * @param {AddActivityRequest} [AddActivityRequest] - * @deprecated - * @throws {RequiredError} - */ - async addActivity(AddActivityRequest?: AddActivityRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addActivity(AddActivityRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. - * @summary Delete an activity - * @param {number} id The ID of the activity - * @deprecated - * @throws {RequiredError} - */ - async deleteActivity(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivity(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns all activities assigned to a particular user. - * @summary Get all activities assigned to a particular user - * @param {number} [user_id] The ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets. - * @param {number} [filter_id] The ID of the filter to use (will narrow down results if used together with `user_id` parameter) - * @param {string} [type] The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - * @param {number} [start] For pagination, the position that represents the first result for the page - * @param {string} [start_date] Use the activity due date where you wish to begin fetching activities from. Insert due date in YYYY-MM-DD format. - * @param {string} [end_date] Use the activity due date where you wish to stop fetching activities from. Insert due date in YYYY-MM-DD format. - * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both done and not done activities. - * @deprecated - * @throws {RequiredError} - */ - async getActivities(user_id?: number, filter_id?: number, type?: string, limit?: number, start?: number, start_date?: string, end_date?: string, done?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(user_id, filter_id, type, limit, start, start_date, end_date, done, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns all activities. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/activities instead. - * @summary Get all activities collection - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {number} [user_id] The ID of the user whose activities will be fetched. If omitted, all activities are returned. - * @param {boolean} [done] Whether the activity is done or not. `false` = Not done, `true` = Done. If omitted, returns both done and not done activities. - * @param {string} [type] The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - * @deprecated - * @throws {RequiredError} - */ - async getActivitiesCollection(cursor?: string, limit?: number, since?: string, until?: string, user_id?: number, done?: boolean, type?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getActivitiesCollection(cursor, limit, since, until, user_id, done, type, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns the details of a specific activity. - * @summary Get details of an activity - * @param {number} id The ID of the activity - * @deprecated - * @throws {RequiredError} - */ - async getActivity(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getActivity(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates an activity. Includes `more_activities_scheduled_in_context` property in response\'s `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data).

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @summary Update an activity - * @param {number} id The ID of the activity - * @param {UpdateActivityRequest} [UpdateActivityRequest] - * @deprecated - * @throws {RequiredError} - */ - async updateActivity(id: number, UpdateActivityRequest?: UpdateActivityRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateActivity(id, UpdateActivityRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * ActivitiesApi - factory interface - * @export - */ -export const ActivitiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ActivitiesApiFp(configuration) - return { - /** - * Adds a new activity. Includes `more_activities_scheduled_in_context` property in response\'s `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information, see the tutorial for adding an activity.

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @summary Add an activity - * @param {ActivitiesApiAddActivityRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - addActivity(requestParameters: ActivitiesApiAddActivityRequest = {}, ): Promise { - return localVarFp.addActivity(requestParameters.AddActivityRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. - * @summary Delete an activity - * @param {ActivitiesApiDeleteActivityRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - deleteActivity(requestParameters: ActivitiesApiDeleteActivityRequest, ): Promise { - return localVarFp.deleteActivity(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Returns all activities assigned to a particular user. - * @summary Get all activities assigned to a particular user - * @param {ActivitiesApiGetActivitiesRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getActivities(requestParameters: ActivitiesApiGetActivitiesRequest = {}, ): Promise { - return localVarFp.getActivities(requestParameters.user_id, requestParameters.filter_id, requestParameters.type, requestParameters.limit, requestParameters.start, requestParameters.start_date, requestParameters.end_date, requestParameters.done, ).then((request) => request(axios, basePath)); - }, - /** - * Returns all activities. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/activities instead. - * @summary Get all activities collection - * @param {ActivitiesApiGetActivitiesCollectionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getActivitiesCollection(requestParameters: ActivitiesApiGetActivitiesCollectionRequest = {}, ): Promise { - return localVarFp.getActivitiesCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.user_id, requestParameters.done, requestParameters.type, ).then((request) => request(axios, basePath)); - }, - /** - * Returns the details of a specific activity. - * @summary Get details of an activity - * @param {ActivitiesApiGetActivityRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getActivity(requestParameters: ActivitiesApiGetActivityRequest, ): Promise { - return localVarFp.getActivity(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Updates an activity. Includes `more_activities_scheduled_in_context` property in response\'s `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data).

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @summary Update an activity - * @param {ActivitiesApiUpdateActivityRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - updateActivity(requestParameters: ActivitiesApiUpdateActivityRequest, ): Promise { - return localVarFp.updateActivity(requestParameters.id, requestParameters.UpdateActivityRequest, ).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for addActivity operation in ActivitiesApi. - * @export - * @interface ActivitiesApiAddActivityRequest - */ -export interface ActivitiesApiAddActivityRequest { - /** - * - * @type {AddActivityRequest} - * @memberof ActivitiesApiAddActivity - */ - readonly AddActivityRequest?: AddActivityRequest -} - -/** - * Request parameters for deleteActivity operation in ActivitiesApi. - * @export - * @interface ActivitiesApiDeleteActivityRequest - */ -export interface ActivitiesApiDeleteActivityRequest { - /** - * The ID of the activity - * @type {number} - * @memberof ActivitiesApiDeleteActivity - */ - readonly id: number -} - -/** - * Request parameters for getActivities operation in ActivitiesApi. - * @export - * @interface ActivitiesApiGetActivitiesRequest - */ -export interface ActivitiesApiGetActivitiesRequest { - /** - * The ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets. - * @type {number} - * @memberof ActivitiesApiGetActivities - */ - readonly user_id?: number - - /** - * The ID of the filter to use (will narrow down results if used together with `user_id` parameter) - * @type {number} - * @memberof ActivitiesApiGetActivities - */ - readonly filter_id?: number - - /** - * The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - * @type {string} - * @memberof ActivitiesApiGetActivities - */ - readonly type?: string - - /** - * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - * @type {number} - * @memberof ActivitiesApiGetActivities - */ - readonly limit?: number - - /** - * For pagination, the position that represents the first result for the page - * @type {number} - * @memberof ActivitiesApiGetActivities - */ - readonly start?: number - - /** - * Use the activity due date where you wish to begin fetching activities from. Insert due date in YYYY-MM-DD format. - * @type {string} - * @memberof ActivitiesApiGetActivities - */ - readonly start_date?: string - - /** - * Use the activity due date where you wish to stop fetching activities from. Insert due date in YYYY-MM-DD format. - * @type {string} - * @memberof ActivitiesApiGetActivities - */ - readonly end_date?: string - - /** - * Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both done and not done activities. - * @type {0 | 1} - * @memberof ActivitiesApiGetActivities - */ - readonly done?: 0 | 1 -} - -/** - * Request parameters for getActivitiesCollection operation in ActivitiesApi. - * @export - * @interface ActivitiesApiGetActivitiesCollectionRequest - */ -export interface ActivitiesApiGetActivitiesCollectionRequest { - /** - * For pagination, the marker (an opaque string value) representing the first item on the next page - * @type {string} - * @memberof ActivitiesApiGetActivitiesCollection - */ - readonly cursor?: string - - /** - * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @type {number} - * @memberof ActivitiesApiGetActivitiesCollection - */ - readonly limit?: number - - /** - * The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @type {string} - * @memberof ActivitiesApiGetActivitiesCollection - */ - readonly since?: string - - /** - * The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @type {string} - * @memberof ActivitiesApiGetActivitiesCollection - */ - readonly until?: string - - /** - * The ID of the user whose activities will be fetched. If omitted, all activities are returned. - * @type {number} - * @memberof ActivitiesApiGetActivitiesCollection - */ - readonly user_id?: number - - /** - * Whether the activity is done or not. `false` = Not done, `true` = Done. If omitted, returns both done and not done activities. - * @type {boolean} - * @memberof ActivitiesApiGetActivitiesCollection - */ - readonly done?: boolean - - /** - * The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - * @type {string} - * @memberof ActivitiesApiGetActivitiesCollection - */ - readonly type?: string -} - -/** - * Request parameters for getActivity operation in ActivitiesApi. - * @export - * @interface ActivitiesApiGetActivityRequest - */ -export interface ActivitiesApiGetActivityRequest { - /** - * The ID of the activity - * @type {number} - * @memberof ActivitiesApiGetActivity - */ - readonly id: number -} - -/** - * Request parameters for updateActivity operation in ActivitiesApi. - * @export - * @interface ActivitiesApiUpdateActivityRequest - */ -export interface ActivitiesApiUpdateActivityRequest { - /** - * The ID of the activity - * @type {number} - * @memberof ActivitiesApiUpdateActivity - */ - readonly id: number - - /** - * - * @type {UpdateActivityRequest} - * @memberof ActivitiesApiUpdateActivity - */ - readonly UpdateActivityRequest?: UpdateActivityRequest -} - -/** - * ActivitiesApi - object-oriented interface - * @export - * @class ActivitiesApi - * @extends {BaseAPI} - */ -export class ActivitiesApi extends BaseAPI { - /** - * Adds a new activity. Includes `more_activities_scheduled_in_context` property in response\'s `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information, see the tutorial for adding an activity.

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @summary Add an activity - * @param {ActivitiesApiAddActivityRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - public addActivity(requestParameters: ActivitiesApiAddActivityRequest = {}, ) { - return ActivitiesApiFp(this.configuration).addActivity(requestParameters.AddActivityRequest, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. - * @summary Delete an activity - * @param {ActivitiesApiDeleteActivityRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - public deleteActivity(requestParameters: ActivitiesApiDeleteActivityRequest, ) { - return ActivitiesApiFp(this.configuration).deleteActivity(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns all activities assigned to a particular user. - * @summary Get all activities assigned to a particular user - * @param {ActivitiesApiGetActivitiesRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - public getActivities(requestParameters: ActivitiesApiGetActivitiesRequest = {}, ) { - return ActivitiesApiFp(this.configuration).getActivities(requestParameters.user_id, requestParameters.filter_id, requestParameters.type, requestParameters.limit, requestParameters.start, requestParameters.start_date, requestParameters.end_date, requestParameters.done, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns all activities. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/activities instead. - * @summary Get all activities collection - * @param {ActivitiesApiGetActivitiesCollectionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - public getActivitiesCollection(requestParameters: ActivitiesApiGetActivitiesCollectionRequest = {}, ) { - return ActivitiesApiFp(this.configuration).getActivitiesCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.user_id, requestParameters.done, requestParameters.type, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns the details of a specific activity. - * @summary Get details of an activity - * @param {ActivitiesApiGetActivityRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - public getActivity(requestParameters: ActivitiesApiGetActivityRequest, ) { - return ActivitiesApiFp(this.configuration).getActivity(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates an activity. Includes `more_activities_scheduled_in_context` property in response\'s `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data).

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @summary Update an activity - * @param {ActivitiesApiUpdateActivityRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - public updateActivity(requestParameters: ActivitiesApiUpdateActivityRequest, ) { - return ActivitiesApiFp(this.configuration).updateActivity(requestParameters.id, requestParameters.UpdateActivityRequest, ).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/src/versions/v1/api/deals-api.ts b/src/versions/v1/api/deals-api.ts index 3ac71fba..40419f80 100644 --- a/src/versions/v1/api/deals-api.ts +++ b/src/versions/v1/api/deals-api.ts @@ -28,44 +28,22 @@ import { AddDealFollowerResponse } from '../models'; // @ts-ignore import { AddDealParticipantRequest } from '../models'; // @ts-ignore -import { AddDealProductRequest } from '../models'; -// @ts-ignore -import { AddDealRequest } from '../models'; -// @ts-ignore import { AddParticipantsResponse } from '../models'; // @ts-ignore import { DeleteDealFollowerResponse } from '../models'; // @ts-ignore import { DeleteDealParticipantResponse } from '../models'; // @ts-ignore -import { DeleteDealProductResponse } from '../models'; -// @ts-ignore -import { DeleteDealResponse } from '../models'; -// @ts-ignore -import { FailResponse } from '../models'; -// @ts-ignore -import { GetAddProductAttachmentDetailsResponse } from '../models'; -// @ts-ignore -import { GetAddedDealResponse } from '../models'; -// @ts-ignore import { GetAssociatedFilesResponse } from '../models'; // @ts-ignore import { GetAssociatedMailMessagesResponse } from '../models'; // @ts-ignore import { GetChangelogResponse } from '../models'; // @ts-ignore -import { GetDealActivitiesResponse } from '../models'; -// @ts-ignore import { GetDealParticipantsResponse } from '../models'; // @ts-ignore -import { GetDealResponse } from '../models'; -// @ts-ignore -import { GetDealSearchResponse } from '../models'; -// @ts-ignore import { GetDealUpdatesResponse } from '../models'; // @ts-ignore -import { GetDealsCollectionResponse } from '../models'; -// @ts-ignore import { GetDealsResponse } from '../models'; // @ts-ignore import { GetDealsSummaryResponse } from '../models'; @@ -82,64 +60,13 @@ import { GetParticipantsChangelogResponse } from '../models'; // @ts-ignore import { GetPermittedUsersResponse } from '../models'; // @ts-ignore -import { GetPersonsResponse } from '../models'; -// @ts-ignore -import { GetProductAttachmentDetailsResponse } from '../models'; -// @ts-ignore -import { GetProductsResponse } from '../models'; -// @ts-ignore import { MergeDealsRequest } from '../models'; -// @ts-ignore -import { UpdateDealProductRequest } from '../models'; -// @ts-ignore -import { UpdateDealRequest } from '../models'; /** * DealsApi - axios parameter creator * @export */ export const DealsApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for adding a deal. - * @summary Add a deal - * @param {AddDealRequest} [AddDealRequest] - * @deprecated - * @throws {RequiredError} - */ - addDeal: async (AddDealRequest?: AddDealRequest, ): Promise => { - const localVarPath = `/deals`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(AddDealRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Adds a follower to a deal. * @summary Add a follower to a deal @@ -230,92 +157,6 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration options: localVarRequestOptions, }; }, - /** - * Adds a product to a deal, creating a new item called a deal-product. - * @summary Add a product to a deal - * @param {number} id The ID of the deal - * @param {AddDealProductRequest} [AddDealProductRequest] - * @deprecated - * @throws {RequiredError} - */ - addDealProduct: async (id: number, AddDealProductRequest?: AddDealProductRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('addDealProduct', 'id', id) - const localVarPath = `/deals/{id}/products` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "products:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(AddDealProductRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. - * @summary Delete a deal - * @param {number} id The ID of the deal - * @deprecated - * @throws {RequiredError} - */ - deleteDeal: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteDeal', 'id', id) - const localVarPath = `/deals/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Deletes a follower from a deal. * @summary Delete a follower from a deal @@ -397,51 +238,6 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled - * @summary Delete an attached product from a deal - * @param {number} id The ID of the deal - * @param {number} product_attachment_id The product attachment ID - * @deprecated - * @throws {RequiredError} - */ - deleteDealProduct: async (id: number, product_attachment_id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteDealProduct', 'id', id) - // verify required parameter 'product_attachment_id' is not null or undefined - assertParamExists('deleteDealProduct', 'product_attachment_id', product_attachment_id) - const localVarPath = `/deals/{id}/products/{product_attachment_id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"product_attachment_id"}}`, encodeURIComponent(String(product_attachment_id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "products:full"], configuration) - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; @@ -734,108 +530,6 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for getting details of a deal. - * @summary Get details of a deal - * @param {number} id The ID of the deal - * @deprecated - * @throws {RequiredError} - */ - getDeal: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getDeal', 'id', id) - const localVarPath = `/deals/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists activities associated with a deal.
This endpoint has been deprecated. Please use GET /api/v2/activities?deal_id={id} instead. - * @summary List activities associated with a deal - * @param {number} id The ID of the deal - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result - * @deprecated - * @throws {RequiredError} - */ - getDealActivities: async (id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getDealActivities', 'id', id) - const localVarPath = `/deals/{id}/activities` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (done !== undefined) { - localVarQueryParameter['done'] = done; - } - - if (exclude !== undefined) { - localVarQueryParameter['exclude'] = exclude; - } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; @@ -1147,18 +841,20 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration }; }, /** - * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field.
This endpoint has been deprecated. Please use GET /api/v2/persons?deal_id={id} instead. - * @summary List all persons associated with a deal + * Lists updates about a deal. + * @summary List updates about a deal * @param {number} id The ID of the deal * @param {number} [start] Pagination start * @param {number} [limit] Items shown per page - * @deprecated + * @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. + * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). + * @throws {RequiredError} */ - getDealPersons: async (id: number, start?: number, limit?: number, ): Promise => { + getDealUpdates: async (id: number, start?: number, limit?: number, all_changes?: string, items?: string, ): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('getDealPersons', 'id', id) - const localVarPath = `/deals/{id}/persons` + assertParamExists('getDealUpdates', 'id', id) + const localVarPath = `/deals/{id}/flow` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1176,116 +872,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists products attached to a deal. - * @summary List products attached to a deal - * @param {number} id The ID of the deal - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {0 | 1} [include_product_data] Whether to fetch product data along with each attached product (1) or not (0, default) - * @deprecated - * @throws {RequiredError} - */ - getDealProducts: async (id: number, start?: number, limit?: number, include_product_data?: 0 | 1, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getDealProducts', 'id', id) - const localVarPath = `/deals/{id}/products` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (include_product_data !== undefined) { - localVarQueryParameter['include_product_data'] = include_product_data; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists updates about a deal. - * @summary List updates about a deal - * @param {number} id The ID of the deal - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. - * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). - - * @throws {RequiredError} - */ - getDealUpdates: async (id: number, start?: number, limit?: number, all_changes?: string, items?: string, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getDealUpdates', 'id', id) - const localVarPath = `/deals/{id}/flow` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) if (start !== undefined) { localVarQueryParameter['start'] = start; @@ -1346,155 +933,6 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns all not archived deals. For more information, see the tutorial for getting all deals. - * @summary Get all deals - * @param {number} [user_id] If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied. - * @param {number} [filter_id] The ID of the filter to use - * @param {number} [stage_id] If supplied, only deals within the given stage will be returned - * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @param {0 | 1} [owned_by_you] When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied. - * @deprecated - * @throws {RequiredError} - */ - getDeals: async (user_id?: number, filter_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', start?: number, limit?: number, sort?: string, owned_by_you?: 0 | 1, ): Promise => { - const localVarPath = `/deals`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - if (user_id !== undefined) { - localVarQueryParameter['user_id'] = user_id; - } - - if (filter_id !== undefined) { - localVarQueryParameter['filter_id'] = filter_id; - } - - if (stage_id !== undefined) { - localVarQueryParameter['stage_id'] = stage_id; - } - - if (status !== undefined) { - localVarQueryParameter['status'] = status; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (sort !== undefined) { - localVarQueryParameter['sort'] = sort; - } - - if (owned_by_you !== undefined) { - localVarQueryParameter['owned_by_you'] = owned_by_you; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns all deals. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/deals instead. - * @summary Get all deals collection - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {number} [user_id] If supplied, only deals matching the given user will be returned - * @param {number} [stage_id] If supplied, only deals within the given stage will be returned - * @param {'open' | 'won' | 'lost' | 'deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @deprecated - * @throws {RequiredError} - */ - getDealsCollection: async (cursor?: string, limit?: number, since?: string, until?: string, user_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted', ): Promise => { - const localVarPath = `/deals/collection`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - if (cursor !== undefined) { - localVarQueryParameter['cursor'] = cursor; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (since !== undefined) { - localVarQueryParameter['since'] = since; - } - - if (until !== undefined) { - localVarQueryParameter['until'] = until; - } - - if (user_id !== undefined) { - localVarQueryParameter['user_id'] = user_id; - } - - if (stage_id !== undefined) { - localVarQueryParameter['stage_id'] = stage_id; - } - - if (status !== undefined) { - localVarQueryParameter['status'] = status; - } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; @@ -1698,184 +1136,6 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; localVarRequestOptions.data = serializeDataIfNeeded(MergeDealsRequest, localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. - * @summary Search deals - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. - * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. - * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. - * @param {'deal.cc_email'} [include_fields] Supports including optional fields in the results which are not provided by default - * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - searchDeals: async (term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: 'deal.cc_email', start?: number, limit?: number, ): Promise => { - // verify required parameter 'term' is not null or undefined - assertParamExists('searchDeals', 'term', term) - const localVarPath = `/deals/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "search:read"], configuration) - - if (term !== undefined) { - localVarQueryParameter['term'] = term; - } - - if (fields !== undefined) { - localVarQueryParameter['fields'] = fields; - } - - if (exact_match !== undefined) { - localVarQueryParameter['exact_match'] = exact_match; - } - - if (person_id !== undefined) { - localVarQueryParameter['person_id'] = person_id; - } - - if (organization_id !== undefined) { - localVarQueryParameter['organization_id'] = organization_id; - } - - if (status !== undefined) { - localVarQueryParameter['status'] = status; - } - - if (include_fields !== undefined) { - localVarQueryParameter['include_fields'] = include_fields; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates the properties of a deal. For more information, see the tutorial for updating a deal. - * @summary Update a deal - * @param {number} id The ID of the deal - * @param {UpdateDealRequest} [UpdateDealRequest] - * @deprecated - * @throws {RequiredError} - */ - updateDeal: async (id: number, UpdateDealRequest?: UpdateDealRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateDeal', 'id', id) - const localVarPath = `/deals/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(UpdateDealRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates the details of the product that has been attached to a deal. - * @summary Update the product attached to a deal - * @param {number} id The ID of the deal - * @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal) - * @param {UpdateDealProductRequest} [UpdateDealProductRequest] - * @deprecated - * @throws {RequiredError} - */ - updateDealProduct: async (id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateDealProduct', 'id', id) - // verify required parameter 'product_attachment_id' is not null or undefined - assertParamExists('updateDealProduct', 'product_attachment_id', product_attachment_id) - const localVarPath = `/deals/{id}/products/{product_attachment_id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"product_attachment_id"}}`, encodeURIComponent(String(product_attachment_id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(UpdateDealProductRequest, localVarRequestOptions, configuration) - return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, @@ -1892,17 +1152,6 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration export const DealsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration) return { - /** - * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for adding a deal. - * @summary Add a deal - * @param {AddDealRequest} [AddDealRequest] - * @deprecated - * @throws {RequiredError} - */ - async addDeal(AddDealRequest?: AddDealRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addDeal(AddDealRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Adds a follower to a deal. * @summary Add a follower to a deal @@ -1927,29 +1176,6 @@ export const DealsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.addDealParticipant(id, AddDealParticipantRequest, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Adds a product to a deal, creating a new item called a deal-product. - * @summary Add a product to a deal - * @param {number} id The ID of the deal - * @param {AddDealProductRequest} [AddDealProductRequest] - * @deprecated - * @throws {RequiredError} - */ - async addDealProduct(id: number, AddDealProductRequest?: AddDealProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addDealProduct(id, AddDealProductRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. - * @summary Delete a deal - * @param {number} id The ID of the deal - * @deprecated - * @throws {RequiredError} - */ - async deleteDeal(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeal(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Deletes a follower from a deal. * @summary Delete a follower from a deal @@ -1974,18 +1200,6 @@ export const DealsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDealParticipant(id, deal_participant_id, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled - * @summary Delete an attached product from a deal - * @param {number} id The ID of the deal - * @param {number} product_attachment_id The product attachment ID - * @deprecated - * @throws {RequiredError} - */ - async deleteDealProduct(id: number, product_attachment_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDealProduct(id, product_attachment_id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Duplicates a deal. * @summary Duplicate deal @@ -2053,32 +1267,6 @@ export const DealsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getArchivedDealsTimeline(start_date, interval, amount, field_key, user_id, pipeline_id, filter_id, exclude_deals, totals_convert_currency, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for getting details of a deal. - * @summary Get details of a deal - * @param {number} id The ID of the deal - * @deprecated - * @throws {RequiredError} - */ - async getDeal(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDeal(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Lists activities associated with a deal.
This endpoint has been deprecated. Please use GET /api/v2/activities?deal_id={id} instead. - * @summary List activities associated with a deal - * @param {number} id The ID of the deal - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result - * @deprecated - * @throws {RequiredError} - */ - async getDealActivities(id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDealActivities(id, start, limit, done, exclude, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Lists updates about field values of a deal. * @summary List updates about deal field values @@ -2132,55 +1320,28 @@ export const DealsApiFp = function(configuration?: Configuration) { }, /** * Lists the participants associated with a deal.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @summary List participants of a deal - * @param {number} id The ID of the deal - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - - * @throws {RequiredError} - */ - async getDealParticipants(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDealParticipants(id, start, limit, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. - * @summary List updates about participants of a deal - * @param {number} id The ID of the deal - * @param {number} [limit] Items shown per page - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - - * @throws {RequiredError} - */ - async getDealParticipantsChangelog(id: number, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDealParticipantsChangelog(id, limit, cursor, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field.
This endpoint has been deprecated. Please use GET /api/v2/persons?deal_id={id} instead. - * @summary List all persons associated with a deal + * @summary List participants of a deal * @param {number} id The ID of the deal * @param {number} [start] Pagination start * @param {number} [limit] Items shown per page - * @deprecated + * @throws {RequiredError} */ - async getDealPersons(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDealPersons(id, start, limit, ); + async getDealParticipants(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealParticipants(id, start, limit, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * Lists products attached to a deal. - * @summary List products attached to a deal + * List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary List updates about participants of a deal * @param {number} id The ID of the deal - * @param {number} [start] Pagination start * @param {number} [limit] Items shown per page - * @param {0 | 1} [include_product_data] Whether to fetch product data along with each attached product (1) or not (0, default) - * @deprecated + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @throws {RequiredError} */ - async getDealProducts(id: number, start?: number, limit?: number, include_product_data?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDealProducts(id, start, limit, include_product_data, ); + async getDealParticipantsChangelog(id: number, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealParticipantsChangelog(id, limit, cursor, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -2209,41 +1370,6 @@ export const DealsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getDealUsers(id, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Returns all not archived deals. For more information, see the tutorial for getting all deals. - * @summary Get all deals - * @param {number} [user_id] If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied. - * @param {number} [filter_id] The ID of the filter to use - * @param {number} [stage_id] If supplied, only deals within the given stage will be returned - * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @param {0 | 1} [owned_by_you] When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied. - * @deprecated - * @throws {RequiredError} - */ - async getDeals(user_id?: number, filter_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', start?: number, limit?: number, sort?: string, owned_by_you?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDeals(user_id, filter_id, stage_id, status, start, limit, sort, owned_by_you, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns all deals. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/deals instead. - * @summary Get all deals collection - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {number} [user_id] If supplied, only deals matching the given user will be returned - * @param {number} [stage_id] If supplied, only deals within the given stage will be returned - * @param {'open' | 'won' | 'lost' | 'deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @deprecated - * @throws {RequiredError} - */ - async getDealsCollection(cursor?: string, limit?: number, since?: string, until?: string, user_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDealsCollection(cursor, limit, since, until, user_id, stage_id, status, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Returns a summary of all not archived deals. * @summary Get deals summary @@ -2290,50 +1416,6 @@ export const DealsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.mergeDeals(id, MergeDealsRequest, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. - * @summary Search deals - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. - * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. - * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. - * @param {'deal.cc_email'} [include_fields] Supports including optional fields in the results which are not provided by default - * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - async searchDeals(term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: 'deal.cc_email', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.searchDeals(term, fields, exact_match, person_id, organization_id, status, include_fields, start, limit, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates the properties of a deal. For more information, see the tutorial for updating a deal. - * @summary Update a deal - * @param {number} id The ID of the deal - * @param {UpdateDealRequest} [UpdateDealRequest] - * @deprecated - * @throws {RequiredError} - */ - async updateDeal(id: number, UpdateDealRequest?: UpdateDealRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeal(id, UpdateDealRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates the details of the product that has been attached to a deal. - * @summary Update the product attached to a deal - * @param {number} id The ID of the deal - * @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal) - * @param {UpdateDealProductRequest} [UpdateDealProductRequest] - * @deprecated - * @throws {RequiredError} - */ - async updateDealProduct(id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateDealProduct(id, product_attachment_id, UpdateDealProductRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, } }; @@ -2344,16 +1426,6 @@ export const DealsApiFp = function(configuration?: Configuration) { export const DealsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = DealsApiFp(configuration) return { - /** - * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for adding a deal. - * @summary Add a deal - * @param {DealsApiAddDealRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - addDeal(requestParameters: DealsApiAddDealRequest = {}, ): Promise { - return localVarFp.addDeal(requestParameters.AddDealRequest, ).then((request) => request(axios, basePath)); - }, /** * Adds a follower to a deal. * @summary Add a follower to a deal @@ -2374,26 +1446,6 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath addDealParticipant(requestParameters: DealsApiAddDealParticipantRequest, ): Promise { return localVarFp.addDealParticipant(requestParameters.id, requestParameters.AddDealParticipantRequest, ).then((request) => request(axios, basePath)); }, - /** - * Adds a product to a deal, creating a new item called a deal-product. - * @summary Add a product to a deal - * @param {DealsApiAddDealProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - addDealProduct(requestParameters: DealsApiAddDealProductRequest, ): Promise { - return localVarFp.addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. - * @summary Delete a deal - * @param {DealsApiDeleteDealRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - deleteDeal(requestParameters: DealsApiDeleteDealRequest, ): Promise { - return localVarFp.deleteDeal(requestParameters.id, ).then((request) => request(axios, basePath)); - }, /** * Deletes a follower from a deal. * @summary Delete a follower from a deal @@ -2414,16 +1466,6 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath deleteDealParticipant(requestParameters: DealsApiDeleteDealParticipantRequest, ): Promise { return localVarFp.deleteDealParticipant(requestParameters.id, requestParameters.deal_participant_id, ).then((request) => request(axios, basePath)); }, - /** - * Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled - * @summary Delete an attached product from a deal - * @param {DealsApiDeleteDealProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - deleteDealProduct(requestParameters: DealsApiDeleteDealProductRequest, ): Promise { - return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id, ).then((request) => request(axios, basePath)); - }, /** * Duplicates a deal. * @summary Duplicate deal @@ -2464,26 +1506,6 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath getArchivedDealsTimeline(requestParameters: DealsApiGetArchivedDealsTimelineRequest, ): Promise { return localVarFp.getArchivedDealsTimeline(requestParameters.start_date, requestParameters.interval, requestParameters.amount, requestParameters.field_key, requestParameters.user_id, requestParameters.pipeline_id, requestParameters.filter_id, requestParameters.exclude_deals, requestParameters.totals_convert_currency, ).then((request) => request(axios, basePath)); }, - /** - * Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for getting details of a deal. - * @summary Get details of a deal - * @param {DealsApiGetDealRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getDeal(requestParameters: DealsApiGetDealRequest, ): Promise { - return localVarFp.getDeal(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Lists activities associated with a deal.
This endpoint has been deprecated. Please use GET /api/v2/activities?deal_id={id} instead. - * @summary List activities associated with a deal - * @param {DealsApiGetDealActivitiesRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getDealActivities(requestParameters: DealsApiGetDealActivitiesRequest, ): Promise { - return localVarFp.getDealActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(axios, basePath)); - }, /** * Lists updates about field values of a deal. * @summary List updates about deal field values @@ -2544,26 +1566,6 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath getDealParticipantsChangelog(requestParameters: DealsApiGetDealParticipantsChangelogRequest, ): Promise { return localVarFp.getDealParticipantsChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); }, - /** - * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field.
This endpoint has been deprecated. Please use GET /api/v2/persons?deal_id={id} instead. - * @summary List all persons associated with a deal - * @param {DealsApiGetDealPersonsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getDealPersons(requestParameters: DealsApiGetDealPersonsRequest, ): Promise { - return localVarFp.getDealPersons(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); - }, - /** - * Lists products attached to a deal. - * @summary List products attached to a deal - * @param {DealsApiGetDealProductsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getDealProducts(requestParameters: DealsApiGetDealProductsRequest, ): Promise { - return localVarFp.getDealProducts(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.include_product_data, ).then((request) => request(axios, basePath)); - }, /** * Lists updates about a deal. * @summary List updates about a deal @@ -2584,26 +1586,6 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath getDealUsers(requestParameters: DealsApiGetDealUsersRequest, ): Promise { return localVarFp.getDealUsers(requestParameters.id, ).then((request) => request(axios, basePath)); }, - /** - * Returns all not archived deals. For more information, see the tutorial for getting all deals. - * @summary Get all deals - * @param {DealsApiGetDealsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getDeals(requestParameters: DealsApiGetDealsRequest = {}, ): Promise { - return localVarFp.getDeals(requestParameters.user_id, requestParameters.filter_id, requestParameters.stage_id, requestParameters.status, requestParameters.start, requestParameters.limit, requestParameters.sort, requestParameters.owned_by_you, ).then((request) => request(axios, basePath)); - }, - /** - * Returns all deals. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/deals instead. - * @summary Get all deals collection - * @param {DealsApiGetDealsCollectionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getDealsCollection(requestParameters: DealsApiGetDealsCollectionRequest = {}, ): Promise { - return localVarFp.getDealsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.user_id, requestParameters.stage_id, requestParameters.status, ).then((request) => request(axios, basePath)); - }, /** * Returns a summary of all not archived deals. * @summary Get deals summary @@ -2634,53 +1616,9 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath mergeDeals(requestParameters: DealsApiMergeDealsRequest, ): Promise { return localVarFp.mergeDeals(requestParameters.id, requestParameters.MergeDealsRequest, ).then((request) => request(axios, basePath)); }, - /** - * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. - * @summary Search deals - * @param {DealsApiSearchDealsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - searchDeals(requestParameters: DealsApiSearchDealsRequest, ): Promise { - return localVarFp.searchDeals(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); - }, - /** - * Updates the properties of a deal. For more information, see the tutorial for updating a deal. - * @summary Update a deal - * @param {DealsApiUpdateDealRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - updateDeal(requestParameters: DealsApiUpdateDealRequest, ): Promise { - return localVarFp.updateDeal(requestParameters.id, requestParameters.UpdateDealRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Updates the details of the product that has been attached to a deal. - * @summary Update the product attached to a deal - * @param {DealsApiUpdateDealProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - updateDealProduct(requestParameters: DealsApiUpdateDealProductRequest, ): Promise { - return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest, ).then((request) => request(axios, basePath)); - }, }; }; -/** - * Request parameters for addDeal operation in DealsApi. - * @export - * @interface DealsApiAddDealRequest - */ -export interface DealsApiAddDealRequest { - /** - * - * @type {AddDealRequest} - * @memberof DealsApiAddDeal - */ - readonly AddDealRequest?: AddDealRequest -} - /** * Request parameters for addDealFollower operation in DealsApi. * @export @@ -2723,41 +1661,6 @@ export interface DealsApiAddDealParticipantRequest { readonly AddDealParticipantRequest?: AddDealParticipantRequest } -/** - * Request parameters for addDealProduct operation in DealsApi. - * @export - * @interface DealsApiAddDealProductRequest - */ -export interface DealsApiAddDealProductRequest { - /** - * The ID of the deal - * @type {number} - * @memberof DealsApiAddDealProduct - */ - readonly id: number - - /** - * - * @type {AddDealProductRequest} - * @memberof DealsApiAddDealProduct - */ - readonly AddDealProductRequest?: AddDealProductRequest -} - -/** - * Request parameters for deleteDeal operation in DealsApi. - * @export - * @interface DealsApiDeleteDealRequest - */ -export interface DealsApiDeleteDealRequest { - /** - * The ID of the deal - * @type {number} - * @memberof DealsApiDeleteDeal - */ - readonly id: number -} - /** * Request parameters for deleteDealFollower operation in DealsApi. * @export @@ -2800,27 +1703,6 @@ export interface DealsApiDeleteDealParticipantRequest { readonly deal_participant_id: number } -/** - * Request parameters for deleteDealProduct operation in DealsApi. - * @export - * @interface DealsApiDeleteDealProductRequest - */ -export interface DealsApiDeleteDealProductRequest { - /** - * The ID of the deal - * @type {number} - * @memberof DealsApiDeleteDealProduct - */ - readonly id: number - - /** - * The product attachment ID - * @type {number} - * @memberof DealsApiDeleteDealProduct - */ - readonly product_attachment_id: number -} - /** * Request parameters for duplicateDeal operation in DealsApi. * @export @@ -3038,62 +1920,6 @@ export interface DealsApiGetArchivedDealsTimelineRequest { readonly totals_convert_currency?: string } -/** - * Request parameters for getDeal operation in DealsApi. - * @export - * @interface DealsApiGetDealRequest - */ -export interface DealsApiGetDealRequest { - /** - * The ID of the deal - * @type {number} - * @memberof DealsApiGetDeal - */ - readonly id: number -} - -/** - * Request parameters for getDealActivities operation in DealsApi. - * @export - * @interface DealsApiGetDealActivitiesRequest - */ -export interface DealsApiGetDealActivitiesRequest { - /** - * The ID of the deal - * @type {number} - * @memberof DealsApiGetDealActivities - */ - readonly id: number - - /** - * Pagination start - * @type {number} - * @memberof DealsApiGetDealActivities - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof DealsApiGetDealActivities - */ - readonly limit?: number - - /** - * Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - * @type {0 | 1} - * @memberof DealsApiGetDealActivities - */ - readonly done?: 0 | 1 - - /** - * A comma-separated string of activity IDs to exclude from result - * @type {string} - * @memberof DealsApiGetDealActivities - */ - readonly exclude?: string -} - /** * Request parameters for getDealChangelog operation in DealsApi. * @export @@ -3250,72 +2076,9 @@ export interface DealsApiGetDealParticipantsChangelogRequest { /** * For pagination, the marker (an opaque string value) representing the first item on the next page * @type {string} - * @memberof DealsApiGetDealParticipantsChangelog - */ - readonly cursor?: string -} - -/** - * Request parameters for getDealPersons operation in DealsApi. - * @export - * @interface DealsApiGetDealPersonsRequest - */ -export interface DealsApiGetDealPersonsRequest { - /** - * The ID of the deal - * @type {number} - * @memberof DealsApiGetDealPersons - */ - readonly id: number - - /** - * Pagination start - * @type {number} - * @memberof DealsApiGetDealPersons - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof DealsApiGetDealPersons - */ - readonly limit?: number -} - -/** - * Request parameters for getDealProducts operation in DealsApi. - * @export - * @interface DealsApiGetDealProductsRequest - */ -export interface DealsApiGetDealProductsRequest { - /** - * The ID of the deal - * @type {number} - * @memberof DealsApiGetDealProducts - */ - readonly id: number - - /** - * Pagination start - * @type {number} - * @memberof DealsApiGetDealProducts - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof DealsApiGetDealProducts - */ - readonly limit?: number - - /** - * Whether to fetch product data along with each attached product (1) or not (0, default) - * @type {0 | 1} - * @memberof DealsApiGetDealProducts + * @memberof DealsApiGetDealParticipantsChangelog */ - readonly include_product_data?: 0 | 1 + readonly cursor?: string } /** @@ -3374,125 +2137,6 @@ export interface DealsApiGetDealUsersRequest { readonly id: number } -/** - * Request parameters for getDeals operation in DealsApi. - * @export - * @interface DealsApiGetDealsRequest - */ -export interface DealsApiGetDealsRequest { - /** - * If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied. - * @type {number} - * @memberof DealsApiGetDeals - */ - readonly user_id?: number - - /** - * The ID of the filter to use - * @type {number} - * @memberof DealsApiGetDeals - */ - readonly filter_id?: number - - /** - * If supplied, only deals within the given stage will be returned - * @type {number} - * @memberof DealsApiGetDeals - */ - readonly stage_id?: number - - /** - * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @type {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} - * @memberof DealsApiGetDeals - */ - readonly status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted' - - /** - * Pagination start - * @type {number} - * @memberof DealsApiGetDeals - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof DealsApiGetDeals - */ - readonly limit?: number - - /** - * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @type {string} - * @memberof DealsApiGetDeals - */ - readonly sort?: string - - /** - * When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied. - * @type {0 | 1} - * @memberof DealsApiGetDeals - */ - readonly owned_by_you?: 0 | 1 -} - -/** - * Request parameters for getDealsCollection operation in DealsApi. - * @export - * @interface DealsApiGetDealsCollectionRequest - */ -export interface DealsApiGetDealsCollectionRequest { - /** - * For pagination, the marker (an opaque string value) representing the first item on the next page - * @type {string} - * @memberof DealsApiGetDealsCollection - */ - readonly cursor?: string - - /** - * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @type {number} - * @memberof DealsApiGetDealsCollection - */ - readonly limit?: number - - /** - * The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @type {string} - * @memberof DealsApiGetDealsCollection - */ - readonly since?: string - - /** - * The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @type {string} - * @memberof DealsApiGetDealsCollection - */ - readonly until?: string - - /** - * If supplied, only deals matching the given user will be returned - * @type {number} - * @memberof DealsApiGetDealsCollection - */ - readonly user_id?: number - - /** - * If supplied, only deals within the given stage will be returned - * @type {number} - * @memberof DealsApiGetDealsCollection - */ - readonly stage_id?: number - - /** - * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @type {'open' | 'won' | 'lost' | 'deleted'} - * @memberof DealsApiGetDealsCollection - */ - readonly status?: 'open' | 'won' | 'lost' | 'deleted' -} - /** * Request parameters for getDealsSummary operation in DealsApi. * @export @@ -3626,125 +2270,6 @@ export interface DealsApiMergeDealsRequest { readonly MergeDealsRequest?: MergeDealsRequest } -/** - * Request parameters for searchDeals operation in DealsApi. - * @export - * @interface DealsApiSearchDealsRequest - */ -export interface DealsApiSearchDealsRequest { - /** - * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @type {string} - * @memberof DealsApiSearchDeals - */ - readonly term: string - - /** - * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @type {'custom_fields' | 'notes' | 'title'} - * @memberof DealsApiSearchDeals - */ - readonly fields?: 'custom_fields' | 'notes' | 'title' - - /** - * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @type {boolean} - * @memberof DealsApiSearchDeals - */ - readonly exact_match?: boolean - - /** - * Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. - * @type {number} - * @memberof DealsApiSearchDeals - */ - readonly person_id?: number - - /** - * Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. - * @type {number} - * @memberof DealsApiSearchDeals - */ - readonly organization_id?: number - - /** - * Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. - * @type {'open' | 'won' | 'lost'} - * @memberof DealsApiSearchDeals - */ - readonly status?: 'open' | 'won' | 'lost' - - /** - * Supports including optional fields in the results which are not provided by default - * @type {'deal.cc_email'} - * @memberof DealsApiSearchDeals - */ - readonly include_fields?: 'deal.cc_email' - - /** - * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @type {number} - * @memberof DealsApiSearchDeals - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof DealsApiSearchDeals - */ - readonly limit?: number -} - -/** - * Request parameters for updateDeal operation in DealsApi. - * @export - * @interface DealsApiUpdateDealRequest - */ -export interface DealsApiUpdateDealRequest { - /** - * The ID of the deal - * @type {number} - * @memberof DealsApiUpdateDeal - */ - readonly id: number - - /** - * - * @type {UpdateDealRequest} - * @memberof DealsApiUpdateDeal - */ - readonly UpdateDealRequest?: UpdateDealRequest -} - -/** - * Request parameters for updateDealProduct operation in DealsApi. - * @export - * @interface DealsApiUpdateDealProductRequest - */ -export interface DealsApiUpdateDealProductRequest { - /** - * The ID of the deal - * @type {number} - * @memberof DealsApiUpdateDealProduct - */ - readonly id: number - - /** - * The ID of the deal-product (the ID of the product attached to the deal) - * @type {number} - * @memberof DealsApiUpdateDealProduct - */ - readonly product_attachment_id: number - - /** - * - * @type {UpdateDealProductRequest} - * @memberof DealsApiUpdateDealProduct - */ - readonly UpdateDealProductRequest?: UpdateDealProductRequest -} - /** * DealsApi - object-oriented interface * @export @@ -3752,18 +2277,6 @@ export interface DealsApiUpdateDealProductRequest { * @extends {BaseAPI} */ export class DealsApi extends BaseAPI { - /** - * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for adding a deal. - * @summary Add a deal - * @param {DealsApiAddDealRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public addDeal(requestParameters: DealsApiAddDealRequest = {}, ) { - return DealsApiFp(this.configuration).addDeal(requestParameters.AddDealRequest, ).then((request) => request(this.axios, this.basePath)); - } - /** * Adds a follower to a deal. * @summary Add a follower to a deal @@ -3788,30 +2301,6 @@ export class DealsApi extends BaseAPI { return DealsApiFp(this.configuration).addDealParticipant(requestParameters.id, requestParameters.AddDealParticipantRequest, ).then((request) => request(this.axios, this.basePath)); } - /** - * Adds a product to a deal, creating a new item called a deal-product. - * @summary Add a product to a deal - * @param {DealsApiAddDealProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public addDealProduct(requestParameters: DealsApiAddDealProductRequest, ) { - return DealsApiFp(this.configuration).addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. - * @summary Delete a deal - * @param {DealsApiDeleteDealRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public deleteDeal(requestParameters: DealsApiDeleteDealRequest, ) { - return DealsApiFp(this.configuration).deleteDeal(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - /** * Deletes a follower from a deal. * @summary Delete a follower from a deal @@ -3836,18 +2325,6 @@ export class DealsApi extends BaseAPI { return DealsApiFp(this.configuration).deleteDealParticipant(requestParameters.id, requestParameters.deal_participant_id, ).then((request) => request(this.axios, this.basePath)); } - /** - * Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled - * @summary Delete an attached product from a deal - * @param {DealsApiDeleteDealProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public deleteDealProduct(requestParameters: DealsApiDeleteDealProductRequest, ) { - return DealsApiFp(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id, ).then((request) => request(this.axios, this.basePath)); - } - /** * Duplicates a deal. * @summary Duplicate deal @@ -3896,30 +2373,6 @@ export class DealsApi extends BaseAPI { return DealsApiFp(this.configuration).getArchivedDealsTimeline(requestParameters.start_date, requestParameters.interval, requestParameters.amount, requestParameters.field_key, requestParameters.user_id, requestParameters.pipeline_id, requestParameters.filter_id, requestParameters.exclude_deals, requestParameters.totals_convert_currency, ).then((request) => request(this.axios, this.basePath)); } - /** - * Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for getting details of a deal. - * @summary Get details of a deal - * @param {DealsApiGetDealRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public getDeal(requestParameters: DealsApiGetDealRequest, ) { - return DealsApiFp(this.configuration).getDeal(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Lists activities associated with a deal.
This endpoint has been deprecated. Please use GET /api/v2/activities?deal_id={id} instead. - * @summary List activities associated with a deal - * @param {DealsApiGetDealActivitiesRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public getDealActivities(requestParameters: DealsApiGetDealActivitiesRequest, ) { - return DealsApiFp(this.configuration).getDealActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(this.axios, this.basePath)); - } - /** * Lists updates about field values of a deal. * @summary List updates about deal field values @@ -3992,30 +2445,6 @@ export class DealsApi extends BaseAPI { return DealsApiFp(this.configuration).getDealParticipantsChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); } - /** - * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field.
This endpoint has been deprecated. Please use GET /api/v2/persons?deal_id={id} instead. - * @summary List all persons associated with a deal - * @param {DealsApiGetDealPersonsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public getDealPersons(requestParameters: DealsApiGetDealPersonsRequest, ) { - return DealsApiFp(this.configuration).getDealPersons(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Lists products attached to a deal. - * @summary List products attached to a deal - * @param {DealsApiGetDealProductsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public getDealProducts(requestParameters: DealsApiGetDealProductsRequest, ) { - return DealsApiFp(this.configuration).getDealProducts(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.include_product_data, ).then((request) => request(this.axios, this.basePath)); - } - /** * Lists updates about a deal. * @summary List updates about a deal @@ -4040,30 +2469,6 @@ export class DealsApi extends BaseAPI { return DealsApiFp(this.configuration).getDealUsers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); } - /** - * Returns all not archived deals. For more information, see the tutorial for getting all deals. - * @summary Get all deals - * @param {DealsApiGetDealsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public getDeals(requestParameters: DealsApiGetDealsRequest = {}, ) { - return DealsApiFp(this.configuration).getDeals(requestParameters.user_id, requestParameters.filter_id, requestParameters.stage_id, requestParameters.status, requestParameters.start, requestParameters.limit, requestParameters.sort, requestParameters.owned_by_you, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns all deals. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/deals instead. - * @summary Get all deals collection - * @param {DealsApiGetDealsCollectionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public getDealsCollection(requestParameters: DealsApiGetDealsCollectionRequest = {}, ) { - return DealsApiFp(this.configuration).getDealsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.user_id, requestParameters.stage_id, requestParameters.status, ).then((request) => request(this.axios, this.basePath)); - } - /** * Returns a summary of all not archived deals. * @summary Get deals summary @@ -4099,40 +2504,4 @@ export class DealsApi extends BaseAPI { public mergeDeals(requestParameters: DealsApiMergeDealsRequest, ) { return DealsApiFp(this.configuration).mergeDeals(requestParameters.id, requestParameters.MergeDealsRequest, ).then((request) => request(this.axios, this.basePath)); } - - /** - * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. - * @summary Search deals - * @param {DealsApiSearchDealsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public searchDeals(requestParameters: DealsApiSearchDealsRequest, ) { - return DealsApiFp(this.configuration).searchDeals(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates the properties of a deal. For more information, see the tutorial for updating a deal. - * @summary Update a deal - * @param {DealsApiUpdateDealRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public updateDeal(requestParameters: DealsApiUpdateDealRequest, ) { - return DealsApiFp(this.configuration).updateDeal(requestParameters.id, requestParameters.UpdateDealRequest, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates the details of the product that has been attached to a deal. - * @summary Update the product attached to a deal - * @param {DealsApiUpdateDealProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof DealsApi - */ - public updateDealProduct(requestParameters: DealsApiUpdateDealProductRequest, ) { - return DealsApiFp(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest, ).then((request) => request(this.axios, this.basePath)); - } } diff --git a/src/versions/v1/api/item-search-api.ts b/src/versions/v1/api/item-search-api.ts deleted file mode 100644 index 6e3a009e..00000000 --- a/src/versions/v1/api/item-search-api.ts +++ /dev/null @@ -1,419 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import type { Configuration } from '../configuration'; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import globalAxios from 'axios'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { GetItemSearchFieldResponse } from '../models'; -// @ts-ignore -import { GetItemSearchResponse } from '../models'; -/** - * ItemSearchApi - axios parameter creator - * @export - */ -export const ItemSearchApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Performs a search from your choice of item types and fields. - * @summary Perform a search from multiple item types - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all. - * @param {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @param {'deal.cc_email' | 'person.picture' | 'product.price'} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default. - * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - searchItem: async (term: string, item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project', fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description', search_for_related_items?: boolean, exact_match?: boolean, include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price', start?: number, limit?: number, ): Promise => { - // verify required parameter 'term' is not null or undefined - assertParamExists('searchItem', 'term', term) - const localVarPath = `/itemSearch`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["search:read"], configuration) - - if (term !== undefined) { - localVarQueryParameter['term'] = term; - } - - if (item_types !== undefined) { - localVarQueryParameter['item_types'] = item_types; - } - - if (fields !== undefined) { - localVarQueryParameter['fields'] = fields; - } - - if (search_for_related_items !== undefined) { - localVarQueryParameter['search_for_related_items'] = search_for_related_items; - } - - if (exact_match !== undefined) { - localVarQueryParameter['exact_match'] = exact_match; - } - - if (include_fields !== undefined) { - localVarQueryParameter['include_fields'] = include_fields; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). - * @summary Perform a search using a specific field from an item type - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField'} field_type The type of the field to perform the search from - * @param {string} field_key The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. The search <b>is</b> case sensitive. - * @param {boolean} [return_item_ids] Whether to return the IDs of the matching items or not. When not set or set to `0` or `false`, only distinct values of the searched field are returned. When set to `1` or `true`, the ID of each found item is returned. - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - searchItemByField: async (term: string, field_type: 'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField', field_key: string, exact_match?: boolean, return_item_ids?: boolean, start?: number, limit?: number, ): Promise => { - // verify required parameter 'term' is not null or undefined - assertParamExists('searchItemByField', 'term', term) - // verify required parameter 'field_type' is not null or undefined - assertParamExists('searchItemByField', 'field_type', field_type) - // verify required parameter 'field_key' is not null or undefined - assertParamExists('searchItemByField', 'field_key', field_key) - const localVarPath = `/itemSearch/field`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["search:read"], configuration) - - if (term !== undefined) { - localVarQueryParameter['term'] = term; - } - - if (field_type !== undefined) { - localVarQueryParameter['field_type'] = field_type; - } - - if (exact_match !== undefined) { - localVarQueryParameter['exact_match'] = exact_match; - } - - if (field_key !== undefined) { - localVarQueryParameter['field_key'] = field_key; - } - - if (return_item_ids !== undefined) { - localVarQueryParameter['return_item_ids'] = return_item_ids; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - - -/** - * ItemSearchApi - functional programming interface - * @export - */ -export const ItemSearchApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ItemSearchApiAxiosParamCreator(configuration) - return { - /** - * Performs a search from your choice of item types and fields. - * @summary Perform a search from multiple item types - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all. - * @param {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @param {'deal.cc_email' | 'person.picture' | 'product.price'} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default. - * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - async searchItem(term: string, item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project', fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description', search_for_related_items?: boolean, exact_match?: boolean, include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.searchItem(term, item_types, fields, search_for_related_items, exact_match, include_fields, start, limit, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). - * @summary Perform a search using a specific field from an item type - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField'} field_type The type of the field to perform the search from - * @param {string} field_key The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. The search <b>is</b> case sensitive. - * @param {boolean} [return_item_ids] Whether to return the IDs of the matching items or not. When not set or set to `0` or `false`, only distinct values of the searched field are returned. When set to `1` or `true`, the ID of each found item is returned. - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - async searchItemByField(term: string, field_type: 'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField', field_key: string, exact_match?: boolean, return_item_ids?: boolean, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.searchItemByField(term, field_type, field_key, exact_match, return_item_ids, start, limit, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * ItemSearchApi - factory interface - * @export - */ -export const ItemSearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ItemSearchApiFp(configuration) - return { - /** - * Performs a search from your choice of item types and fields. - * @summary Perform a search from multiple item types - * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - searchItem(requestParameters: ItemSearchApiSearchItemRequest, ): Promise { - return localVarFp.searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); - }, - /** - * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). - * @summary Perform a search using a specific field from an item type - * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest, ): Promise { - return localVarFp.searchItemByField(requestParameters.term, requestParameters.field_type, requestParameters.field_key, requestParameters.exact_match, requestParameters.return_item_ids, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for searchItem operation in ItemSearchApi. - * @export - * @interface ItemSearchApiSearchItemRequest - */ -export interface ItemSearchApiSearchItemRequest { - /** - * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @type {string} - * @memberof ItemSearchApiSearchItem - */ - readonly term: string - - /** - * A comma-separated string array. The type of items to perform the search from. Defaults to all. - * @type {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} - * @memberof ItemSearchApiSearchItem - */ - readonly item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project' - - /** - * A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @type {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'} - * @memberof ItemSearchApiSearchItem - */ - readonly fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description' - - /** - * When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization - * @type {boolean} - * @memberof ItemSearchApiSearchItem - */ - readonly search_for_related_items?: boolean - - /** - * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @type {boolean} - * @memberof ItemSearchApiSearchItem - */ - readonly exact_match?: boolean - - /** - * A comma-separated string array. Supports including optional fields in the results which are not provided by default. - * @type {'deal.cc_email' | 'person.picture' | 'product.price'} - * @memberof ItemSearchApiSearchItem - */ - readonly include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price' - - /** - * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @type {number} - * @memberof ItemSearchApiSearchItem - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof ItemSearchApiSearchItem - */ - readonly limit?: number -} - -/** - * Request parameters for searchItemByField operation in ItemSearchApi. - * @export - * @interface ItemSearchApiSearchItemByFieldRequest - */ -export interface ItemSearchApiSearchItemByFieldRequest { - /** - * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @type {string} - * @memberof ItemSearchApiSearchItemByField - */ - readonly term: string - - /** - * The type of the field to perform the search from - * @type {'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField'} - * @memberof ItemSearchApiSearchItemByField - */ - readonly field_type: 'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField' - - /** - * The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @type {string} - * @memberof ItemSearchApiSearchItemByField - */ - readonly field_key: string - - /** - * When enabled, only full exact matches against the given term are returned. The search <b>is</b> case sensitive. - * @type {boolean} - * @memberof ItemSearchApiSearchItemByField - */ - readonly exact_match?: boolean - - /** - * Whether to return the IDs of the matching items or not. When not set or set to `0` or `false`, only distinct values of the searched field are returned. When set to `1` or `true`, the ID of each found item is returned. - * @type {boolean} - * @memberof ItemSearchApiSearchItemByField - */ - readonly return_item_ids?: boolean - - /** - * Pagination start - * @type {number} - * @memberof ItemSearchApiSearchItemByField - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof ItemSearchApiSearchItemByField - */ - readonly limit?: number -} - -/** - * ItemSearchApi - object-oriented interface - * @export - * @class ItemSearchApi - * @extends {BaseAPI} - */ -export class ItemSearchApi extends BaseAPI { - /** - * Performs a search from your choice of item types and fields. - * @summary Perform a search from multiple item types - * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ItemSearchApi - */ - public searchItem(requestParameters: ItemSearchApiSearchItemRequest, ) { - return ItemSearchApiFp(this.configuration).searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). - * @summary Perform a search using a specific field from an item type - * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ItemSearchApi - */ - public searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest, ) { - return ItemSearchApiFp(this.configuration).searchItemByField(requestParameters.term, requestParameters.field_type, requestParameters.field_key, requestParameters.exact_match, requestParameters.return_item_ids, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/src/versions/v1/api/organizations-api.ts b/src/versions/v1/api/organizations-api.ts index 16a57681..8a7c0adc 100644 --- a/src/versions/v1/api/organizations-api.ts +++ b/src/versions/v1/api/organizations-api.ts @@ -26,20 +26,8 @@ import { AddOrganizationFollowerRequest } from '../models'; // @ts-ignore import { AddOrganizationFollowerResponse } from '../models'; // @ts-ignore -import { AddOrganizationRequest } from '../models'; -// @ts-ignore -import { AddOrganizationResponse } from '../models'; -// @ts-ignore import { DeleteOrganizationFollowerResponse } from '../models'; // @ts-ignore -import { DeleteOrganizationResponse } from '../models'; -// @ts-ignore -import { FailResponse } from '../models'; -// @ts-ignore -import { GetAssociatedActivitiesResponse } from '../models'; -// @ts-ignore -import { GetAssociatedDealsResponse } from '../models'; -// @ts-ignore import { GetAssociatedFilesResponse } from '../models'; // @ts-ignore import { GetAssociatedFollowersResponse } from '../models'; @@ -50,72 +38,17 @@ import { GetAssociatedOrganizationUpdatesResponse } from '../models'; // @ts-ignore import { GetChangelogResponse } from '../models'; // @ts-ignore -import { GetOrganizationResponse } from '../models'; -// @ts-ignore -import { GetOrganizationSearchResponse } from '../models'; -// @ts-ignore -import { GetOrganizationsCollection200Response } from '../models'; -// @ts-ignore -import { GetOrganizationsResponse } from '../models'; -// @ts-ignore import { GetPermittedUsersResponse1 } from '../models'; // @ts-ignore -import { GetPersonsResponse } from '../models'; -// @ts-ignore import { MergeOrganizationsRequest } from '../models'; // @ts-ignore import { MergeOrganizationsResponse } from '../models'; -// @ts-ignore -import { UpdateOrganizationRequest } from '../models'; -// @ts-ignore -import { UpdateOrganizationResponse } from '../models'; /** * OrganizationsApi - axios parameter creator * @export */ export const OrganizationsApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for `key` values. For more information, see the tutorial for adding an organization. - * @summary Add an organization - * @param {AddOrganizationRequest} [AddOrganizationRequest] - * @deprecated - * @throws {RequiredError} - */ - addOrganization: async (AddOrganizationRequest?: AddOrganizationRequest, ): Promise => { - const localVarPath = `/organizations`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(AddOrganizationRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Adds a follower to an organization. * @summary Add a follower to an organization @@ -161,47 +94,6 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi options: localVarRequestOptions, }; }, - /** - * Marks an organization as deleted. After 30 days, the organization will be permanently deleted. - * @summary Delete an organization - * @param {number} id The ID of the organization - * @deprecated - * @throws {RequiredError} - */ - deleteOrganization: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteOrganization', 'id', id) - const localVarPath = `/organizations/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. * @summary Delete a follower from an organization @@ -248,16 +140,18 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi }; }, /** - * Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields. - * @summary Get details of an organization + * Lists updates about field values of an organization. + * @summary List updates about organization field values * @param {number} id The ID of the organization - * @deprecated + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] Items shown per page + * @throws {RequiredError} */ - getOrganization: async (id: number, ): Promise => { + getOrganizationChangelog: async (id: number, cursor?: string, limit?: number, ): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('getOrganization', 'id', id) - const localVarPath = `/organizations/{id}` + assertParamExists('getOrganizationChangelog', 'id', id) + const localVarPath = `/organizations/{id}/changelog` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -275,7 +169,15 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } @@ -289,20 +191,19 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi }; }, /** - * Lists activities associated with an organization.
This endpoint has been deprecated. Please use GET /api/v2/activities?org_id={id} instead. - * @summary List activities associated with an organization + * Lists files associated with an organization. + * @summary List files attached to an organization * @param {number} id The ID of the organization * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities. - * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result - * @deprecated + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + * @throws {RequiredError} */ - getOrganizationActivities: async (id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise => { + getOrganizationFiles: async (id: number, start?: number, limit?: number, sort?: string, ): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('getOrganizationActivities', 'id', id) - const localVarPath = `/organizations/{id}/activities` + assertParamExists('getOrganizationFiles', 'id', id) + const localVarPath = `/organizations/{id}/files` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -320,7 +221,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) if (start !== undefined) { localVarQueryParameter['start'] = start; @@ -330,12 +231,8 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi localVarQueryParameter['limit'] = limit; } - if (done !== undefined) { - localVarQueryParameter['done'] = done; - } - - if (exclude !== undefined) { - localVarQueryParameter['exclude'] = exclude; + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; } @@ -350,18 +247,16 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi }; }, /** - * Lists updates about field values of an organization. - * @summary List updates about organization field values + * Lists the followers of an organization. + * @summary List followers of an organization * @param {number} id The ID of the organization - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] Items shown per page * @throws {RequiredError} */ - getOrganizationChangelog: async (id: number, cursor?: string, limit?: number, ): Promise => { + getOrganizationFollowers: async (id: number, ): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('getOrganizationChangelog', 'id', id) - const localVarPath = `/organizations/{id}/changelog` + assertParamExists('getOrganizationFollowers', 'id', id) + const localVarPath = `/organizations/{id}/followers` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -379,15 +274,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) - - if (cursor !== undefined) { - localVarQueryParameter['cursor'] = cursor; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) @@ -401,21 +288,18 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi }; }, /** - * Lists deals associated with an organization.
This endpoint has been deprecated. Please use GET /api/v2/deals?org_id={id} instead. - * @summary List deals associated with an organization + * Lists mail messages associated with an organization. + * @summary List mail messages associated with an organization * @param {number} id The ID of the organization * @param {number} [start] Pagination start * @param {number} [limit] Items shown per page - * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @param {0 | 1} [only_primary_association] If set, only deals that are directly associated to the organization are fetched. If not set (default), all deals are fetched that are either directly or indirectly related to the organization. Indirect relations include relations through custom, organization-type fields and through persons of the given organization. - * @deprecated + * @throws {RequiredError} */ - getOrganizationDeals: async (id: number, start?: number, limit?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', sort?: string, only_primary_association?: 0 | 1, ): Promise => { + getOrganizationMailMessages: async (id: number, start?: number, limit?: number, ): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('getOrganizationDeals', 'id', id) - const localVarPath = `/organizations/{id}/deals` + assertParamExists('getOrganizationMailMessages', 'id', id) + const localVarPath = `/organizations/{id}/mailMessages` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -433,7 +317,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:read", "mail:full"], configuration) if (start !== undefined) { localVarQueryParameter['start'] = start; @@ -443,18 +327,6 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi localVarQueryParameter['limit'] = limit; } - if (status !== undefined) { - localVarQueryParameter['status'] = status; - } - - if (sort !== undefined) { - localVarQueryParameter['sort'] = sort; - } - - if (only_primary_association !== undefined) { - localVarQueryParameter['only_primary_association'] = only_primary_association; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -467,19 +339,20 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi }; }, /** - * Lists files associated with an organization. - * @summary List files attached to an organization + * Lists updates about an organization. + * @summary List updates about an organization * @param {number} id The ID of the organization * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. - * @param {string} [sort] Supported fields: `id`, `update_time` + * @param {number} [limit] Items shown per page + * @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. + * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document). * @throws {RequiredError} */ - getOrganizationFiles: async (id: number, start?: number, limit?: number, sort?: string, ): Promise => { + getOrganizationUpdates: async (id: number, start?: number, limit?: number, all_changes?: string, items?: string, ): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('getOrganizationFiles', 'id', id) - const localVarPath = `/organizations/{id}/files` + assertParamExists('getOrganizationUpdates', 'id', id) + const localVarPath = `/organizations/{id}/flow` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -497,7 +370,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) if (start !== undefined) { localVarQueryParameter['start'] = start; @@ -507,8 +380,12 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi localVarQueryParameter['limit'] = limit; } - if (sort !== undefined) { - localVarQueryParameter['sort'] = sort; + if (all_changes !== undefined) { + localVarQueryParameter['all_changes'] = all_changes; + } + + if (items !== undefined) { + localVarQueryParameter['items'] = items; } @@ -523,16 +400,16 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi }; }, /** - * Lists the followers of an organization. - * @summary List followers of an organization + * List users permitted to access an organization. + * @summary List permitted users * @param {number} id The ID of the organization * @throws {RequiredError} */ - getOrganizationFollowers: async (id: number, ): Promise => { + getOrganizationUsers: async (id: number, ): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('getOrganizationFollowers', 'id', id) - const localVarPath = `/organizations/{id}/followers` + assertParamExists('getOrganizationUsers', 'id', id) + const localVarPath = `/organizations/{id}/permittedUsers` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -564,18 +441,17 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi }; }, /** - * Lists mail messages associated with an organization. - * @summary List mail messages associated with an organization + * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. + * @summary Merge two organizations * @param {number} id The ID of the organization - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page + * @param {MergeOrganizationsRequest} [MergeOrganizationsRequest] * @throws {RequiredError} */ - getOrganizationMailMessages: async (id: number, start?: number, limit?: number, ): Promise => { + mergeOrganizations: async (id: number, MergeOrganizationsRequest?: MergeOrganizationsRequest, ): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('getOrganizationMailMessages', 'id', id) - const localVarPath = `/organizations/{id}/mailMessages` + assertParamExists('mergeOrganizations', 'id', id) + const localVarPath = `/organizations/{id}/merge` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -584,7 +460,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; @@ -593,518 +469,50 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:read", "mail:full"], configuration) - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(MergeOrganizationsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, + } +}; + + +/** + * OrganizationsApi - functional programming interface + * @export + */ +export const OrganizationsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration) + return { /** - * Lists persons associated with an organization.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field.
This endpoint has been deprecated. Please use GET /api/v2/persons?org_id={id} instead. - * @summary List persons of an organization + * Adds a follower to an organization. + * @summary Add a follower to an organization * @param {number} id The ID of the organization - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @deprecated + * @param {AddOrganizationFollowerRequest} [AddOrganizationFollowerRequest] + * @throws {RequiredError} */ - getOrganizationPersons: async (id: number, start?: number, limit?: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getOrganizationPersons', 'id', id) - const localVarPath = `/organizations/{id}/persons` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists updates about an organization. - * @summary List updates about an organization - * @param {number} id The ID of the organization - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. - * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document). - - * @throws {RequiredError} - */ - getOrganizationUpdates: async (id: number, start?: number, limit?: number, all_changes?: string, items?: string, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getOrganizationUpdates', 'id', id) - const localVarPath = `/organizations/{id}/flow` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (all_changes !== undefined) { - localVarQueryParameter['all_changes'] = all_changes; - } - - if (items !== undefined) { - localVarQueryParameter['items'] = items; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List users permitted to access an organization. - * @summary List permitted users - * @param {number} id The ID of the organization - - * @throws {RequiredError} - */ - getOrganizationUsers: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getOrganizationUsers', 'id', id) - const localVarPath = `/organizations/{id}/permittedUsers` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns all organizations. - * @summary Get all organizations - * @param {number} [user_id] If supplied, only organizations owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - * @param {number} [filter_id] The ID of the filter to use - * @param {string} [first_char] If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @deprecated - * @throws {RequiredError} - */ - getOrganizations: async (user_id?: number, filter_id?: number, first_char?: string, start?: number, limit?: number, sort?: string, ): Promise => { - const localVarPath = `/organizations`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) - - if (user_id !== undefined) { - localVarQueryParameter['user_id'] = user_id; - } - - if (filter_id !== undefined) { - localVarQueryParameter['filter_id'] = filter_id; - } - - if (first_char !== undefined) { - localVarQueryParameter['first_char'] = first_char; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (sort !== undefined) { - localVarQueryParameter['sort'] = sort; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns all organizations. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/organizations instead. - * @summary Get all organizations collection - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {number} [owner_id] If supplied, only organizations owned by the given user will be returned - * @param {string} [first_char] If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - * @deprecated - * @throws {RequiredError} - */ - getOrganizationsCollection: async (cursor?: string, limit?: number, since?: string, until?: string, owner_id?: number, first_char?: string, ): Promise => { - const localVarPath = `/organizations/collection`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) - - if (cursor !== undefined) { - localVarQueryParameter['cursor'] = cursor; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (since !== undefined) { - localVarQueryParameter['since'] = since; - } - - if (until !== undefined) { - localVarQueryParameter['until'] = until; - } - - if (owner_id !== undefined) { - localVarQueryParameter['owner_id'] = owner_id; - } - - if (first_char !== undefined) { - localVarQueryParameter['first_char'] = first_char; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. - * @summary Merge two organizations - * @param {number} id The ID of the organization - * @param {MergeOrganizationsRequest} [MergeOrganizationsRequest] - - * @throws {RequiredError} - */ - mergeOrganizations: async (id: number, MergeOrganizationsRequest?: MergeOrganizationsRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('mergeOrganizations', 'id', id) - const localVarPath = `/organizations/{id}/merge` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(MergeOrganizationsRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @summary Search organizations - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'address' | 'custom_fields' | 'notes' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - searchOrganization: async (term: string, fields?: 'address' | 'custom_fields' | 'notes' | 'name', exact_match?: boolean, start?: number, limit?: number, ): Promise => { - // verify required parameter 'term' is not null or undefined - assertParamExists('searchOrganization', 'term', term) - const localVarPath = `/organizations/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration) - - if (term !== undefined) { - localVarQueryParameter['term'] = term; - } - - if (fields !== undefined) { - localVarQueryParameter['fields'] = fields; - } - - if (exact_match !== undefined) { - localVarQueryParameter['exact_match'] = exact_match; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates the properties of an organization. - * @summary Update an organization - * @param {number} id The ID of the organization - * @param {UpdateOrganizationRequest} [UpdateOrganizationRequest] - * @deprecated - * @throws {RequiredError} - */ - updateOrganization: async (id: number, UpdateOrganizationRequest?: UpdateOrganizationRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOrganization', 'id', id) - const localVarPath = `/organizations/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(UpdateOrganizationRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - - -/** - * OrganizationsApi - functional programming interface - * @export - */ -export const OrganizationsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration) - return { - /** - * Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for `key` values. For more information, see the tutorial for adding an organization. - * @summary Add an organization - * @param {AddOrganizationRequest} [AddOrganizationRequest] - * @deprecated - * @throws {RequiredError} - */ - async addOrganization(AddOrganizationRequest?: AddOrganizationRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganization(AddOrganizationRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Adds a follower to an organization. - * @summary Add a follower to an organization - * @param {number} id The ID of the organization - * @param {AddOrganizationFollowerRequest} [AddOrganizationFollowerRequest] - - * @throws {RequiredError} - */ - async addOrganizationFollower(id: number, AddOrganizationFollowerRequest?: AddOrganizationFollowerRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganizationFollower(id, AddOrganizationFollowerRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Marks an organization as deleted. After 30 days, the organization will be permanently deleted. - * @summary Delete an organization - * @param {number} id The ID of the organization - * @deprecated - * @throws {RequiredError} - */ - async deleteOrganization(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganization(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. - * @summary Delete a follower from an organization - * @param {number} id The ID of the organization - * @param {number} follower_id The ID of the relationship between the follower and the organization + async addOrganizationFollower(id: number, AddOrganizationFollowerRequest?: AddOrganizationFollowerRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganizationFollower(id, AddOrganizationFollowerRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. + * @summary Delete a follower from an organization + * @param {number} id The ID of the organization + * @param {number} follower_id The ID of the relationship between the follower and the organization * @throws {RequiredError} */ @@ -1112,32 +520,6 @@ export const OrganizationsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationFollower(id, follower_id, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields. - * @summary Get details of an organization - * @param {number} id The ID of the organization - * @deprecated - * @throws {RequiredError} - */ - async getOrganization(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganization(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Lists activities associated with an organization.
This endpoint has been deprecated. Please use GET /api/v2/activities?org_id={id} instead. - * @summary List activities associated with an organization - * @param {number} id The ID of the organization - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities. - * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result - * @deprecated - * @throws {RequiredError} - */ - async getOrganizationActivities(id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationActivities(id, start, limit, done, exclude, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Lists updates about field values of an organization. * @summary List updates about organization field values @@ -1151,22 +533,6 @@ export const OrganizationsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationChangelog(id, cursor, limit, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Lists deals associated with an organization.
This endpoint has been deprecated. Please use GET /api/v2/deals?org_id={id} instead. - * @summary List deals associated with an organization - * @param {number} id The ID of the organization - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @param {0 | 1} [only_primary_association] If set, only deals that are directly associated to the organization are fetched. If not set (default), all deals are fetched that are either directly or indirectly related to the organization. Indirect relations include relations through custom, organization-type fields and through persons of the given organization. - * @deprecated - * @throws {RequiredError} - */ - async getOrganizationDeals(id: number, start?: number, limit?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', sort?: string, only_primary_association?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationDeals(id, start, limit, status, sort, only_primary_association, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Lists files associated with an organization. * @summary List files attached to an organization @@ -1205,19 +571,6 @@ export const OrganizationsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationMailMessages(id, start, limit, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Lists persons associated with an organization.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field.
This endpoint has been deprecated. Please use GET /api/v2/persons?org_id={id} instead. - * @summary List persons of an organization - * @param {number} id The ID of the organization - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - async getOrganizationPersons(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationPersons(id, start, limit, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Lists updates about an organization. * @summary List updates about an organization @@ -1244,38 +597,6 @@ export const OrganizationsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationUsers(id, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Returns all organizations. - * @summary Get all organizations - * @param {number} [user_id] If supplied, only organizations owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - * @param {number} [filter_id] The ID of the filter to use - * @param {string} [first_char] If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @deprecated - * @throws {RequiredError} - */ - async getOrganizations(user_id?: number, filter_id?: number, first_char?: string, start?: number, limit?: number, sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizations(user_id, filter_id, first_char, start, limit, sort, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns all organizations. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/organizations instead. - * @summary Get all organizations collection - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {number} [owner_id] If supplied, only organizations owned by the given user will be returned - * @param {string} [first_char] If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - * @deprecated - * @throws {RequiredError} - */ - async getOrganizationsCollection(cursor?: string, limit?: number, since?: string, until?: string, owner_id?: number, first_char?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationsCollection(cursor, limit, since, until, owner_id, first_char, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. * @summary Merge two organizations @@ -1288,33 +609,6 @@ export const OrganizationsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.mergeOrganizations(id, MergeOrganizationsRequest, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @summary Search organizations - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'address' | 'custom_fields' | 'notes' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - async searchOrganization(term: string, fields?: 'address' | 'custom_fields' | 'notes' | 'name', exact_match?: boolean, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.searchOrganization(term, fields, exact_match, start, limit, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates the properties of an organization. - * @summary Update an organization - * @param {number} id The ID of the organization - * @param {UpdateOrganizationRequest} [UpdateOrganizationRequest] - * @deprecated - * @throws {RequiredError} - */ - async updateOrganization(id: number, UpdateOrganizationRequest?: UpdateOrganizationRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(id, UpdateOrganizationRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, } }; @@ -1325,16 +619,6 @@ export const OrganizationsApiFp = function(configuration?: Configuration) { export const OrganizationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = OrganizationsApiFp(configuration) return { - /** - * Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for `key` values. For more information, see the tutorial for adding an organization. - * @summary Add an organization - * @param {OrganizationsApiAddOrganizationRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - addOrganization(requestParameters: OrganizationsApiAddOrganizationRequest = {}, ): Promise { - return localVarFp.addOrganization(requestParameters.AddOrganizationRequest, ).then((request) => request(axios, basePath)); - }, /** * Adds a follower to an organization. * @summary Add a follower to an organization @@ -1345,16 +629,6 @@ export const OrganizationsApiFactory = function (configuration?: Configuration, addOrganizationFollower(requestParameters: OrganizationsApiAddOrganizationFollowerRequest, ): Promise { return localVarFp.addOrganizationFollower(requestParameters.id, requestParameters.AddOrganizationFollowerRequest, ).then((request) => request(axios, basePath)); }, - /** - * Marks an organization as deleted. After 30 days, the organization will be permanently deleted. - * @summary Delete an organization - * @param {OrganizationsApiDeleteOrganizationRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - deleteOrganization(requestParameters: OrganizationsApiDeleteOrganizationRequest, ): Promise { - return localVarFp.deleteOrganization(requestParameters.id, ).then((request) => request(axios, basePath)); - }, /** * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. * @summary Delete a follower from an organization @@ -1365,26 +639,6 @@ export const OrganizationsApiFactory = function (configuration?: Configuration, deleteOrganizationFollower(requestParameters: OrganizationsApiDeleteOrganizationFollowerRequest, ): Promise { return localVarFp.deleteOrganizationFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(axios, basePath)); }, - /** - * Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields. - * @summary Get details of an organization - * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, ): Promise { - return localVarFp.getOrganization(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Lists activities associated with an organization.
This endpoint has been deprecated. Please use GET /api/v2/activities?org_id={id} instead. - * @summary List activities associated with an organization - * @param {OrganizationsApiGetOrganizationActivitiesRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getOrganizationActivities(requestParameters: OrganizationsApiGetOrganizationActivitiesRequest, ): Promise { - return localVarFp.getOrganizationActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(axios, basePath)); - }, /** * Lists updates about field values of an organization. * @summary List updates about organization field values @@ -1395,16 +649,6 @@ export const OrganizationsApiFactory = function (configuration?: Configuration, getOrganizationChangelog(requestParameters: OrganizationsApiGetOrganizationChangelogRequest, ): Promise { return localVarFp.getOrganizationChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(axios, basePath)); }, - /** - * Lists deals associated with an organization.
This endpoint has been deprecated. Please use GET /api/v2/deals?org_id={id} instead. - * @summary List deals associated with an organization - * @param {OrganizationsApiGetOrganizationDealsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getOrganizationDeals(requestParameters: OrganizationsApiGetOrganizationDealsRequest, ): Promise { - return localVarFp.getOrganizationDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status, requestParameters.sort, requestParameters.only_primary_association, ).then((request) => request(axios, basePath)); - }, /** * Lists files associated with an organization. * @summary List files attached to an organization @@ -1435,16 +679,6 @@ export const OrganizationsApiFactory = function (configuration?: Configuration, getOrganizationMailMessages(requestParameters: OrganizationsApiGetOrganizationMailMessagesRequest, ): Promise { return localVarFp.getOrganizationMailMessages(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); }, - /** - * Lists persons associated with an organization.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field.
This endpoint has been deprecated. Please use GET /api/v2/persons?org_id={id} instead. - * @summary List persons of an organization - * @param {OrganizationsApiGetOrganizationPersonsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getOrganizationPersons(requestParameters: OrganizationsApiGetOrganizationPersonsRequest, ): Promise { - return localVarFp.getOrganizationPersons(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); - }, /** * Lists updates about an organization. * @summary List updates about an organization @@ -1465,26 +699,6 @@ export const OrganizationsApiFactory = function (configuration?: Configuration, getOrganizationUsers(requestParameters: OrganizationsApiGetOrganizationUsersRequest, ): Promise { return localVarFp.getOrganizationUsers(requestParameters.id, ).then((request) => request(axios, basePath)); }, - /** - * Returns all organizations. - * @summary Get all organizations - * @param {OrganizationsApiGetOrganizationsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getOrganizations(requestParameters: OrganizationsApiGetOrganizationsRequest = {}, ): Promise { - return localVarFp.getOrganizations(requestParameters.user_id, requestParameters.filter_id, requestParameters.first_char, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(axios, basePath)); - }, - /** - * Returns all organizations. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/organizations instead. - * @summary Get all organizations collection - * @param {OrganizationsApiGetOrganizationsCollectionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getOrganizationsCollection(requestParameters: OrganizationsApiGetOrganizationsCollectionRequest = {}, ): Promise { - return localVarFp.getOrganizationsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.owner_id, requestParameters.first_char, ).then((request) => request(axios, basePath)); - }, /** * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. * @summary Merge two organizations @@ -1492,156 +706,52 @@ export const OrganizationsApiFactory = function (configuration?: Configuration, * @throws {RequiredError} */ - mergeOrganizations(requestParameters: OrganizationsApiMergeOrganizationsRequest, ): Promise { - return localVarFp.mergeOrganizations(requestParameters.id, requestParameters.MergeOrganizationsRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @summary Search organizations - * @param {OrganizationsApiSearchOrganizationRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - searchOrganization(requestParameters: OrganizationsApiSearchOrganizationRequest, ): Promise { - return localVarFp.searchOrganization(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); - }, - /** - * Updates the properties of an organization. - * @summary Update an organization - * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, ): Promise { - return localVarFp.updateOrganization(requestParameters.id, requestParameters.UpdateOrganizationRequest, ).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for addOrganization operation in OrganizationsApi. - * @export - * @interface OrganizationsApiAddOrganizationRequest - */ -export interface OrganizationsApiAddOrganizationRequest { - /** - * - * @type {AddOrganizationRequest} - * @memberof OrganizationsApiAddOrganization - */ - readonly AddOrganizationRequest?: AddOrganizationRequest -} - -/** - * Request parameters for addOrganizationFollower operation in OrganizationsApi. - * @export - * @interface OrganizationsApiAddOrganizationFollowerRequest - */ -export interface OrganizationsApiAddOrganizationFollowerRequest { - /** - * The ID of the organization - * @type {number} - * @memberof OrganizationsApiAddOrganizationFollower - */ - readonly id: number - - /** - * - * @type {AddOrganizationFollowerRequest} - * @memberof OrganizationsApiAddOrganizationFollower - */ - readonly AddOrganizationFollowerRequest?: AddOrganizationFollowerRequest -} - -/** - * Request parameters for deleteOrganization operation in OrganizationsApi. - * @export - * @interface OrganizationsApiDeleteOrganizationRequest - */ -export interface OrganizationsApiDeleteOrganizationRequest { - /** - * The ID of the organization - * @type {number} - * @memberof OrganizationsApiDeleteOrganization - */ - readonly id: number -} - -/** - * Request parameters for deleteOrganizationFollower operation in OrganizationsApi. - * @export - * @interface OrganizationsApiDeleteOrganizationFollowerRequest - */ -export interface OrganizationsApiDeleteOrganizationFollowerRequest { - /** - * The ID of the organization - * @type {number} - * @memberof OrganizationsApiDeleteOrganizationFollower - */ - readonly id: number - - /** - * The ID of the relationship between the follower and the organization - * @type {number} - * @memberof OrganizationsApiDeleteOrganizationFollower - */ - readonly follower_id: number -} + mergeOrganizations(requestParameters: OrganizationsApiMergeOrganizationsRequest, ): Promise { + return localVarFp.mergeOrganizations(requestParameters.id, requestParameters.MergeOrganizationsRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; /** - * Request parameters for getOrganization operation in OrganizationsApi. + * Request parameters for addOrganizationFollower operation in OrganizationsApi. * @export - * @interface OrganizationsApiGetOrganizationRequest + * @interface OrganizationsApiAddOrganizationFollowerRequest */ -export interface OrganizationsApiGetOrganizationRequest { +export interface OrganizationsApiAddOrganizationFollowerRequest { /** * The ID of the organization * @type {number} - * @memberof OrganizationsApiGetOrganization + * @memberof OrganizationsApiAddOrganizationFollower */ readonly id: number + + /** + * + * @type {AddOrganizationFollowerRequest} + * @memberof OrganizationsApiAddOrganizationFollower + */ + readonly AddOrganizationFollowerRequest?: AddOrganizationFollowerRequest } /** - * Request parameters for getOrganizationActivities operation in OrganizationsApi. + * Request parameters for deleteOrganizationFollower operation in OrganizationsApi. * @export - * @interface OrganizationsApiGetOrganizationActivitiesRequest + * @interface OrganizationsApiDeleteOrganizationFollowerRequest */ -export interface OrganizationsApiGetOrganizationActivitiesRequest { +export interface OrganizationsApiDeleteOrganizationFollowerRequest { /** * The ID of the organization * @type {number} - * @memberof OrganizationsApiGetOrganizationActivities + * @memberof OrganizationsApiDeleteOrganizationFollower */ readonly id: number /** - * Pagination start - * @type {number} - * @memberof OrganizationsApiGetOrganizationActivities - */ - readonly start?: number - - /** - * Items shown per page + * The ID of the relationship between the follower and the organization * @type {number} - * @memberof OrganizationsApiGetOrganizationActivities - */ - readonly limit?: number - - /** - * Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities. - * @type {0 | 1} - * @memberof OrganizationsApiGetOrganizationActivities - */ - readonly done?: 0 | 1 - - /** - * A comma-separated string of activity IDs to exclude from result - * @type {string} - * @memberof OrganizationsApiGetOrganizationActivities + * @memberof OrganizationsApiDeleteOrganizationFollower */ - readonly exclude?: string + readonly follower_id: number } /** @@ -1672,55 +782,6 @@ export interface OrganizationsApiGetOrganizationChangelogRequest { readonly limit?: number } -/** - * Request parameters for getOrganizationDeals operation in OrganizationsApi. - * @export - * @interface OrganizationsApiGetOrganizationDealsRequest - */ -export interface OrganizationsApiGetOrganizationDealsRequest { - /** - * The ID of the organization - * @type {number} - * @memberof OrganizationsApiGetOrganizationDeals - */ - readonly id: number - - /** - * Pagination start - * @type {number} - * @memberof OrganizationsApiGetOrganizationDeals - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof OrganizationsApiGetOrganizationDeals - */ - readonly limit?: number - - /** - * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @type {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} - * @memberof OrganizationsApiGetOrganizationDeals - */ - readonly status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted' - - /** - * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @type {string} - * @memberof OrganizationsApiGetOrganizationDeals - */ - readonly sort?: string - - /** - * If set, only deals that are directly associated to the organization are fetched. If not set (default), all deals are fetched that are either directly or indirectly related to the organization. Indirect relations include relations through custom, organization-type fields and through persons of the given organization. - * @type {0 | 1} - * @memberof OrganizationsApiGetOrganizationDeals - */ - readonly only_primary_association?: 0 | 1 -} - /** * Request parameters for getOrganizationFiles operation in OrganizationsApi. * @export @@ -1798,34 +859,6 @@ export interface OrganizationsApiGetOrganizationMailMessagesRequest { readonly limit?: number } -/** - * Request parameters for getOrganizationPersons operation in OrganizationsApi. - * @export - * @interface OrganizationsApiGetOrganizationPersonsRequest - */ -export interface OrganizationsApiGetOrganizationPersonsRequest { - /** - * The ID of the organization - * @type {number} - * @memberof OrganizationsApiGetOrganizationPersons - */ - readonly id: number - - /** - * Pagination start - * @type {number} - * @memberof OrganizationsApiGetOrganizationPersons - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof OrganizationsApiGetOrganizationPersons - */ - readonly limit?: number -} - /** * Request parameters for getOrganizationUpdates operation in OrganizationsApi. * @export @@ -1882,104 +915,6 @@ export interface OrganizationsApiGetOrganizationUsersRequest { readonly id: number } -/** - * Request parameters for getOrganizations operation in OrganizationsApi. - * @export - * @interface OrganizationsApiGetOrganizationsRequest - */ -export interface OrganizationsApiGetOrganizationsRequest { - /** - * If supplied, only organizations owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - * @type {number} - * @memberof OrganizationsApiGetOrganizations - */ - readonly user_id?: number - - /** - * The ID of the filter to use - * @type {number} - * @memberof OrganizationsApiGetOrganizations - */ - readonly filter_id?: number - - /** - * If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - * @type {string} - * @memberof OrganizationsApiGetOrganizations - */ - readonly first_char?: string - - /** - * Pagination start - * @type {number} - * @memberof OrganizationsApiGetOrganizations - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof OrganizationsApiGetOrganizations - */ - readonly limit?: number - - /** - * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @type {string} - * @memberof OrganizationsApiGetOrganizations - */ - readonly sort?: string -} - -/** - * Request parameters for getOrganizationsCollection operation in OrganizationsApi. - * @export - * @interface OrganizationsApiGetOrganizationsCollectionRequest - */ -export interface OrganizationsApiGetOrganizationsCollectionRequest { - /** - * For pagination, the marker (an opaque string value) representing the first item on the next page - * @type {string} - * @memberof OrganizationsApiGetOrganizationsCollection - */ - readonly cursor?: string - - /** - * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @type {number} - * @memberof OrganizationsApiGetOrganizationsCollection - */ - readonly limit?: number - - /** - * The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @type {string} - * @memberof OrganizationsApiGetOrganizationsCollection - */ - readonly since?: string - - /** - * The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @type {string} - * @memberof OrganizationsApiGetOrganizationsCollection - */ - readonly until?: string - - /** - * If supplied, only organizations owned by the given user will be returned - * @type {number} - * @memberof OrganizationsApiGetOrganizationsCollection - */ - readonly owner_id?: number - - /** - * If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - * @type {string} - * @memberof OrganizationsApiGetOrganizationsCollection - */ - readonly first_char?: string -} - /** * Request parameters for mergeOrganizations operation in OrganizationsApi. * @export @@ -2001,69 +936,6 @@ export interface OrganizationsApiMergeOrganizationsRequest { readonly MergeOrganizationsRequest?: MergeOrganizationsRequest } -/** - * Request parameters for searchOrganization operation in OrganizationsApi. - * @export - * @interface OrganizationsApiSearchOrganizationRequest - */ -export interface OrganizationsApiSearchOrganizationRequest { - /** - * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @type {string} - * @memberof OrganizationsApiSearchOrganization - */ - readonly term: string - - /** - * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @type {'address' | 'custom_fields' | 'notes' | 'name'} - * @memberof OrganizationsApiSearchOrganization - */ - readonly fields?: 'address' | 'custom_fields' | 'notes' | 'name' - - /** - * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @type {boolean} - * @memberof OrganizationsApiSearchOrganization - */ - readonly exact_match?: boolean - - /** - * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @type {number} - * @memberof OrganizationsApiSearchOrganization - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof OrganizationsApiSearchOrganization - */ - readonly limit?: number -} - -/** - * Request parameters for updateOrganization operation in OrganizationsApi. - * @export - * @interface OrganizationsApiUpdateOrganizationRequest - */ -export interface OrganizationsApiUpdateOrganizationRequest { - /** - * The ID of the organization - * @type {number} - * @memberof OrganizationsApiUpdateOrganization - */ - readonly id: number - - /** - * - * @type {UpdateOrganizationRequest} - * @memberof OrganizationsApiUpdateOrganization - */ - readonly UpdateOrganizationRequest?: UpdateOrganizationRequest -} - /** * OrganizationsApi - object-oriented interface * @export @@ -2071,18 +943,6 @@ export interface OrganizationsApiUpdateOrganizationRequest { * @extends {BaseAPI} */ export class OrganizationsApi extends BaseAPI { - /** - * Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for `key` values. For more information, see the tutorial for adding an organization. - * @summary Add an organization - * @param {OrganizationsApiAddOrganizationRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof OrganizationsApi - */ - public addOrganization(requestParameters: OrganizationsApiAddOrganizationRequest = {}, ) { - return OrganizationsApiFp(this.configuration).addOrganization(requestParameters.AddOrganizationRequest, ).then((request) => request(this.axios, this.basePath)); - } - /** * Adds a follower to an organization. * @summary Add a follower to an organization @@ -2095,18 +955,6 @@ export class OrganizationsApi extends BaseAPI { return OrganizationsApiFp(this.configuration).addOrganizationFollower(requestParameters.id, requestParameters.AddOrganizationFollowerRequest, ).then((request) => request(this.axios, this.basePath)); } - /** - * Marks an organization as deleted. After 30 days, the organization will be permanently deleted. - * @summary Delete an organization - * @param {OrganizationsApiDeleteOrganizationRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof OrganizationsApi - */ - public deleteOrganization(requestParameters: OrganizationsApiDeleteOrganizationRequest, ) { - return OrganizationsApiFp(this.configuration).deleteOrganization(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - /** * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. * @summary Delete a follower from an organization @@ -2119,30 +967,6 @@ export class OrganizationsApi extends BaseAPI { return OrganizationsApiFp(this.configuration).deleteOrganizationFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(this.axios, this.basePath)); } - /** - * Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields. - * @summary Get details of an organization - * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof OrganizationsApi - */ - public getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, ) { - return OrganizationsApiFp(this.configuration).getOrganization(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Lists activities associated with an organization.
This endpoint has been deprecated. Please use GET /api/v2/activities?org_id={id} instead. - * @summary List activities associated with an organization - * @param {OrganizationsApiGetOrganizationActivitiesRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof OrganizationsApi - */ - public getOrganizationActivities(requestParameters: OrganizationsApiGetOrganizationActivitiesRequest, ) { - return OrganizationsApiFp(this.configuration).getOrganizationActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(this.axios, this.basePath)); - } - /** * Lists updates about field values of an organization. * @summary List updates about organization field values @@ -2155,18 +979,6 @@ export class OrganizationsApi extends BaseAPI { return OrganizationsApiFp(this.configuration).getOrganizationChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); } - /** - * Lists deals associated with an organization.
This endpoint has been deprecated. Please use GET /api/v2/deals?org_id={id} instead. - * @summary List deals associated with an organization - * @param {OrganizationsApiGetOrganizationDealsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof OrganizationsApi - */ - public getOrganizationDeals(requestParameters: OrganizationsApiGetOrganizationDealsRequest, ) { - return OrganizationsApiFp(this.configuration).getOrganizationDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status, requestParameters.sort, requestParameters.only_primary_association, ).then((request) => request(this.axios, this.basePath)); - } - /** * Lists files associated with an organization. * @summary List files attached to an organization @@ -2203,18 +1015,6 @@ export class OrganizationsApi extends BaseAPI { return OrganizationsApiFp(this.configuration).getOrganizationMailMessages(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); } - /** - * Lists persons associated with an organization.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field.
This endpoint has been deprecated. Please use GET /api/v2/persons?org_id={id} instead. - * @summary List persons of an organization - * @param {OrganizationsApiGetOrganizationPersonsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof OrganizationsApi - */ - public getOrganizationPersons(requestParameters: OrganizationsApiGetOrganizationPersonsRequest, ) { - return OrganizationsApiFp(this.configuration).getOrganizationPersons(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); - } - /** * Lists updates about an organization. * @summary List updates about an organization @@ -2239,30 +1039,6 @@ export class OrganizationsApi extends BaseAPI { return OrganizationsApiFp(this.configuration).getOrganizationUsers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); } - /** - * Returns all organizations. - * @summary Get all organizations - * @param {OrganizationsApiGetOrganizationsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof OrganizationsApi - */ - public getOrganizations(requestParameters: OrganizationsApiGetOrganizationsRequest = {}, ) { - return OrganizationsApiFp(this.configuration).getOrganizations(requestParameters.user_id, requestParameters.filter_id, requestParameters.first_char, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns all organizations. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/organizations instead. - * @summary Get all organizations collection - * @param {OrganizationsApiGetOrganizationsCollectionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof OrganizationsApi - */ - public getOrganizationsCollection(requestParameters: OrganizationsApiGetOrganizationsCollectionRequest = {}, ) { - return OrganizationsApiFp(this.configuration).getOrganizationsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.owner_id, requestParameters.first_char, ).then((request) => request(this.axios, this.basePath)); - } - /** * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. * @summary Merge two organizations @@ -2274,28 +1050,4 @@ export class OrganizationsApi extends BaseAPI { public mergeOrganizations(requestParameters: OrganizationsApiMergeOrganizationsRequest, ) { return OrganizationsApiFp(this.configuration).mergeOrganizations(requestParameters.id, requestParameters.MergeOrganizationsRequest, ).then((request) => request(this.axios, this.basePath)); } - - /** - * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @summary Search organizations - * @param {OrganizationsApiSearchOrganizationRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof OrganizationsApi - */ - public searchOrganization(requestParameters: OrganizationsApiSearchOrganizationRequest, ) { - return OrganizationsApiFp(this.configuration).searchOrganization(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates the properties of an organization. - * @summary Update an organization - * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof OrganizationsApi - */ - public updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, ) { - return OrganizationsApiFp(this.configuration).updateOrganization(requestParameters.id, requestParameters.UpdateOrganizationRequest, ).then((request) => request(this.axios, this.basePath)); - } } diff --git a/src/versions/v1/api/persons-api.ts b/src/versions/v1/api/persons-api.ts index bc3ffa79..45c6808c 100644 --- a/src/versions/v1/api/persons-api.ts +++ b/src/versions/v1/api/persons-api.ts @@ -28,18 +28,8 @@ import { AddPersonFollowerResponse } from '../models'; // @ts-ignore import { AddPersonPictureResponse } from '../models'; // @ts-ignore -import { AddPersonRequest } from '../models'; -// @ts-ignore -import { AddPersonResponse } from '../models'; -// @ts-ignore import { DeletePersonResponse } from '../models'; // @ts-ignore -import { FailResponse } from '../models'; -// @ts-ignore -import { GetAssociatedActivitiesResponse } from '../models'; -// @ts-ignore -import { GetAssociatedDealsResponse } from '../models'; -// @ts-ignore import { GetAssociatedFilesResponse } from '../models'; // @ts-ignore import { GetAssociatedMailMessagesResponse } from '../models'; @@ -52,70 +42,17 @@ import { GetListFollowersResponse } from '../models'; // @ts-ignore import { GetPermittedUsersResponse1 } from '../models'; // @ts-ignore -import { GetPersonDetailsResponse } from '../models'; -// @ts-ignore import { GetPersonProductsResponse } from '../models'; // @ts-ignore -import { GetPersonSearchResponse } from '../models'; -// @ts-ignore -import { GetPersonsCollection200Response } from '../models'; -// @ts-ignore -import { GetPersonsResponse1 } from '../models'; -// @ts-ignore import { MergePersonsRequest } from '../models'; // @ts-ignore import { MergePersonsResponse } from '../models'; -// @ts-ignore -import { UpdatePersonRequest } from '../models'; -// @ts-ignore -import { UpdatePersonResponse } from '../models'; /** * PersonsApi - axios parameter creator * @export */ export const PersonsApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @summary Add a person - * @param {AddPersonRequest} [AddPersonRequest] - * @deprecated - * @throws {RequiredError} - */ - addPerson: async (AddPersonRequest?: AddPersonRequest, ): Promise => { - const localVarPath = `/persons`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(AddPersonRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Adds a follower to a person. * @summary Add a follower to a person @@ -233,47 +170,6 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati options: localVarRequestOptions, }; }, - /** - * Marks a person as deleted. After 30 days, the person will be permanently deleted. - * @summary Delete a person - * @param {number} id The ID of the person - * @deprecated - * @throws {RequiredError} - */ - deletePerson: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deletePerson', 'id', id) - const localVarPath = `/persons/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Deletes a follower from a person. * @summary Delete a follower from a person @@ -351,108 +247,6 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @summary Get details of a person - * @param {number} id The ID of the person - * @deprecated - * @throws {RequiredError} - */ - getPerson: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getPerson', 'id', id) - const localVarPath = `/persons/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists activities associated with a person.
This endpoint has been deprecated. Please use GET /api/v2/activities?person_id={id} instead. - * @summary List activities associated with a person - * @param {number} id The ID of the person - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result - * @deprecated - * @throws {RequiredError} - */ - getPersonActivities: async (id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getPersonActivities', 'id', id) - const localVarPath = `/persons/{id}/activities` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (done !== undefined) { - localVarQueryParameter['done'] = done; - } - - if (exclude !== undefined) { - localVarQueryParameter['exclude'] = exclude; - } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; @@ -504,67 +298,6 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists deals associated with a person.
This endpoint has been deprecated. Please use GET /api/v2/deals?person_id={id} instead. - * @summary List deals associated with a person - * @param {number} id The ID of the person - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @deprecated - * @throws {RequiredError} - */ - getPersonDeals: async (id: number, start?: number, limit?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', sort?: string, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getPersonDeals', 'id', id) - const localVarPath = `/persons/{id}/deals` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (status !== undefined) { - localVarQueryParameter['status'] = status; - } - - if (sort !== undefined) { - localVarQueryParameter['sort'] = sort; - } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; @@ -876,19 +609,18 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * Returns all persons. - * @summary Get all persons - * @param {number} [user_id] If supplied, only persons owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - * @param {number} [filter_id] The ID of the filter to use - * @param {string} [first_char] If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @deprecated + * Merges a person with another person. For more information, see the tutorial for merging two persons. + * @summary Merge two persons + * @param {number} id The ID of the person + * @param {MergePersonsRequest} [MergePersonsRequest] + * @throws {RequiredError} */ - getPersons: async (user_id?: number, filter_id?: number, first_char?: string, start?: number, limit?: number, sort?: string, ): Promise => { - const localVarPath = `/persons`; + mergePersons: async (id: number, MergePersonsRequest?: MergePersonsRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('mergePersons', 'id', id) + const localVarPath = `/persons/{id}/merge` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -896,7 +628,7 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; @@ -905,268 +637,16 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) - - if (user_id !== undefined) { - localVarQueryParameter['user_id'] = user_id; - } - - if (filter_id !== undefined) { - localVarQueryParameter['filter_id'] = filter_id; - } - - if (first_char !== undefined) { - localVarQueryParameter['first_char'] = first_char; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (sort !== undefined) { - localVarQueryParameter['sort'] = sort; - } + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns all persons. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/persons instead. - * @summary Get all persons collection - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {number} [owner_id] If supplied, only persons owned by the given user will be returned - * @param {string} [first_char] If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - * @deprecated - * @throws {RequiredError} - */ - getPersonsCollection: async (cursor?: string, limit?: number, since?: string, until?: string, owner_id?: number, first_char?: string, ): Promise => { - const localVarPath = `/persons/collection`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) - - if (cursor !== undefined) { - localVarQueryParameter['cursor'] = cursor; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (since !== undefined) { - localVarQueryParameter['since'] = since; - } - - if (until !== undefined) { - localVarQueryParameter['until'] = until; - } - - if (owner_id !== undefined) { - localVarQueryParameter['owner_id'] = owner_id; - } - - if (first_char !== undefined) { - localVarQueryParameter['first_char'] = first_char; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Merges a person with another person. For more information, see the tutorial for merging two persons. - * @summary Merge two persons - * @param {number} id The ID of the person - * @param {MergePersonsRequest} [MergePersonsRequest] - - * @throws {RequiredError} - */ - mergePersons: async (id: number, MergePersonsRequest?: MergePersonsRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('mergePersons', 'id', id) - const localVarPath = `/persons/{id}/merge` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(MergePersonsRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. - * @summary Search persons - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. - * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default - * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - searchPersons: async (term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', start?: number, limit?: number, ): Promise => { - // verify required parameter 'term' is not null or undefined - assertParamExists('searchPersons', 'term', term) - const localVarPath = `/persons/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration) - - if (term !== undefined) { - localVarQueryParameter['term'] = term; - } - - if (fields !== undefined) { - localVarQueryParameter['fields'] = fields; - } - - if (exact_match !== undefined) { - localVarQueryParameter['exact_match'] = exact_match; - } - - if (organization_id !== undefined) { - localVarQueryParameter['organization_id'] = organization_id; - } - - if (include_fields !== undefined) { - localVarQueryParameter['include_fields'] = include_fields; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates the properties of a person. For more information, see the tutorial for updating a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @summary Update a person - * @param {number} id The ID of the person - * @param {UpdatePersonRequest} [UpdatePersonRequest] - - * @throws {RequiredError} - */ - updatePerson: async (id: number, UpdatePersonRequest?: UpdatePersonRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updatePerson', 'id', id) - const localVarPath = `/persons/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(UpdatePersonRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(MergePersonsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -1184,17 +664,6 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati export const PersonsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PersonsApiAxiosParamCreator(configuration) return { - /** - * Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @summary Add a person - * @param {AddPersonRequest} [AddPersonRequest] - * @deprecated - * @throws {RequiredError} - */ - async addPerson(AddPersonRequest?: AddPersonRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addPerson(AddPersonRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Adds a follower to a person. * @summary Add a follower to a person @@ -1223,17 +692,6 @@ export const PersonsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.addPersonPicture(id, file, crop_x, crop_y, crop_width, crop_height, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Marks a person as deleted. After 30 days, the person will be permanently deleted. - * @summary Delete a person - * @param {number} id The ID of the person - * @deprecated - * @throws {RequiredError} - */ - async deletePerson(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deletePerson(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Deletes a follower from a person. * @summary Delete a follower from a person @@ -1257,32 +715,6 @@ export const PersonsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.deletePersonPicture(id, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @summary Get details of a person - * @param {number} id The ID of the person - * @deprecated - * @throws {RequiredError} - */ - async getPerson(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Lists activities associated with a person.
This endpoint has been deprecated. Please use GET /api/v2/activities?person_id={id} instead. - * @summary List activities associated with a person - * @param {number} id The ID of the person - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result - * @deprecated - * @throws {RequiredError} - */ - async getPersonActivities(id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonActivities(id, start, limit, done, exclude, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Lists updates about field values of a person. * @summary List updates about person field values @@ -1296,21 +728,6 @@ export const PersonsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonChangelog(id, cursor, limit, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Lists deals associated with a person.
This endpoint has been deprecated. Please use GET /api/v2/deals?person_id={id} instead. - * @summary List deals associated with a person - * @param {number} id The ID of the person - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @deprecated - * @throws {RequiredError} - */ - async getPersonDeals(id: number, start?: number, limit?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonDeals(id, start, limit, status, sort, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Lists files associated with a person. * @summary List files attached to a person @@ -1388,38 +805,6 @@ export const PersonsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonUsers(id, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Returns all persons. - * @summary Get all persons - * @param {number} [user_id] If supplied, only persons owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - * @param {number} [filter_id] The ID of the filter to use - * @param {string} [first_char] If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @deprecated - * @throws {RequiredError} - */ - async getPersons(user_id?: number, filter_id?: number, first_char?: string, start?: number, limit?: number, sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPersons(user_id, filter_id, first_char, start, limit, sort, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns all persons. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/persons instead. - * @summary Get all persons collection - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {number} [owner_id] If supplied, only persons owned by the given user will be returned - * @param {string} [first_char] If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - * @deprecated - * @throws {RequiredError} - */ - async getPersonsCollection(cursor?: string, limit?: number, since?: string, until?: string, owner_id?: number, first_char?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonsCollection(cursor, limit, since, until, owner_id, first_char, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Merges a person with another person. For more information, see the tutorial for merging two persons. * @summary Merge two persons @@ -1432,35 +817,6 @@ export const PersonsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.mergePersons(id, MergePersonsRequest, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. - * @summary Search persons - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. - * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default - * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - async searchPersons(term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.searchPersons(term, fields, exact_match, organization_id, include_fields, start, limit, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates the properties of a person. For more information, see the tutorial for updating a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @summary Update a person - * @param {number} id The ID of the person - * @param {UpdatePersonRequest} [UpdatePersonRequest] - - * @throws {RequiredError} - */ - async updatePerson(id: number, UpdatePersonRequest?: UpdatePersonRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, UpdatePersonRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, } }; @@ -1471,16 +827,6 @@ export const PersonsApiFp = function(configuration?: Configuration) { export const PersonsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = PersonsApiFp(configuration) return { - /** - * Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @summary Add a person - * @param {PersonsApiAddPersonRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - addPerson(requestParameters: PersonsApiAddPersonRequest = {}, ): Promise { - return localVarFp.addPerson(requestParameters.AddPersonRequest, ).then((request) => request(axios, basePath)); - }, /** * Adds a follower to a person. * @summary Add a follower to a person @@ -1501,16 +847,6 @@ export const PersonsApiFactory = function (configuration?: Configuration, basePa addPersonPicture(requestParameters: PersonsApiAddPersonPictureRequest, ): Promise { return localVarFp.addPersonPicture(requestParameters.id, requestParameters.file, requestParameters.crop_x, requestParameters.crop_y, requestParameters.crop_width, requestParameters.crop_height, ).then((request) => request(axios, basePath)); }, - /** - * Marks a person as deleted. After 30 days, the person will be permanently deleted. - * @summary Delete a person - * @param {PersonsApiDeletePersonRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - deletePerson(requestParameters: PersonsApiDeletePersonRequest, ): Promise { - return localVarFp.deletePerson(requestParameters.id, ).then((request) => request(axios, basePath)); - }, /** * Deletes a follower from a person. * @summary Delete a follower from a person @@ -1531,26 +867,6 @@ export const PersonsApiFactory = function (configuration?: Configuration, basePa deletePersonPicture(requestParameters: PersonsApiDeletePersonPictureRequest, ): Promise { return localVarFp.deletePersonPicture(requestParameters.id, ).then((request) => request(axios, basePath)); }, - /** - * Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @summary Get details of a person - * @param {PersonsApiGetPersonRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getPerson(requestParameters: PersonsApiGetPersonRequest, ): Promise { - return localVarFp.getPerson(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Lists activities associated with a person.
This endpoint has been deprecated. Please use GET /api/v2/activities?person_id={id} instead. - * @summary List activities associated with a person - * @param {PersonsApiGetPersonActivitiesRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getPersonActivities(requestParameters: PersonsApiGetPersonActivitiesRequest, ): Promise { - return localVarFp.getPersonActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(axios, basePath)); - }, /** * Lists updates about field values of a person. * @summary List updates about person field values @@ -1561,16 +877,6 @@ export const PersonsApiFactory = function (configuration?: Configuration, basePa getPersonChangelog(requestParameters: PersonsApiGetPersonChangelogRequest, ): Promise { return localVarFp.getPersonChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(axios, basePath)); }, - /** - * Lists deals associated with a person.
This endpoint has been deprecated. Please use GET /api/v2/deals?person_id={id} instead. - * @summary List deals associated with a person - * @param {PersonsApiGetPersonDealsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getPersonDeals(requestParameters: PersonsApiGetPersonDealsRequest, ): Promise { - return localVarFp.getPersonDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status, requestParameters.sort, ).then((request) => request(axios, basePath)); - }, /** * Lists files associated with a person. * @summary List files attached to a person @@ -1631,73 +937,19 @@ export const PersonsApiFactory = function (configuration?: Configuration, basePa getPersonUsers(requestParameters: PersonsApiGetPersonUsersRequest, ): Promise { return localVarFp.getPersonUsers(requestParameters.id, ).then((request) => request(axios, basePath)); }, - /** - * Returns all persons. - * @summary Get all persons - * @param {PersonsApiGetPersonsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getPersons(requestParameters: PersonsApiGetPersonsRequest = {}, ): Promise { - return localVarFp.getPersons(requestParameters.user_id, requestParameters.filter_id, requestParameters.first_char, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(axios, basePath)); - }, - /** - * Returns all persons. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/persons instead. - * @summary Get all persons collection - * @param {PersonsApiGetPersonsCollectionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getPersonsCollection(requestParameters: PersonsApiGetPersonsCollectionRequest = {}, ): Promise { - return localVarFp.getPersonsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.owner_id, requestParameters.first_char, ).then((request) => request(axios, basePath)); - }, /** * Merges a person with another person. For more information, see the tutorial for merging two persons. - * @summary Merge two persons - * @param {PersonsApiMergePersonsRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - mergePersons(requestParameters: PersonsApiMergePersonsRequest, ): Promise { - return localVarFp.mergePersons(requestParameters.id, requestParameters.MergePersonsRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. - * @summary Search persons - * @param {PersonsApiSearchPersonsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - searchPersons(requestParameters: PersonsApiSearchPersonsRequest, ): Promise { - return localVarFp.searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); - }, - /** - * Updates the properties of a person. For more information, see the tutorial for updating a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @summary Update a person - * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters. + * @summary Merge two persons + * @param {PersonsApiMergePersonsRequest} requestParameters Request parameters. * @throws {RequiredError} */ - updatePerson(requestParameters: PersonsApiUpdatePersonRequest, ): Promise { - return localVarFp.updatePerson(requestParameters.id, requestParameters.UpdatePersonRequest, ).then((request) => request(axios, basePath)); + mergePersons(requestParameters: PersonsApiMergePersonsRequest, ): Promise { + return localVarFp.mergePersons(requestParameters.id, requestParameters.MergePersonsRequest, ).then((request) => request(axios, basePath)); }, }; }; -/** - * Request parameters for addPerson operation in PersonsApi. - * @export - * @interface PersonsApiAddPersonRequest - */ -export interface PersonsApiAddPersonRequest { - /** - * - * @type {AddPersonRequest} - * @memberof PersonsApiAddPerson - */ - readonly AddPersonRequest?: AddPersonRequest -} - /** * Request parameters for addPersonFollower operation in PersonsApi. * @export @@ -1768,20 +1020,6 @@ export interface PersonsApiAddPersonPictureRequest { readonly crop_height?: number } -/** - * Request parameters for deletePerson operation in PersonsApi. - * @export - * @interface PersonsApiDeletePersonRequest - */ -export interface PersonsApiDeletePersonRequest { - /** - * The ID of the person - * @type {number} - * @memberof PersonsApiDeletePerson - */ - readonly id: number -} - /** * Request parameters for deletePersonFollower operation in PersonsApi. * @export @@ -1817,62 +1055,6 @@ export interface PersonsApiDeletePersonPictureRequest { readonly id: number } -/** - * Request parameters for getPerson operation in PersonsApi. - * @export - * @interface PersonsApiGetPersonRequest - */ -export interface PersonsApiGetPersonRequest { - /** - * The ID of the person - * @type {number} - * @memberof PersonsApiGetPerson - */ - readonly id: number -} - -/** - * Request parameters for getPersonActivities operation in PersonsApi. - * @export - * @interface PersonsApiGetPersonActivitiesRequest - */ -export interface PersonsApiGetPersonActivitiesRequest { - /** - * The ID of the person - * @type {number} - * @memberof PersonsApiGetPersonActivities - */ - readonly id: number - - /** - * Pagination start - * @type {number} - * @memberof PersonsApiGetPersonActivities - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof PersonsApiGetPersonActivities - */ - readonly limit?: number - - /** - * Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - * @type {0 | 1} - * @memberof PersonsApiGetPersonActivities - */ - readonly done?: 0 | 1 - - /** - * A comma-separated string of activity IDs to exclude from result - * @type {string} - * @memberof PersonsApiGetPersonActivities - */ - readonly exclude?: string -} - /** * Request parameters for getPersonChangelog operation in PersonsApi. * @export @@ -1901,48 +1083,6 @@ export interface PersonsApiGetPersonChangelogRequest { readonly limit?: number } -/** - * Request parameters for getPersonDeals operation in PersonsApi. - * @export - * @interface PersonsApiGetPersonDealsRequest - */ -export interface PersonsApiGetPersonDealsRequest { - /** - * The ID of the person - * @type {number} - * @memberof PersonsApiGetPersonDeals - */ - readonly id: number - - /** - * Pagination start - * @type {number} - * @memberof PersonsApiGetPersonDeals - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof PersonsApiGetPersonDeals - */ - readonly limit?: number - - /** - * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. - * @type {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} - * @memberof PersonsApiGetPersonDeals - */ - readonly status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted' - - /** - * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @type {string} - * @memberof PersonsApiGetPersonDeals - */ - readonly sort?: string -} - /** * Request parameters for getPersonFiles operation in PersonsApi. * @export @@ -2104,104 +1244,6 @@ export interface PersonsApiGetPersonUsersRequest { readonly id: number } -/** - * Request parameters for getPersons operation in PersonsApi. - * @export - * @interface PersonsApiGetPersonsRequest - */ -export interface PersonsApiGetPersonsRequest { - /** - * If supplied, only persons owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - * @type {number} - * @memberof PersonsApiGetPersons - */ - readonly user_id?: number - - /** - * The ID of the filter to use - * @type {number} - * @memberof PersonsApiGetPersons - */ - readonly filter_id?: number - - /** - * If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - * @type {string} - * @memberof PersonsApiGetPersons - */ - readonly first_char?: string - - /** - * Pagination start - * @type {number} - * @memberof PersonsApiGetPersons - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof PersonsApiGetPersons - */ - readonly limit?: number - - /** - * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). - * @type {string} - * @memberof PersonsApiGetPersons - */ - readonly sort?: string -} - -/** - * Request parameters for getPersonsCollection operation in PersonsApi. - * @export - * @interface PersonsApiGetPersonsCollectionRequest - */ -export interface PersonsApiGetPersonsCollectionRequest { - /** - * For pagination, the marker (an opaque string value) representing the first item on the next page - * @type {string} - * @memberof PersonsApiGetPersonsCollection - */ - readonly cursor?: string - - /** - * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @type {number} - * @memberof PersonsApiGetPersonsCollection - */ - readonly limit?: number - - /** - * The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @type {string} - * @memberof PersonsApiGetPersonsCollection - */ - readonly since?: string - - /** - * The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @type {string} - * @memberof PersonsApiGetPersonsCollection - */ - readonly until?: string - - /** - * If supplied, only persons owned by the given user will be returned - * @type {number} - * @memberof PersonsApiGetPersonsCollection - */ - readonly owner_id?: number - - /** - * If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - * @type {string} - * @memberof PersonsApiGetPersonsCollection - */ - readonly first_char?: string -} - /** * Request parameters for mergePersons operation in PersonsApi. * @export @@ -2223,83 +1265,6 @@ export interface PersonsApiMergePersonsRequest { readonly MergePersonsRequest?: MergePersonsRequest } -/** - * Request parameters for searchPersons operation in PersonsApi. - * @export - * @interface PersonsApiSearchPersonsRequest - */ -export interface PersonsApiSearchPersonsRequest { - /** - * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @type {string} - * @memberof PersonsApiSearchPersons - */ - readonly term: string - - /** - * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @type {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} - * @memberof PersonsApiSearchPersons - */ - readonly fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name' - - /** - * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @type {boolean} - * @memberof PersonsApiSearchPersons - */ - readonly exact_match?: boolean - - /** - * Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. - * @type {number} - * @memberof PersonsApiSearchPersons - */ - readonly organization_id?: number - - /** - * Supports including optional fields in the results which are not provided by default - * @type {'person.picture'} - * @memberof PersonsApiSearchPersons - */ - readonly include_fields?: 'person.picture' - - /** - * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @type {number} - * @memberof PersonsApiSearchPersons - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof PersonsApiSearchPersons - */ - readonly limit?: number -} - -/** - * Request parameters for updatePerson operation in PersonsApi. - * @export - * @interface PersonsApiUpdatePersonRequest - */ -export interface PersonsApiUpdatePersonRequest { - /** - * The ID of the person - * @type {number} - * @memberof PersonsApiUpdatePerson - */ - readonly id: number - - /** - * - * @type {UpdatePersonRequest} - * @memberof PersonsApiUpdatePerson - */ - readonly UpdatePersonRequest?: UpdatePersonRequest -} - /** * PersonsApi - object-oriented interface * @export @@ -2307,18 +1272,6 @@ export interface PersonsApiUpdatePersonRequest { * @extends {BaseAPI} */ export class PersonsApi extends BaseAPI { - /** - * Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @summary Add a person - * @param {PersonsApiAddPersonRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PersonsApi - */ - public addPerson(requestParameters: PersonsApiAddPersonRequest = {}, ) { - return PersonsApiFp(this.configuration).addPerson(requestParameters.AddPersonRequest, ).then((request) => request(this.axios, this.basePath)); - } - /** * Adds a follower to a person. * @summary Add a follower to a person @@ -2343,18 +1296,6 @@ export class PersonsApi extends BaseAPI { return PersonsApiFp(this.configuration).addPersonPicture(requestParameters.id, requestParameters.file, requestParameters.crop_x, requestParameters.crop_y, requestParameters.crop_width, requestParameters.crop_height, ).then((request) => request(this.axios, this.basePath)); } - /** - * Marks a person as deleted. After 30 days, the person will be permanently deleted. - * @summary Delete a person - * @param {PersonsApiDeletePersonRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PersonsApi - */ - public deletePerson(requestParameters: PersonsApiDeletePersonRequest, ) { - return PersonsApiFp(this.configuration).deletePerson(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - /** * Deletes a follower from a person. * @summary Delete a follower from a person @@ -2379,30 +1320,6 @@ export class PersonsApi extends BaseAPI { return PersonsApiFp(this.configuration).deletePersonPicture(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); } - /** - * Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @summary Get details of a person - * @param {PersonsApiGetPersonRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PersonsApi - */ - public getPerson(requestParameters: PersonsApiGetPersonRequest, ) { - return PersonsApiFp(this.configuration).getPerson(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Lists activities associated with a person.
This endpoint has been deprecated. Please use GET /api/v2/activities?person_id={id} instead. - * @summary List activities associated with a person - * @param {PersonsApiGetPersonActivitiesRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PersonsApi - */ - public getPersonActivities(requestParameters: PersonsApiGetPersonActivitiesRequest, ) { - return PersonsApiFp(this.configuration).getPersonActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(this.axios, this.basePath)); - } - /** * Lists updates about field values of a person. * @summary List updates about person field values @@ -2415,18 +1332,6 @@ export class PersonsApi extends BaseAPI { return PersonsApiFp(this.configuration).getPersonChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); } - /** - * Lists deals associated with a person.
This endpoint has been deprecated. Please use GET /api/v2/deals?person_id={id} instead. - * @summary List deals associated with a person - * @param {PersonsApiGetPersonDealsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PersonsApi - */ - public getPersonDeals(requestParameters: PersonsApiGetPersonDealsRequest, ) { - return PersonsApiFp(this.configuration).getPersonDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); - } - /** * Lists files associated with a person. * @summary List files attached to a person @@ -2499,30 +1404,6 @@ export class PersonsApi extends BaseAPI { return PersonsApiFp(this.configuration).getPersonUsers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); } - /** - * Returns all persons. - * @summary Get all persons - * @param {PersonsApiGetPersonsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PersonsApi - */ - public getPersons(requestParameters: PersonsApiGetPersonsRequest = {}, ) { - return PersonsApiFp(this.configuration).getPersons(requestParameters.user_id, requestParameters.filter_id, requestParameters.first_char, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns all persons. Please note that only global admins (those with global permissions) can access this endpoint. Users with regular permissions will receive a 403 response. Read more about global permissions here.
This endpoint has been deprecated. Please use GET /api/v2/persons instead. - * @summary Get all persons collection - * @param {PersonsApiGetPersonsCollectionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PersonsApi - */ - public getPersonsCollection(requestParameters: PersonsApiGetPersonsCollectionRequest = {}, ) { - return PersonsApiFp(this.configuration).getPersonsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.owner_id, requestParameters.first_char, ).then((request) => request(this.axios, this.basePath)); - } - /** * Merges a person with another person. For more information, see the tutorial for merging two persons. * @summary Merge two persons @@ -2534,28 +1415,4 @@ export class PersonsApi extends BaseAPI { public mergePersons(requestParameters: PersonsApiMergePersonsRequest, ) { return PersonsApiFp(this.configuration).mergePersons(requestParameters.id, requestParameters.MergePersonsRequest, ).then((request) => request(this.axios, this.basePath)); } - - /** - * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. - * @summary Search persons - * @param {PersonsApiSearchPersonsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PersonsApi - */ - public searchPersons(requestParameters: PersonsApiSearchPersonsRequest, ) { - return PersonsApiFp(this.configuration).searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates the properties of a person. For more information, see the tutorial for updating a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @summary Update a person - * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof PersonsApi - */ - public updatePerson(requestParameters: PersonsApiUpdatePersonRequest, ) { - return PersonsApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.UpdatePersonRequest, ).then((request) => request(this.axios, this.basePath)); - } } diff --git a/src/versions/v1/api/pipelines-api.ts b/src/versions/v1/api/pipelines-api.ts index 116dafed..68a32558 100644 --- a/src/versions/v1/api/pipelines-api.ts +++ b/src/versions/v1/api/pipelines-api.ts @@ -22,154 +22,17 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; // @ts-ignore -import { AddPipelineResponse } from '../models'; -// @ts-ignore -import { DeletePipelineResponse } from '../models'; -// @ts-ignore import { GetPipelineDealsConversionRatesInResponse } from '../models'; // @ts-ignore import { GetPipelineDealsMovementsStatisticsResponse } from '../models'; // @ts-ignore -import { GetPipelineResponse } from '../models'; -// @ts-ignore -import { GetPipelinesResponse } from '../models'; -// @ts-ignore import { GetStageDealsResponse } from '../models'; -// @ts-ignore -import { PipelineRequest } from '../models'; -// @ts-ignore -import { PipelineRequest1 } from '../models'; -// @ts-ignore -import { UpdatePipelineResponse } from '../models'; /** * PipelinesApi - axios parameter creator * @export */ export const PipelinesApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Adds a new pipeline. - * @summary Add a new pipeline - * @param {PipelineRequest} [PipelineRequest] - * @deprecated - * @throws {RequiredError} - */ - addPipeline: async (PipelineRequest?: PipelineRequest, ): Promise => { - const localVarPath = `/pipelines`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(PipelineRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Marks a pipeline as deleted. - * @summary Delete a pipeline - * @param {number} id The ID of the pipeline - * @deprecated - * @throws {RequiredError} - */ - deletePipeline: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deletePipeline', 'id', id) - const localVarPath = `/pipelines/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns data about a specific pipeline. - * @summary Get one pipeline - * @param {number} id The ID of the pipeline - * @deprecated - * @throws {RequiredError} - */ - getPipeline: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getPipeline', 'id', id) - const localVarPath = `/pipelines/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. * @summary Get deals conversion rates in pipeline @@ -374,88 +237,6 @@ export const PipelinesApiAxiosParamCreator = function (configuration?: Configura let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns data about all pipelines. - * @summary Get all pipelines - * @deprecated - * @throws {RequiredError} - */ - getPipelines: async (): Promise => { - const localVarPath = `/pipelines`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates the properties of a pipeline. - * @summary Update a pipeline - * @param {number} id The ID of the pipeline - * @param {PipelineRequest1} [PipelineRequest1] - * @deprecated - * @throws {RequiredError} - */ - updatePipeline: async (id: number, PipelineRequest1?: PipelineRequest1, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updatePipeline', 'id', id) - const localVarPath = `/pipelines/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(PipelineRequest1, localVarRequestOptions, configuration) - return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, @@ -472,39 +253,6 @@ export const PipelinesApiAxiosParamCreator = function (configuration?: Configura export const PipelinesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PipelinesApiAxiosParamCreator(configuration) return { - /** - * Adds a new pipeline. - * @summary Add a new pipeline - * @param {PipelineRequest} [PipelineRequest] - * @deprecated - * @throws {RequiredError} - */ - async addPipeline(PipelineRequest?: PipelineRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addPipeline(PipelineRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Marks a pipeline as deleted. - * @summary Delete a pipeline - * @param {number} id The ID of the pipeline - * @deprecated - * @throws {RequiredError} - */ - async deletePipeline(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deletePipeline(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns data about a specific pipeline. - * @summary Get one pipeline - * @param {number} id The ID of the pipeline - * @deprecated - * @throws {RequiredError} - */ - async getPipeline(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPipeline(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. * @summary Get deals conversion rates in pipeline @@ -552,28 +300,6 @@ export const PipelinesApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getPipelineMovementStatistics(id, start_date, end_date, user_id, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Returns data about all pipelines. - * @summary Get all pipelines - * @deprecated - * @throws {RequiredError} - */ - async getPipelines(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPipelines(); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates the properties of a pipeline. - * @summary Update a pipeline - * @param {number} id The ID of the pipeline - * @param {PipelineRequest1} [PipelineRequest1] - * @deprecated - * @throws {RequiredError} - */ - async updatePipeline(id: number, PipelineRequest1?: PipelineRequest1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updatePipeline(id, PipelineRequest1, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, } }; @@ -584,36 +310,6 @@ export const PipelinesApiFp = function(configuration?: Configuration) { export const PipelinesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = PipelinesApiFp(configuration) return { - /** - * Adds a new pipeline. - * @summary Add a new pipeline - * @param {PipelinesApiAddPipelineRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - addPipeline(requestParameters: PipelinesApiAddPipelineRequest = {}, ): Promise { - return localVarFp.addPipeline(requestParameters.PipelineRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Marks a pipeline as deleted. - * @summary Delete a pipeline - * @param {PipelinesApiDeletePipelineRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - deletePipeline(requestParameters: PipelinesApiDeletePipelineRequest, ): Promise { - return localVarFp.deletePipeline(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Returns data about a specific pipeline. - * @summary Get one pipeline - * @param {PipelinesApiGetPipelineRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getPipeline(requestParameters: PipelinesApiGetPipelineRequest, ): Promise { - return localVarFp.getPipeline(requestParameters.id, ).then((request) => request(axios, basePath)); - }, /** * Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. * @summary Get deals conversion rates in pipeline @@ -644,70 +340,9 @@ export const PipelinesApiFactory = function (configuration?: Configuration, base getPipelineMovementStatistics(requestParameters: PipelinesApiGetPipelineMovementStatisticsRequest, ): Promise { return localVarFp.getPipelineMovementStatistics(requestParameters.id, requestParameters.start_date, requestParameters.end_date, requestParameters.user_id, ).then((request) => request(axios, basePath)); }, - /** - * Returns data about all pipelines. - * @summary Get all pipelines - * @deprecated - * @throws {RequiredError} - */ - getPipelines(): Promise { - return localVarFp.getPipelines().then((request) => request(axios, basePath)); - }, - /** - * Updates the properties of a pipeline. - * @summary Update a pipeline - * @param {PipelinesApiUpdatePipelineRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - updatePipeline(requestParameters: PipelinesApiUpdatePipelineRequest, ): Promise { - return localVarFp.updatePipeline(requestParameters.id, requestParameters.PipelineRequest1, ).then((request) => request(axios, basePath)); - }, }; }; -/** - * Request parameters for addPipeline operation in PipelinesApi. - * @export - * @interface PipelinesApiAddPipelineRequest - */ -export interface PipelinesApiAddPipelineRequest { - /** - * - * @type {PipelineRequest} - * @memberof PipelinesApiAddPipeline - */ - readonly PipelineRequest?: PipelineRequest -} - -/** - * Request parameters for deletePipeline operation in PipelinesApi. - * @export - * @interface PipelinesApiDeletePipelineRequest - */ -export interface PipelinesApiDeletePipelineRequest { - /** - * The ID of the pipeline - * @type {number} - * @memberof PipelinesApiDeletePipeline - */ - readonly id: number -} - -/** - * Request parameters for getPipeline operation in PipelinesApi. - * @export - * @interface PipelinesApiGetPipelineRequest - */ -export interface PipelinesApiGetPipelineRequest { - /** - * The ID of the pipeline - * @type {number} - * @memberof PipelinesApiGetPipeline - */ - readonly id: number -} - /** * Request parameters for getPipelineConversionStatistics operation in PipelinesApi. * @export @@ -848,27 +483,6 @@ export interface PipelinesApiGetPipelineMovementStatisticsRequest { readonly user_id?: number } -/** - * Request parameters for updatePipeline operation in PipelinesApi. - * @export - * @interface PipelinesApiUpdatePipelineRequest - */ -export interface PipelinesApiUpdatePipelineRequest { - /** - * The ID of the pipeline - * @type {number} - * @memberof PipelinesApiUpdatePipeline - */ - readonly id: number - - /** - * - * @type {PipelineRequest1} - * @memberof PipelinesApiUpdatePipeline - */ - readonly PipelineRequest1?: PipelineRequest1 -} - /** * PipelinesApi - object-oriented interface * @export @@ -876,42 +490,6 @@ export interface PipelinesApiUpdatePipelineRequest { * @extends {BaseAPI} */ export class PipelinesApi extends BaseAPI { - /** - * Adds a new pipeline. - * @summary Add a new pipeline - * @param {PipelinesApiAddPipelineRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PipelinesApi - */ - public addPipeline(requestParameters: PipelinesApiAddPipelineRequest = {}, ) { - return PipelinesApiFp(this.configuration).addPipeline(requestParameters.PipelineRequest, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Marks a pipeline as deleted. - * @summary Delete a pipeline - * @param {PipelinesApiDeletePipelineRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PipelinesApi - */ - public deletePipeline(requestParameters: PipelinesApiDeletePipelineRequest, ) { - return PipelinesApiFp(this.configuration).deletePipeline(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns data about a specific pipeline. - * @summary Get one pipeline - * @param {PipelinesApiGetPipelineRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PipelinesApi - */ - public getPipeline(requestParameters: PipelinesApiGetPipelineRequest, ) { - return PipelinesApiFp(this.configuration).getPipeline(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - /** * Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. * @summary Get deals conversion rates in pipeline @@ -947,27 +525,4 @@ export class PipelinesApi extends BaseAPI { public getPipelineMovementStatistics(requestParameters: PipelinesApiGetPipelineMovementStatisticsRequest, ) { return PipelinesApiFp(this.configuration).getPipelineMovementStatistics(requestParameters.id, requestParameters.start_date, requestParameters.end_date, requestParameters.user_id, ).then((request) => request(this.axios, this.basePath)); } - - /** - * Returns data about all pipelines. - * @summary Get all pipelines - * @deprecated - * @throws {RequiredError} - * @memberof PipelinesApi - */ - public getPipelines() { - return PipelinesApiFp(this.configuration).getPipelines().then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates the properties of a pipeline. - * @summary Update a pipeline - * @param {PipelinesApiUpdatePipelineRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof PipelinesApi - */ - public updatePipeline(requestParameters: PipelinesApiUpdatePipelineRequest, ) { - return PipelinesApiFp(this.configuration).updatePipeline(requestParameters.id, requestParameters.PipelineRequest1, ).then((request) => request(this.axios, this.basePath)); - } } diff --git a/src/versions/v1/api/products-api.ts b/src/versions/v1/api/products-api.ts index ae6e013a..c2f64b54 100644 --- a/src/versions/v1/api/products-api.ts +++ b/src/versions/v1/api/products-api.ts @@ -26,28 +26,14 @@ import { AddNewFollowerResponse } from '../models'; // @ts-ignore import { AddProductFollowerRequest } from '../models'; // @ts-ignore -import { AddProductRequest } from '../models'; -// @ts-ignore import { DeleteProductFollowerResponse } from '../models'; // @ts-ignore -import { DeleteProductResponse } from '../models'; -// @ts-ignore import { GetAssociatedDealsResponse } from '../models'; // @ts-ignore import { GetAssociatedProductFilesResponse } from '../models'; // @ts-ignore import { GetProductFollowersResponse } from '../models'; // @ts-ignore -import { GetProductResponse } from '../models'; -// @ts-ignore -import { GetProductSearchResponse } from '../models'; -// @ts-ignore -import { GetProductsResponse1 } from '../models'; -// @ts-ignore -import { UpdateProductRequest } from '../models'; -// @ts-ignore -import { UpdateProductResponse } from '../models'; -// @ts-ignore import { UserIds } from '../models'; /** * ProductsApi - axios parameter creator @@ -55,47 +41,6 @@ import { UserIds } from '../models'; */ export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. - * @summary Add a product - * @param {AddProductRequest} [AddProductRequest] - * @deprecated - * @throws {RequiredError} - */ - addProduct: async (AddProductRequest?: AddProductRequest, ): Promise => { - const localVarPath = `/products`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(AddProductRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Adds a follower to a product. * @summary Add a follower to a product @@ -141,47 +86,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat options: localVarRequestOptions, }; }, - /** - * Marks a product as deleted. After 30 days, the product will be permanently deleted. - * @summary Delete a product - * @param {number} id The ID of the product - * @deprecated - * @throws {RequiredError} - */ - deleteProduct: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteProduct', 'id', id) - const localVarPath = `/products/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Deletes a follower from a product. * @summary Delete a follower from a product @@ -218,47 +122,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns data about a specific product. - * @summary Get one product - * @param {number} id The ID of the product - * @deprecated - * @throws {RequiredError} - */ - getProduct: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getProduct', 'id', id) - const localVarPath = `/products/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; @@ -467,192 +330,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns data about all products. - * @summary Get all products - * @param {number} [user_id] If supplied, only products owned by the given user will be returned - * @param {number} [filter_id] The ID of the filter to use - * @param {Array} [ids] An array of integers with the IDs of the products that should be returned in the response - * @param {string} [first_char] If supplied, only products whose name starts with the specified letter will be returned (case-insensitive) - * @param {boolean} [get_summary] If supplied, the response will return the total numbers of products in the `additional_data.summary.total_count` property - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - getProducts: async (user_id?: number, filter_id?: number, ids?: Array, first_char?: string, get_summary?: boolean, start?: number, limit?: number, ): Promise => { - const localVarPath = `/products`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) - - if (user_id !== undefined) { - localVarQueryParameter['user_id'] = user_id; - } - - if (filter_id !== undefined) { - localVarQueryParameter['filter_id'] = filter_id; - } - - if (ids) { - localVarQueryParameter['ids'] = ids; - } - - if (first_char !== undefined) { - localVarQueryParameter['first_char'] = first_char; - } - - if (get_summary !== undefined) { - localVarQueryParameter['get_summary'] = get_summary; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @summary Search products - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'code' | 'custom_fields' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default - * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - searchProducts: async (term: string, fields?: 'code' | 'custom_fields' | 'name', exact_match?: boolean, include_fields?: 'product.price', start?: number, limit?: number, ): Promise => { - // verify required parameter 'term' is not null or undefined - assertParamExists('searchProducts', 'term', term) - const localVarPath = `/products/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full", "search:read"], configuration) - - if (term !== undefined) { - localVarQueryParameter['term'] = term; - } - - if (fields !== undefined) { - localVarQueryParameter['fields'] = fields; - } - - if (exact_match !== undefined) { - localVarQueryParameter['exact_match'] = exact_match; - } - - if (include_fields !== undefined) { - localVarQueryParameter['include_fields'] = include_fields; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates product data. - * @summary Update a product - * @param {number} id The ID of the product - * @param {UpdateProductRequest} [UpdateProductRequest] - * @deprecated - * @throws {RequiredError} - */ - updateProduct: async (id: number, UpdateProductRequest?: UpdateProductRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateProduct', 'id', id) - const localVarPath = `/products/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(UpdateProductRequest, localVarRequestOptions, configuration) - return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, @@ -669,17 +346,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat export const ProductsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration) return { - /** - * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. - * @summary Add a product - * @param {AddProductRequest} [AddProductRequest] - * @deprecated - * @throws {RequiredError} - */ - async addProduct(AddProductRequest?: AddProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addProduct(AddProductRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Adds a follower to a product. * @summary Add a follower to a product @@ -692,17 +358,6 @@ export const ProductsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.addProductFollower(id, AddProductFollowerRequest, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Marks a product as deleted. After 30 days, the product will be permanently deleted. - * @summary Delete a product - * @param {number} id The ID of the product - * @deprecated - * @throws {RequiredError} - */ - async deleteProduct(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProduct(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Deletes a follower from a product. * @summary Delete a follower from a product @@ -715,17 +370,6 @@ export const ProductsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFollower(id, follower_id, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Returns data about a specific product. - * @summary Get one product - * @param {number} id The ID of the product - * @deprecated - * @throws {RequiredError} - */ - async getProduct(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getProduct(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Returns data about deals that have a product attached to it. * @summary Get deals where a product is attached to @@ -778,51 +422,6 @@ export const ProductsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getProductUsers(id, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Returns data about all products. - * @summary Get all products - * @param {number} [user_id] If supplied, only products owned by the given user will be returned - * @param {number} [filter_id] The ID of the filter to use - * @param {Array} [ids] An array of integers with the IDs of the products that should be returned in the response - * @param {string} [first_char] If supplied, only products whose name starts with the specified letter will be returned (case-insensitive) - * @param {boolean} [get_summary] If supplied, the response will return the total numbers of products in the `additional_data.summary.total_count` property - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - async getProducts(user_id?: number, filter_id?: number, ids?: Array, first_char?: string, get_summary?: boolean, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(user_id, filter_id, ids, first_char, get_summary, start, limit, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @summary Search products - * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {'code' | 'custom_fields' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default - * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - async searchProducts(term: string, fields?: 'code' | 'custom_fields' | 'name', exact_match?: boolean, include_fields?: 'product.price', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(term, fields, exact_match, include_fields, start, limit, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates product data. - * @summary Update a product - * @param {number} id The ID of the product - * @param {UpdateProductRequest} [UpdateProductRequest] - * @deprecated - * @throws {RequiredError} - */ - async updateProduct(id: number, UpdateProductRequest?: UpdateProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(id, UpdateProductRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, } }; @@ -833,16 +432,6 @@ export const ProductsApiFp = function(configuration?: Configuration) { export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ProductsApiFp(configuration) return { - /** - * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. - * @summary Add a product - * @param {ProductsApiAddProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - addProduct(requestParameters: ProductsApiAddProductRequest = {}, ): Promise { - return localVarFp.addProduct(requestParameters.AddProductRequest, ).then((request) => request(axios, basePath)); - }, /** * Adds a follower to a product. * @summary Add a follower to a product @@ -853,16 +442,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP addProductFollower(requestParameters: ProductsApiAddProductFollowerRequest, ): Promise { return localVarFp.addProductFollower(requestParameters.id, requestParameters.AddProductFollowerRequest, ).then((request) => request(axios, basePath)); }, - /** - * Marks a product as deleted. After 30 days, the product will be permanently deleted. - * @summary Delete a product - * @param {ProductsApiDeleteProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - deleteProduct(requestParameters: ProductsApiDeleteProductRequest, ): Promise { - return localVarFp.deleteProduct(requestParameters.id, ).then((request) => request(axios, basePath)); - }, /** * Deletes a follower from a product. * @summary Delete a follower from a product @@ -873,16 +452,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP deleteProductFollower(requestParameters: ProductsApiDeleteProductFollowerRequest, ): Promise { return localVarFp.deleteProductFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(axios, basePath)); }, - /** - * Returns data about a specific product. - * @summary Get one product - * @param {ProductsApiGetProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getProduct(requestParameters: ProductsApiGetProductRequest, ): Promise { - return localVarFp.getProduct(requestParameters.id, ).then((request) => request(axios, basePath)); - }, /** * Returns data about deals that have a product attached to it. * @summary Get deals where a product is attached to @@ -923,53 +492,9 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP getProductUsers(requestParameters: ProductsApiGetProductUsersRequest, ): Promise { return localVarFp.getProductUsers(requestParameters.id, ).then((request) => request(axios, basePath)); }, - /** - * Returns data about all products. - * @summary Get all products - * @param {ProductsApiGetProductsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getProducts(requestParameters: ProductsApiGetProductsRequest = {}, ): Promise { - return localVarFp.getProducts(requestParameters.user_id, requestParameters.filter_id, requestParameters.ids, requestParameters.first_char, requestParameters.get_summary, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); - }, - /** - * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @summary Search products - * @param {ProductsApiSearchProductsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - searchProducts(requestParameters: ProductsApiSearchProductsRequest, ): Promise { - return localVarFp.searchProducts(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); - }, - /** - * Updates product data. - * @summary Update a product - * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - updateProduct(requestParameters: ProductsApiUpdateProductRequest, ): Promise { - return localVarFp.updateProduct(requestParameters.id, requestParameters.UpdateProductRequest, ).then((request) => request(axios, basePath)); - }, }; }; -/** - * Request parameters for addProduct operation in ProductsApi. - * @export - * @interface ProductsApiAddProductRequest - */ -export interface ProductsApiAddProductRequest { - /** - * - * @type {AddProductRequest} - * @memberof ProductsApiAddProduct - */ - readonly AddProductRequest?: AddProductRequest -} - /** * Request parameters for addProductFollower operation in ProductsApi. * @export @@ -991,20 +516,6 @@ export interface ProductsApiAddProductFollowerRequest { readonly AddProductFollowerRequest?: AddProductFollowerRequest } -/** - * Request parameters for deleteProduct operation in ProductsApi. - * @export - * @interface ProductsApiDeleteProductRequest - */ -export interface ProductsApiDeleteProductRequest { - /** - * The ID of the product - * @type {number} - * @memberof ProductsApiDeleteProduct - */ - readonly id: number -} - /** * Request parameters for deleteProductFollower operation in ProductsApi. * @export @@ -1026,20 +537,6 @@ export interface ProductsApiDeleteProductFollowerRequest { readonly follower_id: number } -/** - * Request parameters for getProduct operation in ProductsApi. - * @export - * @interface ProductsApiGetProductRequest - */ -export interface ProductsApiGetProductRequest { - /** - * The ID of the product - * @type {number} - * @memberof ProductsApiGetProduct - */ - readonly id: number -} - /** * Request parameters for getProductDeals operation in ProductsApi. * @export @@ -1152,132 +649,6 @@ export interface ProductsApiGetProductUsersRequest { readonly id: number } -/** - * Request parameters for getProducts operation in ProductsApi. - * @export - * @interface ProductsApiGetProductsRequest - */ -export interface ProductsApiGetProductsRequest { - /** - * If supplied, only products owned by the given user will be returned - * @type {number} - * @memberof ProductsApiGetProducts - */ - readonly user_id?: number - - /** - * The ID of the filter to use - * @type {number} - * @memberof ProductsApiGetProducts - */ - readonly filter_id?: number - - /** - * An array of integers with the IDs of the products that should be returned in the response - * @type {Array} - * @memberof ProductsApiGetProducts - */ - readonly ids?: Array - - /** - * If supplied, only products whose name starts with the specified letter will be returned (case-insensitive) - * @type {string} - * @memberof ProductsApiGetProducts - */ - readonly first_char?: string - - /** - * If supplied, the response will return the total numbers of products in the `additional_data.summary.total_count` property - * @type {boolean} - * @memberof ProductsApiGetProducts - */ - readonly get_summary?: boolean - - /** - * Pagination start - * @type {number} - * @memberof ProductsApiGetProducts - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof ProductsApiGetProducts - */ - readonly limit?: number -} - -/** - * Request parameters for searchProducts operation in ProductsApi. - * @export - * @interface ProductsApiSearchProductsRequest - */ -export interface ProductsApiSearchProductsRequest { - /** - * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @type {string} - * @memberof ProductsApiSearchProducts - */ - readonly term: string - - /** - * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - * @type {'code' | 'custom_fields' | 'name'} - * @memberof ProductsApiSearchProducts - */ - readonly fields?: 'code' | 'custom_fields' | 'name' - - /** - * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. - * @type {boolean} - * @memberof ProductsApiSearchProducts - */ - readonly exact_match?: boolean - - /** - * Supports including optional fields in the results which are not provided by default - * @type {'product.price'} - * @memberof ProductsApiSearchProducts - */ - readonly include_fields?: 'product.price' - - /** - * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - * @type {number} - * @memberof ProductsApiSearchProducts - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof ProductsApiSearchProducts - */ - readonly limit?: number -} - -/** - * Request parameters for updateProduct operation in ProductsApi. - * @export - * @interface ProductsApiUpdateProductRequest - */ -export interface ProductsApiUpdateProductRequest { - /** - * The ID of the product - * @type {number} - * @memberof ProductsApiUpdateProduct - */ - readonly id: number - - /** - * - * @type {UpdateProductRequest} - * @memberof ProductsApiUpdateProduct - */ - readonly UpdateProductRequest?: UpdateProductRequest -} - /** * ProductsApi - object-oriented interface * @export @@ -1285,18 +656,6 @@ export interface ProductsApiUpdateProductRequest { * @extends {BaseAPI} */ export class ProductsApi extends BaseAPI { - /** - * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. - * @summary Add a product - * @param {ProductsApiAddProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ProductsApi - */ - public addProduct(requestParameters: ProductsApiAddProductRequest = {}, ) { - return ProductsApiFp(this.configuration).addProduct(requestParameters.AddProductRequest, ).then((request) => request(this.axios, this.basePath)); - } - /** * Adds a follower to a product. * @summary Add a follower to a product @@ -1309,18 +668,6 @@ export class ProductsApi extends BaseAPI { return ProductsApiFp(this.configuration).addProductFollower(requestParameters.id, requestParameters.AddProductFollowerRequest, ).then((request) => request(this.axios, this.basePath)); } - /** - * Marks a product as deleted. After 30 days, the product will be permanently deleted. - * @summary Delete a product - * @param {ProductsApiDeleteProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ProductsApi - */ - public deleteProduct(requestParameters: ProductsApiDeleteProductRequest, ) { - return ProductsApiFp(this.configuration).deleteProduct(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - /** * Deletes a follower from a product. * @summary Delete a follower from a product @@ -1333,18 +680,6 @@ export class ProductsApi extends BaseAPI { return ProductsApiFp(this.configuration).deleteProductFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(this.axios, this.basePath)); } - /** - * Returns data about a specific product. - * @summary Get one product - * @param {ProductsApiGetProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ProductsApi - */ - public getProduct(requestParameters: ProductsApiGetProductRequest, ) { - return ProductsApiFp(this.configuration).getProduct(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - /** * Returns data about deals that have a product attached to it. * @summary Get deals where a product is attached to @@ -1392,40 +727,4 @@ export class ProductsApi extends BaseAPI { public getProductUsers(requestParameters: ProductsApiGetProductUsersRequest, ) { return ProductsApiFp(this.configuration).getProductUsers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); } - - /** - * Returns data about all products. - * @summary Get all products - * @param {ProductsApiGetProductsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ProductsApi - */ - public getProducts(requestParameters: ProductsApiGetProductsRequest = {}, ) { - return ProductsApiFp(this.configuration).getProducts(requestParameters.user_id, requestParameters.filter_id, requestParameters.ids, requestParameters.first_char, requestParameters.get_summary, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @summary Search products - * @param {ProductsApiSearchProductsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ProductsApi - */ - public searchProducts(requestParameters: ProductsApiSearchProductsRequest, ) { - return ProductsApiFp(this.configuration).searchProducts(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates product data. - * @summary Update a product - * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof ProductsApi - */ - public updateProduct(requestParameters: ProductsApiUpdateProductRequest, ) { - return ProductsApiFp(this.configuration).updateProduct(requestParameters.id, requestParameters.UpdateProductRequest, ).then((request) => request(this.axios, this.basePath)); - } } diff --git a/src/versions/v1/api/stages-api.ts b/src/versions/v1/api/stages-api.ts index ccaa25e6..b30497e6 100644 --- a/src/versions/v1/api/stages-api.ts +++ b/src/versions/v1/api/stages-api.ts @@ -22,148 +22,13 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; // @ts-ignore -import { AddStageRequest } from '../models'; -// @ts-ignore -import { DeleteStageResponse } from '../models'; -// @ts-ignore import { GetStageDealsResponse } from '../models'; -// @ts-ignore -import { GetStageResponse } from '../models'; -// @ts-ignore -import { GetStagesResponse } from '../models'; -// @ts-ignore -import { UpdateStageRequest } from '../models'; -// @ts-ignore -import { UpsertStageResponse } from '../models'; /** * StagesApi - axios parameter creator * @export */ export const StagesApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Adds a new stage, returns the ID upon success. - * @summary Add a new stage - * @param {AddStageRequest} [AddStageRequest] - * @deprecated - * @throws {RequiredError} - */ - addStage: async (AddStageRequest?: AddStageRequest, ): Promise => { - const localVarPath = `/stages`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(AddStageRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Marks a stage as deleted. - * @summary Delete a stage - * @param {number} id The ID of the stage - * @deprecated - * @throws {RequiredError} - */ - deleteStage: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteStage', 'id', id) - const localVarPath = `/stages/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns data about a specific stage. - * @summary Get one stage - * @param {number} id The ID of the stage - * @deprecated - * @throws {RequiredError} - */ - getStage: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getStage', 'id', id) - const localVarPath = `/stages/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned.
This endpoint has been deprecated. Please use GET /api/v2/deals?stage_id={id} instead. * @summary Get deals in a stage @@ -225,103 +90,6 @@ export const StagesApiAxiosParamCreator = function (configuration?: Configuratio let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns data about all stages. - * @summary Get all stages - * @param {number} [pipeline_id] The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - getStages: async (pipeline_id?: number, start?: number, limit?: number, ): Promise => { - const localVarPath = `/stages`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) - - if (pipeline_id !== undefined) { - localVarQueryParameter['pipeline_id'] = pipeline_id; - } - - if (start !== undefined) { - localVarQueryParameter['start'] = start; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates the properties of a stage. - * @summary Update stage details - * @param {number} id The ID of the stage - * @param {UpdateStageRequest} [UpdateStageRequest] - * @deprecated - * @throws {RequiredError} - */ - updateStage: async (id: number, UpdateStageRequest?: UpdateStageRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateStage', 'id', id) - const localVarPath = `/stages/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(UpdateStageRequest, localVarRequestOptions, configuration) - return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, @@ -338,39 +106,6 @@ export const StagesApiAxiosParamCreator = function (configuration?: Configuratio export const StagesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = StagesApiAxiosParamCreator(configuration) return { - /** - * Adds a new stage, returns the ID upon success. - * @summary Add a new stage - * @param {AddStageRequest} [AddStageRequest] - * @deprecated - * @throws {RequiredError} - */ - async addStage(AddStageRequest?: AddStageRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addStage(AddStageRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Marks a stage as deleted. - * @summary Delete a stage - * @param {number} id The ID of the stage - * @deprecated - * @throws {RequiredError} - */ - async deleteStage(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStage(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns data about a specific stage. - * @summary Get one stage - * @param {number} id The ID of the stage - * @deprecated - * @throws {RequiredError} - */ - async getStage(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getStage(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned.
This endpoint has been deprecated. Please use GET /api/v2/deals?stage_id={id} instead. * @summary Get deals in a stage @@ -387,31 +122,6 @@ export const StagesApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getStageDeals(id, filter_id, user_id, everyone, start, limit, ); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Returns data about all stages. - * @summary Get all stages - * @param {number} [pipeline_id] The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. - * @param {number} [start] Pagination start - * @param {number} [limit] Items shown per page - * @deprecated - * @throws {RequiredError} - */ - async getStages(pipeline_id?: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getStages(pipeline_id, start, limit, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates the properties of a stage. - * @summary Update stage details - * @param {number} id The ID of the stage - * @param {UpdateStageRequest} [UpdateStageRequest] - * @deprecated - * @throws {RequiredError} - */ - async updateStage(id: number, UpdateStageRequest?: UpdateStageRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateStage(id, UpdateStageRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, } }; @@ -422,36 +132,6 @@ export const StagesApiFp = function(configuration?: Configuration) { export const StagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = StagesApiFp(configuration) return { - /** - * Adds a new stage, returns the ID upon success. - * @summary Add a new stage - * @param {StagesApiAddStageRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - addStage(requestParameters: StagesApiAddStageRequest = {}, ): Promise { - return localVarFp.addStage(requestParameters.AddStageRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Marks a stage as deleted. - * @summary Delete a stage - * @param {StagesApiDeleteStageRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - deleteStage(requestParameters: StagesApiDeleteStageRequest, ): Promise { - return localVarFp.deleteStage(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Returns data about a specific stage. - * @summary Get one stage - * @param {StagesApiGetStageRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getStage(requestParameters: StagesApiGetStageRequest, ): Promise { - return localVarFp.getStage(requestParameters.id, ).then((request) => request(axios, basePath)); - }, /** * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned.
This endpoint has been deprecated. Please use GET /api/v2/deals?stage_id={id} instead. * @summary Get deals in a stage @@ -462,71 +142,9 @@ export const StagesApiFactory = function (configuration?: Configuration, basePat getStageDeals(requestParameters: StagesApiGetStageDealsRequest, ): Promise { return localVarFp.getStageDeals(requestParameters.id, requestParameters.filter_id, requestParameters.user_id, requestParameters.everyone, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); }, - /** - * Returns data about all stages. - * @summary Get all stages - * @param {StagesApiGetStagesRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getStages(requestParameters: StagesApiGetStagesRequest = {}, ): Promise { - return localVarFp.getStages(requestParameters.pipeline_id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); - }, - /** - * Updates the properties of a stage. - * @summary Update stage details - * @param {StagesApiUpdateStageRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - updateStage(requestParameters: StagesApiUpdateStageRequest, ): Promise { - return localVarFp.updateStage(requestParameters.id, requestParameters.UpdateStageRequest, ).then((request) => request(axios, basePath)); - }, }; }; -/** - * Request parameters for addStage operation in StagesApi. - * @export - * @interface StagesApiAddStageRequest - */ -export interface StagesApiAddStageRequest { - /** - * - * @type {AddStageRequest} - * @memberof StagesApiAddStage - */ - readonly AddStageRequest?: AddStageRequest -} - -/** - * Request parameters for deleteStage operation in StagesApi. - * @export - * @interface StagesApiDeleteStageRequest - */ -export interface StagesApiDeleteStageRequest { - /** - * The ID of the stage - * @type {number} - * @memberof StagesApiDeleteStage - */ - readonly id: number -} - -/** - * Request parameters for getStage operation in StagesApi. - * @export - * @interface StagesApiGetStageRequest - */ -export interface StagesApiGetStageRequest { - /** - * The ID of the stage - * @type {number} - * @memberof StagesApiGetStage - */ - readonly id: number -} - /** * Request parameters for getStageDeals operation in StagesApi. * @export @@ -576,55 +194,6 @@ export interface StagesApiGetStageDealsRequest { readonly limit?: number } -/** - * Request parameters for getStages operation in StagesApi. - * @export - * @interface StagesApiGetStagesRequest - */ -export interface StagesApiGetStagesRequest { - /** - * The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. - * @type {number} - * @memberof StagesApiGetStages - */ - readonly pipeline_id?: number - - /** - * Pagination start - * @type {number} - * @memberof StagesApiGetStages - */ - readonly start?: number - - /** - * Items shown per page - * @type {number} - * @memberof StagesApiGetStages - */ - readonly limit?: number -} - -/** - * Request parameters for updateStage operation in StagesApi. - * @export - * @interface StagesApiUpdateStageRequest - */ -export interface StagesApiUpdateStageRequest { - /** - * The ID of the stage - * @type {number} - * @memberof StagesApiUpdateStage - */ - readonly id: number - - /** - * - * @type {UpdateStageRequest} - * @memberof StagesApiUpdateStage - */ - readonly UpdateStageRequest?: UpdateStageRequest -} - /** * StagesApi - object-oriented interface * @export @@ -632,42 +201,6 @@ export interface StagesApiUpdateStageRequest { * @extends {BaseAPI} */ export class StagesApi extends BaseAPI { - /** - * Adds a new stage, returns the ID upon success. - * @summary Add a new stage - * @param {StagesApiAddStageRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof StagesApi - */ - public addStage(requestParameters: StagesApiAddStageRequest = {}, ) { - return StagesApiFp(this.configuration).addStage(requestParameters.AddStageRequest, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Marks a stage as deleted. - * @summary Delete a stage - * @param {StagesApiDeleteStageRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof StagesApi - */ - public deleteStage(requestParameters: StagesApiDeleteStageRequest, ) { - return StagesApiFp(this.configuration).deleteStage(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns data about a specific stage. - * @summary Get one stage - * @param {StagesApiGetStageRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof StagesApi - */ - public getStage(requestParameters: StagesApiGetStageRequest, ) { - return StagesApiFp(this.configuration).getStage(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - /** * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned.
This endpoint has been deprecated. Please use GET /api/v2/deals?stage_id={id} instead. * @summary Get deals in a stage @@ -679,28 +212,4 @@ export class StagesApi extends BaseAPI { public getStageDeals(requestParameters: StagesApiGetStageDealsRequest, ) { return StagesApiFp(this.configuration).getStageDeals(requestParameters.id, requestParameters.filter_id, requestParameters.user_id, requestParameters.everyone, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); } - - /** - * Returns data about all stages. - * @summary Get all stages - * @param {StagesApiGetStagesRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof StagesApi - */ - public getStages(requestParameters: StagesApiGetStagesRequest = {}, ) { - return StagesApiFp(this.configuration).getStages(requestParameters.pipeline_id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates the properties of a stage. - * @summary Update stage details - * @param {StagesApiUpdateStageRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof StagesApi - */ - public updateStage(requestParameters: StagesApiUpdateStageRequest, ) { - return StagesApiFp(this.configuration).updateStage(requestParameters.id, requestParameters.UpdateStageRequest, ).then((request) => request(this.axios, this.basePath)); - } } diff --git a/src/versions/v1/api/subscriptions-api.ts b/src/versions/v1/api/subscriptions-api.ts deleted file mode 100644 index 4ae5508d..00000000 --- a/src/versions/v1/api/subscriptions-api.ts +++ /dev/null @@ -1,902 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import type { Configuration } from '../configuration'; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import globalAxios from 'axios'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { AddRecurringSubscriptionRequest } from '../models'; -// @ts-ignore -import { AddSubscriptionInstallmentRequest } from '../models'; -// @ts-ignore -import { CancelRecurringSubscriptionRequest } from '../models'; -// @ts-ignore -import { GetPaymentsResponse } from '../models'; -// @ts-ignore -import { GetSubscriptionsIdResponse } from '../models'; -// @ts-ignore -import { UpdateRecurringSubscriptionRequest } from '../models'; -// @ts-ignore -import { UpdateSubscriptionInstallmentRequest } from '../models'; -/** - * SubscriptionsApi - axios parameter creator - * @export - */ -export const SubscriptionsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Adds a new recurring subscription. - * @summary Add a recurring subscription - * @param {AddRecurringSubscriptionRequest} [AddRecurringSubscriptionRequest] - * @deprecated - * @throws {RequiredError} - */ - addRecurringSubscription: async (AddRecurringSubscriptionRequest?: AddRecurringSubscriptionRequest, ): Promise => { - const localVarPath = `/subscriptions/recurring`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(AddRecurringSubscriptionRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Adds a new installment subscription. - * @summary Add an installment subscription - * @param {AddSubscriptionInstallmentRequest} [AddSubscriptionInstallmentRequest] - * @deprecated - * @throws {RequiredError} - */ - addSubscriptionInstallment: async (AddSubscriptionInstallmentRequest?: AddSubscriptionInstallmentRequest, ): Promise => { - const localVarPath = `/subscriptions/installment`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(AddSubscriptionInstallmentRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Cancels a recurring subscription. - * @summary Cancel a recurring subscription - * @param {number} id The ID of the subscription - * @param {CancelRecurringSubscriptionRequest} [CancelRecurringSubscriptionRequest] - * @deprecated - * @throws {RequiredError} - */ - cancelRecurringSubscription: async (id: number, CancelRecurringSubscriptionRequest?: CancelRecurringSubscriptionRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('cancelRecurringSubscription', 'id', id) - const localVarPath = `/subscriptions/recurring/{id}/cancel` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(CancelRecurringSubscriptionRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Marks an installment or a recurring subscription as deleted. - * @summary Delete a subscription - * @param {number} id The ID of the subscription - * @deprecated - * @throws {RequiredError} - */ - deleteSubscription: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteSubscription', 'id', id) - const localVarPath = `/subscriptions/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns details of an installment or a recurring subscription by the deal ID. - * @summary Find subscription by deal - * @param {number} dealId The ID of the deal - * @deprecated - * @throws {RequiredError} - */ - findSubscriptionByDeal: async (dealId: number, ): Promise => { - // verify required parameter 'dealId' is not null or undefined - assertParamExists('findSubscriptionByDeal', 'dealId', dealId) - const localVarPath = `/subscriptions/find/{dealId}` - .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns details of an installment or a recurring subscription. - * @summary Get details of a subscription - * @param {number} id The ID of the subscription - * @deprecated - * @throws {RequiredError} - */ - getSubscription: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getSubscription', 'id', id) - const localVarPath = `/subscriptions/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns all payments of an installment or recurring subscription. - * @summary Get all payments of a subscription - * @param {number} id The ID of the subscription - * @deprecated - * @throws {RequiredError} - */ - getSubscriptionPayments: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getSubscriptionPayments', 'id', id) - const localVarPath = `/subscriptions/{id}/payments` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates a recurring subscription. - * @summary Update a recurring subscription - * @param {number} id The ID of the subscription - * @param {UpdateRecurringSubscriptionRequest} [UpdateRecurringSubscriptionRequest] - * @deprecated - * @throws {RequiredError} - */ - updateRecurringSubscription: async (id: number, UpdateRecurringSubscriptionRequest?: UpdateRecurringSubscriptionRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateRecurringSubscription', 'id', id) - const localVarPath = `/subscriptions/recurring/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(UpdateRecurringSubscriptionRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates an installment subscription. - * @summary Update an installment subscription - * @param {number} id The ID of the subscription - * @param {UpdateSubscriptionInstallmentRequest} [UpdateSubscriptionInstallmentRequest] - * @deprecated - * @throws {RequiredError} - */ - updateSubscriptionInstallment: async (id: number, UpdateSubscriptionInstallmentRequest?: UpdateSubscriptionInstallmentRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateSubscriptionInstallment', 'id', id) - const localVarPath = `/subscriptions/installment/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(UpdateSubscriptionInstallmentRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - - -/** - * SubscriptionsApi - functional programming interface - * @export - */ -export const SubscriptionsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = SubscriptionsApiAxiosParamCreator(configuration) - return { - /** - * Adds a new recurring subscription. - * @summary Add a recurring subscription - * @param {AddRecurringSubscriptionRequest} [AddRecurringSubscriptionRequest] - * @deprecated - * @throws {RequiredError} - */ - async addRecurringSubscription(AddRecurringSubscriptionRequest?: AddRecurringSubscriptionRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addRecurringSubscription(AddRecurringSubscriptionRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Adds a new installment subscription. - * @summary Add an installment subscription - * @param {AddSubscriptionInstallmentRequest} [AddSubscriptionInstallmentRequest] - * @deprecated - * @throws {RequiredError} - */ - async addSubscriptionInstallment(AddSubscriptionInstallmentRequest?: AddSubscriptionInstallmentRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addSubscriptionInstallment(AddSubscriptionInstallmentRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Cancels a recurring subscription. - * @summary Cancel a recurring subscription - * @param {number} id The ID of the subscription - * @param {CancelRecurringSubscriptionRequest} [CancelRecurringSubscriptionRequest] - * @deprecated - * @throws {RequiredError} - */ - async cancelRecurringSubscription(id: number, CancelRecurringSubscriptionRequest?: CancelRecurringSubscriptionRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.cancelRecurringSubscription(id, CancelRecurringSubscriptionRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Marks an installment or a recurring subscription as deleted. - * @summary Delete a subscription - * @param {number} id The ID of the subscription - * @deprecated - * @throws {RequiredError} - */ - async deleteSubscription(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSubscription(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns details of an installment or a recurring subscription by the deal ID. - * @summary Find subscription by deal - * @param {number} dealId The ID of the deal - * @deprecated - * @throws {RequiredError} - */ - async findSubscriptionByDeal(dealId: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.findSubscriptionByDeal(dealId, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns details of an installment or a recurring subscription. - * @summary Get details of a subscription - * @param {number} id The ID of the subscription - * @deprecated - * @throws {RequiredError} - */ - async getSubscription(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscription(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns all payments of an installment or recurring subscription. - * @summary Get all payments of a subscription - * @param {number} id The ID of the subscription - * @deprecated - * @throws {RequiredError} - */ - async getSubscriptionPayments(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionPayments(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates a recurring subscription. - * @summary Update a recurring subscription - * @param {number} id The ID of the subscription - * @param {UpdateRecurringSubscriptionRequest} [UpdateRecurringSubscriptionRequest] - * @deprecated - * @throws {RequiredError} - */ - async updateRecurringSubscription(id: number, UpdateRecurringSubscriptionRequest?: UpdateRecurringSubscriptionRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateRecurringSubscription(id, UpdateRecurringSubscriptionRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates an installment subscription. - * @summary Update an installment subscription - * @param {number} id The ID of the subscription - * @param {UpdateSubscriptionInstallmentRequest} [UpdateSubscriptionInstallmentRequest] - * @deprecated - * @throws {RequiredError} - */ - async updateSubscriptionInstallment(id: number, UpdateSubscriptionInstallmentRequest?: UpdateSubscriptionInstallmentRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateSubscriptionInstallment(id, UpdateSubscriptionInstallmentRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * SubscriptionsApi - factory interface - * @export - */ -export const SubscriptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = SubscriptionsApiFp(configuration) - return { - /** - * Adds a new recurring subscription. - * @summary Add a recurring subscription - * @param {SubscriptionsApiAddRecurringSubscriptionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - addRecurringSubscription(requestParameters: SubscriptionsApiAddRecurringSubscriptionRequest = {}, ): Promise { - return localVarFp.addRecurringSubscription(requestParameters.AddRecurringSubscriptionRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Adds a new installment subscription. - * @summary Add an installment subscription - * @param {SubscriptionsApiAddSubscriptionInstallmentRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - addSubscriptionInstallment(requestParameters: SubscriptionsApiAddSubscriptionInstallmentRequest = {}, ): Promise { - return localVarFp.addSubscriptionInstallment(requestParameters.AddSubscriptionInstallmentRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Cancels a recurring subscription. - * @summary Cancel a recurring subscription - * @param {SubscriptionsApiCancelRecurringSubscriptionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - cancelRecurringSubscription(requestParameters: SubscriptionsApiCancelRecurringSubscriptionRequest, ): Promise { - return localVarFp.cancelRecurringSubscription(requestParameters.id, requestParameters.CancelRecurringSubscriptionRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Marks an installment or a recurring subscription as deleted. - * @summary Delete a subscription - * @param {SubscriptionsApiDeleteSubscriptionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - deleteSubscription(requestParameters: SubscriptionsApiDeleteSubscriptionRequest, ): Promise { - return localVarFp.deleteSubscription(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Returns details of an installment or a recurring subscription by the deal ID. - * @summary Find subscription by deal - * @param {SubscriptionsApiFindSubscriptionByDealRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - findSubscriptionByDeal(requestParameters: SubscriptionsApiFindSubscriptionByDealRequest, ): Promise { - return localVarFp.findSubscriptionByDeal(requestParameters.dealId, ).then((request) => request(axios, basePath)); - }, - /** - * Returns details of an installment or a recurring subscription. - * @summary Get details of a subscription - * @param {SubscriptionsApiGetSubscriptionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getSubscription(requestParameters: SubscriptionsApiGetSubscriptionRequest, ): Promise { - return localVarFp.getSubscription(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Returns all payments of an installment or recurring subscription. - * @summary Get all payments of a subscription - * @param {SubscriptionsApiGetSubscriptionPaymentsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - getSubscriptionPayments(requestParameters: SubscriptionsApiGetSubscriptionPaymentsRequest, ): Promise { - return localVarFp.getSubscriptionPayments(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Updates a recurring subscription. - * @summary Update a recurring subscription - * @param {SubscriptionsApiUpdateRecurringSubscriptionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - updateRecurringSubscription(requestParameters: SubscriptionsApiUpdateRecurringSubscriptionRequest, ): Promise { - return localVarFp.updateRecurringSubscription(requestParameters.id, requestParameters.UpdateRecurringSubscriptionRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Updates an installment subscription. - * @summary Update an installment subscription - * @param {SubscriptionsApiUpdateSubscriptionInstallmentRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - */ - updateSubscriptionInstallment(requestParameters: SubscriptionsApiUpdateSubscriptionInstallmentRequest, ): Promise { - return localVarFp.updateSubscriptionInstallment(requestParameters.id, requestParameters.UpdateSubscriptionInstallmentRequest, ).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for addRecurringSubscription operation in SubscriptionsApi. - * @export - * @interface SubscriptionsApiAddRecurringSubscriptionRequest - */ -export interface SubscriptionsApiAddRecurringSubscriptionRequest { - /** - * - * @type {AddRecurringSubscriptionRequest} - * @memberof SubscriptionsApiAddRecurringSubscription - */ - readonly AddRecurringSubscriptionRequest?: AddRecurringSubscriptionRequest -} - -/** - * Request parameters for addSubscriptionInstallment operation in SubscriptionsApi. - * @export - * @interface SubscriptionsApiAddSubscriptionInstallmentRequest - */ -export interface SubscriptionsApiAddSubscriptionInstallmentRequest { - /** - * - * @type {AddSubscriptionInstallmentRequest} - * @memberof SubscriptionsApiAddSubscriptionInstallment - */ - readonly AddSubscriptionInstallmentRequest?: AddSubscriptionInstallmentRequest -} - -/** - * Request parameters for cancelRecurringSubscription operation in SubscriptionsApi. - * @export - * @interface SubscriptionsApiCancelRecurringSubscriptionRequest - */ -export interface SubscriptionsApiCancelRecurringSubscriptionRequest { - /** - * The ID of the subscription - * @type {number} - * @memberof SubscriptionsApiCancelRecurringSubscription - */ - readonly id: number - - /** - * - * @type {CancelRecurringSubscriptionRequest} - * @memberof SubscriptionsApiCancelRecurringSubscription - */ - readonly CancelRecurringSubscriptionRequest?: CancelRecurringSubscriptionRequest -} - -/** - * Request parameters for deleteSubscription operation in SubscriptionsApi. - * @export - * @interface SubscriptionsApiDeleteSubscriptionRequest - */ -export interface SubscriptionsApiDeleteSubscriptionRequest { - /** - * The ID of the subscription - * @type {number} - * @memberof SubscriptionsApiDeleteSubscription - */ - readonly id: number -} - -/** - * Request parameters for findSubscriptionByDeal operation in SubscriptionsApi. - * @export - * @interface SubscriptionsApiFindSubscriptionByDealRequest - */ -export interface SubscriptionsApiFindSubscriptionByDealRequest { - /** - * The ID of the deal - * @type {number} - * @memberof SubscriptionsApiFindSubscriptionByDeal - */ - readonly dealId: number -} - -/** - * Request parameters for getSubscription operation in SubscriptionsApi. - * @export - * @interface SubscriptionsApiGetSubscriptionRequest - */ -export interface SubscriptionsApiGetSubscriptionRequest { - /** - * The ID of the subscription - * @type {number} - * @memberof SubscriptionsApiGetSubscription - */ - readonly id: number -} - -/** - * Request parameters for getSubscriptionPayments operation in SubscriptionsApi. - * @export - * @interface SubscriptionsApiGetSubscriptionPaymentsRequest - */ -export interface SubscriptionsApiGetSubscriptionPaymentsRequest { - /** - * The ID of the subscription - * @type {number} - * @memberof SubscriptionsApiGetSubscriptionPayments - */ - readonly id: number -} - -/** - * Request parameters for updateRecurringSubscription operation in SubscriptionsApi. - * @export - * @interface SubscriptionsApiUpdateRecurringSubscriptionRequest - */ -export interface SubscriptionsApiUpdateRecurringSubscriptionRequest { - /** - * The ID of the subscription - * @type {number} - * @memberof SubscriptionsApiUpdateRecurringSubscription - */ - readonly id: number - - /** - * - * @type {UpdateRecurringSubscriptionRequest} - * @memberof SubscriptionsApiUpdateRecurringSubscription - */ - readonly UpdateRecurringSubscriptionRequest?: UpdateRecurringSubscriptionRequest -} - -/** - * Request parameters for updateSubscriptionInstallment operation in SubscriptionsApi. - * @export - * @interface SubscriptionsApiUpdateSubscriptionInstallmentRequest - */ -export interface SubscriptionsApiUpdateSubscriptionInstallmentRequest { - /** - * The ID of the subscription - * @type {number} - * @memberof SubscriptionsApiUpdateSubscriptionInstallment - */ - readonly id: number - - /** - * - * @type {UpdateSubscriptionInstallmentRequest} - * @memberof SubscriptionsApiUpdateSubscriptionInstallment - */ - readonly UpdateSubscriptionInstallmentRequest?: UpdateSubscriptionInstallmentRequest -} - -/** - * SubscriptionsApi - object-oriented interface - * @export - * @class SubscriptionsApi - * @extends {BaseAPI} - */ -export class SubscriptionsApi extends BaseAPI { - /** - * Adds a new recurring subscription. - * @summary Add a recurring subscription - * @param {SubscriptionsApiAddRecurringSubscriptionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof SubscriptionsApi - */ - public addRecurringSubscription(requestParameters: SubscriptionsApiAddRecurringSubscriptionRequest = {}, ) { - return SubscriptionsApiFp(this.configuration).addRecurringSubscription(requestParameters.AddRecurringSubscriptionRequest, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Adds a new installment subscription. - * @summary Add an installment subscription - * @param {SubscriptionsApiAddSubscriptionInstallmentRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof SubscriptionsApi - */ - public addSubscriptionInstallment(requestParameters: SubscriptionsApiAddSubscriptionInstallmentRequest = {}, ) { - return SubscriptionsApiFp(this.configuration).addSubscriptionInstallment(requestParameters.AddSubscriptionInstallmentRequest, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Cancels a recurring subscription. - * @summary Cancel a recurring subscription - * @param {SubscriptionsApiCancelRecurringSubscriptionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof SubscriptionsApi - */ - public cancelRecurringSubscription(requestParameters: SubscriptionsApiCancelRecurringSubscriptionRequest, ) { - return SubscriptionsApiFp(this.configuration).cancelRecurringSubscription(requestParameters.id, requestParameters.CancelRecurringSubscriptionRequest, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Marks an installment or a recurring subscription as deleted. - * @summary Delete a subscription - * @param {SubscriptionsApiDeleteSubscriptionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof SubscriptionsApi - */ - public deleteSubscription(requestParameters: SubscriptionsApiDeleteSubscriptionRequest, ) { - return SubscriptionsApiFp(this.configuration).deleteSubscription(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns details of an installment or a recurring subscription by the deal ID. - * @summary Find subscription by deal - * @param {SubscriptionsApiFindSubscriptionByDealRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof SubscriptionsApi - */ - public findSubscriptionByDeal(requestParameters: SubscriptionsApiFindSubscriptionByDealRequest, ) { - return SubscriptionsApiFp(this.configuration).findSubscriptionByDeal(requestParameters.dealId, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns details of an installment or a recurring subscription. - * @summary Get details of a subscription - * @param {SubscriptionsApiGetSubscriptionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof SubscriptionsApi - */ - public getSubscription(requestParameters: SubscriptionsApiGetSubscriptionRequest, ) { - return SubscriptionsApiFp(this.configuration).getSubscription(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns all payments of an installment or recurring subscription. - * @summary Get all payments of a subscription - * @param {SubscriptionsApiGetSubscriptionPaymentsRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof SubscriptionsApi - */ - public getSubscriptionPayments(requestParameters: SubscriptionsApiGetSubscriptionPaymentsRequest, ) { - return SubscriptionsApiFp(this.configuration).getSubscriptionPayments(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates a recurring subscription. - * @summary Update a recurring subscription - * @param {SubscriptionsApiUpdateRecurringSubscriptionRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof SubscriptionsApi - */ - public updateRecurringSubscription(requestParameters: SubscriptionsApiUpdateRecurringSubscriptionRequest, ) { - return SubscriptionsApiFp(this.configuration).updateRecurringSubscription(requestParameters.id, requestParameters.UpdateRecurringSubscriptionRequest, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates an installment subscription. - * @summary Update an installment subscription - * @param {SubscriptionsApiUpdateSubscriptionInstallmentRequest} requestParameters Request parameters. - * @deprecated - * @throws {RequiredError} - * @memberof SubscriptionsApi - */ - public updateSubscriptionInstallment(requestParameters: SubscriptionsApiUpdateSubscriptionInstallmentRequest, ) { - return SubscriptionsApiFp(this.configuration).updateSubscriptionInstallment(requestParameters.id, requestParameters.UpdateSubscriptionInstallmentRequest, ).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/src/versions/v1/models/activity-all-of.ts b/src/versions/v1/models/activity-all-of.ts index e1d6078d..e5ad1c6c 100644 --- a/src/versions/v1/models/activity-all-of.ts +++ b/src/versions/v1/models/activity-all-of.ts @@ -21,54 +21,259 @@ */ export interface ActivityAllOf { /** - * The due date of the activity. Format: YYYY-MM-DD + * The ID of the activity, generated when the activity was created + * @type {number} + */ + 'id': number; + /** + * The note of the activity (HTML format) + * @type {string} + */ + 'note': string; + /** + * Whether the activity is done or not + * @type {boolean} + */ + 'done': boolean; + /** + * The subject of the activity + * @type {string} + */ + 'subject': string; + /** + * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. + * @type {string} + */ + 'type': string; + /** + * The ID of the user whom the activity is assigned to + * @type {number} + */ + 'user_id': number; + /** + * List of multiple persons (participants) this activity is associated with + * @type {Array} + */ + 'participants': Array | null; + /** + * Marks if the activity is set as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time. + * @type {boolean} + */ + 'busy_flag': boolean; + /** + * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. + * @type {Array} + */ + 'attendees': Array | null; + /** + * The user\'s company ID + * @type {number} + */ + 'company_id': number; + /** + * If the activity references some other object, it is indicated here. For example, value `Salesphone` refers to activities created with Caller. + * @type {string} + */ + 'reference_type': string; + /** + * Together with the `reference_type`, gives the ID of the other object + * @type {number} + */ + 'reference_id': number; + /** + * The ID of the Marketplace app, which is connected to this activity + * @type {string} + */ + 'conference_meeting_client': string; + /** + * The link to join the meeting which is associated with this activity * @type {string} */ - 'due_date'?: string; + 'conference_meeting_url': string; /** - * The due time of the activity in UTC. Format: HH:MM + * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity * @type {string} */ - 'due_time'?: string; + 'conference_meeting_id': string; /** - * The duration of the activity. Format: HH:MM + * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. * @type {string} */ - 'duration'?: string; + 'add_time': string; + /** + * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'marked_as_done_time': string; + /** + * The date and time of latest notifications sent about this activity to the participants or the attendees of this activity + * @type {string} + */ + 'last_notification_time': string; + /** + * The ID of the user who triggered the sending of the latest notifications about this activity to the participants or the attendees of this activity + * @type {number} + */ + 'last_notification_user_id': number; /** - * The ID of the deal this activity is associated with + * The ID of the language the notifications are sent in * @type {number} */ - 'deal_id'?: number; + 'notification_language_id': number; /** - * The ID of the lead in the UUID format this activity is associated with + * Whether the activity is active or not + * @type {boolean} + */ + 'active_flag': boolean; + /** + * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. * @type {string} */ - 'lead_id'?: string | null; + 'update_time': string; /** - * The ID of the person this activity is associated with + * The ID of the user who was the last to update this activity * @type {number} */ - 'person_id'?: number; + 'update_user_id': number; + /** + * For the activity which syncs to Google calendar, this is the Google event ID. NB! This field is related to old Google calendar sync and will be deprecated soon. + * @type {string} + */ + 'gcal_event_id': string; + /** + * The Google calendar ID that this activity syncs to. NB! This field is related to old Google calendar sync and will be deprecated soon. + * @type {string} + */ + 'google_calendar_id': string; + /** + * The Google calendar API etag (version) that is used for syncing this activity. NB! This field is related to old Google calendar sync and will be deprecated soon. + * @type {string} + */ + 'google_calendar_etag': string; + /** + * For activities that sync to an external calendar, this setting indicates if the activity syncs with context (what are the deals, persons, organizations this activity is related to) + * @type {string} + */ + 'calendar_sync_include_context': string; /** - * The ID of the project this activity is associated with + * The timezone the activity was created in an external calendar + * @type {string} + */ + 'source_timezone': string; + /** + * The rule for the recurrence of the activity. Is important for activities synced into Pipedrive from an external calendar. Example: \"RRULE:FREQ=WEEKLY;BYDAY=WE\" + * @type {string} + */ + 'rec_rule': string; + /** + * Additional rules for the recurrence of the activity, extend the `rec_rule`. Is important for activities synced into Pipedrive from an external calendar. + * @type {string} + */ + 'rec_rule_extension': string; + /** + * The ID of parent activity for a recurrent activity if the current activity is an exception to recurrence rules * @type {number} */ - 'project_id'?: number | null; + 'rec_master_activity_id': number; + /** + * The list of recurring activity instances. It is in a structure as follows: `[{due_date: \"2020-06-24\", due_time: \"10:00:00\"}]` + * @type {Array} + */ + 'series': Array; /** - * The ID of the organization this activity is associated with + * The ID of the user who created the activity * @type {number} */ - 'org_id'?: number; + 'created_by_user_id': number; + /** + * A subfield of the location field. Indicates apartment/suite number. + * @type {string} + */ + 'location_subpremise': string; + /** + * A subfield of the location field. Indicates house number. + * @type {string} + */ + 'location_street_number': string; + /** + * A subfield of the location field. Indicates street name. + * @type {string} + */ + 'location_route': string; + /** + * A subfield of the location field. Indicates district/sublocality. + * @type {string} + */ + 'location_sublocality': string; + /** + * A subfield of the location field. Indicates city/town/village/locality. + * @type {string} + */ + 'location_locality': string; + /** + * A subfield of the location field. Indicates state/county. + * @type {string} + */ + 'location_admin_area_level_1': string; /** - * The address of the activity. + * A subfield of the location field. Indicates region. * @type {string} */ - 'location'?: string; + 'location_admin_area_level_2': string; /** - * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. + * A subfield of the location field. Indicates country. * @type {string} */ - 'public_description'?: string; + 'location_country': string; + /** + * A subfield of the location field. Indicates ZIP/postal code. + * @type {string} + */ + 'location_postal_code': string; + /** + * A subfield of the location field. Indicates full/combined address. + * @type {string} + */ + 'location_formatted_address': string; + /** + * The name of the organization this activity is associated with + * @type {string} + */ + 'org_name': string; + /** + * The name of the person this activity is associated with + * @type {string} + */ + 'person_name': string; + /** + * The name of the deal this activity is associated with + * @type {string} + */ + 'deal_title': string; + /** + * The name of the user this activity is owned by + * @type {string} + */ + 'owner_name': string; + /** + * The BCC email address of the person + * @type {string} + */ + 'person_dropbox_bcc': string; + /** + * The BCC email address of the deal + * @type {string} + */ + 'deal_dropbox_bcc': string; + /** + * The ID of the user to whom the activity is assigned to. Equal to `user_id`. + * @type {number} + */ + 'assigned_to_user_id': number; + /** + * The file that is attached to this activity. For example, this can be a reference to an audio note file generated with Pipedrive mobile app. + * @type {object} + */ + 'file': object; } diff --git a/src/versions/v1/models/activity-all-of1.ts b/src/versions/v1/models/activity-all-of1.ts deleted file mode 100644 index db2dbd46..00000000 --- a/src/versions/v1/models/activity-all-of1.ts +++ /dev/null @@ -1,279 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface ActivityAllOf1 -*/ -export interface ActivityAllOf1 { - /** - * The ID of the activity, generated when the activity was created - * @type {number} - */ - 'id': number; - /** - * The note of the activity (HTML format) - * @type {string} - */ - 'note': string; - /** - * Whether the activity is done or not - * @type {boolean} - */ - 'done': boolean; - /** - * The subject of the activity - * @type {string} - */ - 'subject': string; - /** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @type {string} - */ - 'type': string; - /** - * The ID of the user whom the activity is assigned to - * @type {number} - */ - 'user_id': number; - /** - * List of multiple persons (participants) this activity is associated with - * @type {Array} - */ - 'participants': Array | null; - /** - * Marks if the activity is set as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time. - * @type {boolean} - */ - 'busy_flag': boolean; - /** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. - * @type {Array} - */ - 'attendees': Array | null; - /** - * The user\'s company ID - * @type {number} - */ - 'company_id': number; - /** - * If the activity references some other object, it is indicated here. For example, value `Salesphone` refers to activities created with Caller. - * @type {string} - */ - 'reference_type': string; - /** - * Together with the `reference_type`, gives the ID of the other object - * @type {number} - */ - 'reference_id': number; - /** - * The ID of the Marketplace app, which is connected to this activity - * @type {string} - */ - 'conference_meeting_client': string; - /** - * The link to join the meeting which is associated with this activity - * @type {string} - */ - 'conference_meeting_url': string; - /** - * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity - * @type {string} - */ - 'conference_meeting_id': string; - /** - * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'add_time': string; - /** - * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'marked_as_done_time': string; - /** - * The date and time of latest notifications sent about this activity to the participants or the attendees of this activity - * @type {string} - */ - 'last_notification_time': string; - /** - * The ID of the user who triggered the sending of the latest notifications about this activity to the participants or the attendees of this activity - * @type {number} - */ - 'last_notification_user_id': number; - /** - * The ID of the language the notifications are sent in - * @type {number} - */ - 'notification_language_id': number; - /** - * Whether the activity is active or not - * @type {boolean} - */ - 'active_flag': boolean; - /** - * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'update_time': string; - /** - * The ID of the user who was the last to update this activity - * @type {number} - */ - 'update_user_id': number; - /** - * For the activity which syncs to Google calendar, this is the Google event ID. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @type {string} - */ - 'gcal_event_id': string; - /** - * The Google calendar ID that this activity syncs to. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @type {string} - */ - 'google_calendar_id': string; - /** - * The Google calendar API etag (version) that is used for syncing this activity. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @type {string} - */ - 'google_calendar_etag': string; - /** - * For activities that sync to an external calendar, this setting indicates if the activity syncs with context (what are the deals, persons, organizations this activity is related to) - * @type {string} - */ - 'calendar_sync_include_context': string; - /** - * The timezone the activity was created in an external calendar - * @type {string} - */ - 'source_timezone': string; - /** - * The rule for the recurrence of the activity. Is important for activities synced into Pipedrive from an external calendar. Example: \"RRULE:FREQ=WEEKLY;BYDAY=WE\" - * @type {string} - */ - 'rec_rule': string; - /** - * Additional rules for the recurrence of the activity, extend the `rec_rule`. Is important for activities synced into Pipedrive from an external calendar. - * @type {string} - */ - 'rec_rule_extension': string; - /** - * The ID of parent activity for a recurrent activity if the current activity is an exception to recurrence rules - * @type {number} - */ - 'rec_master_activity_id': number; - /** - * The list of recurring activity instances. It is in a structure as follows: `[{due_date: \"2020-06-24\", due_time: \"10:00:00\"}]` - * @type {Array} - */ - 'series': Array; - /** - * The ID of the user who created the activity - * @type {number} - */ - 'created_by_user_id': number; - /** - * A subfield of the location field. Indicates apartment/suite number. - * @type {string} - */ - 'location_subpremise': string; - /** - * A subfield of the location field. Indicates house number. - * @type {string} - */ - 'location_street_number': string; - /** - * A subfield of the location field. Indicates street name. - * @type {string} - */ - 'location_route': string; - /** - * A subfield of the location field. Indicates district/sublocality. - * @type {string} - */ - 'location_sublocality': string; - /** - * A subfield of the location field. Indicates city/town/village/locality. - * @type {string} - */ - 'location_locality': string; - /** - * A subfield of the location field. Indicates state/county. - * @type {string} - */ - 'location_admin_area_level_1': string; - /** - * A subfield of the location field. Indicates region. - * @type {string} - */ - 'location_admin_area_level_2': string; - /** - * A subfield of the location field. Indicates country. - * @type {string} - */ - 'location_country': string; - /** - * A subfield of the location field. Indicates ZIP/postal code. - * @type {string} - */ - 'location_postal_code': string; - /** - * A subfield of the location field. Indicates full/combined address. - * @type {string} - */ - 'location_formatted_address': string; - /** - * The name of the organization this activity is associated with - * @type {string} - */ - 'org_name': string; - /** - * The name of the person this activity is associated with - * @type {string} - */ - 'person_name': string; - /** - * The name of the deal this activity is associated with - * @type {string} - */ - 'deal_title': string; - /** - * The name of the user this activity is owned by - * @type {string} - */ - 'owner_name': string; - /** - * The BCC email address of the person - * @type {string} - */ - 'person_dropbox_bcc': string; - /** - * The BCC email address of the deal - * @type {string} - */ - 'deal_dropbox_bcc': string; - /** - * The ID of the user to whom the activity is assigned to. Equal to `user_id`. - * @type {number} - */ - 'assigned_to_user_id': number; - /** - * The file that is attached to this activity. For example, this can be a reference to an audio note file generated with Pipedrive mobile app. - * @type {object} - */ - 'file': object; -} - diff --git a/src/versions/v1/models/activity-collection-response-object-all-of.ts b/src/versions/v1/models/activity-collection-response-object-all-of.ts index b10f4117..198ad083 100644 --- a/src/versions/v1/models/activity-collection-response-object-all-of.ts +++ b/src/versions/v1/models/activity-collection-response-object-all-of.ts @@ -21,134 +21,54 @@ */ export interface ActivityCollectionResponseObjectAllOf { /** - * The ID of the activity, generated when the activity was created - * @type {number} - */ - 'id': number; - /** - * Whether the activity is done or not - * @type {boolean} - */ - 'done': boolean; - /** - * The subject of the activity - * @type {string} - */ - 'subject': string; - /** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @type {string} - */ - 'type': string; - /** - * The ID of the user whom the activity is assigned to - * @type {number} - */ - 'user_id': number; - /** - * Marks if the activity is set as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time. - * @type {boolean} - */ - 'busy_flag': boolean; - /** - * The user\'s company ID - * @type {number} - */ - 'company_id': number; - /** - * The ID of the Marketplace app, which is connected to this activity + * The due date of the activity. Format: YYYY-MM-DD * @type {string} */ - 'conference_meeting_client': string; + 'due_date'?: string; /** - * The link to join the meeting which is associated with this activity + * The due time of the activity in UTC. Format: HH:MM * @type {string} */ - 'conference_meeting_url': string; + 'due_time'?: string; /** - * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity + * The duration of the activity. Format: HH:MM * @type {string} */ - 'conference_meeting_id': string; + 'duration'?: string; /** - * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'add_time': string; - /** - * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'marked_as_done_time': string; - /** - * Whether the activity is active or not - * @type {boolean} - */ - 'active_flag': boolean; - /** - * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'update_time': string; - /** - * The ID of the user who was the last to update this activity + * The ID of the deal this activity is associated with * @type {number} */ - 'update_user_id': number; - /** - * The timezone the activity was created in an external calendar - * @type {string} - */ - 'source_timezone': string; - /** - * A subfield of the location field. Indicates apartment/suite number. - * @type {string} - */ - 'location_subpremise': string; - /** - * A subfield of the location field. Indicates house number. - * @type {string} - */ - 'location_street_number': string; + 'deal_id'?: number; /** - * A subfield of the location field. Indicates street name. + * The ID of the lead in the UUID format this activity is associated with * @type {string} */ - 'location_route': string; + 'lead_id'?: string | null; /** - * A subfield of the location field. Indicates district/sublocality. - * @type {string} - */ - 'location_sublocality': string; - /** - * A subfield of the location field. Indicates city/town/village/locality. - * @type {string} - */ - 'location_locality': string; - /** - * A subfield of the location field. Indicates state/county. - * @type {string} + * The ID of the person this activity is associated with + * @type {number} */ - 'location_admin_area_level_1': string; + 'person_id'?: number; /** - * A subfield of the location field. Indicates region. - * @type {string} + * The ID of the project this activity is associated with + * @type {number} */ - 'location_admin_area_level_2': string; + 'project_id'?: number | null; /** - * A subfield of the location field. Indicates country. - * @type {string} + * The ID of the organization this activity is associated with + * @type {number} */ - 'location_country': string; + 'org_id'?: number; /** - * A subfield of the location field. Indicates ZIP/postal code. + * The address of the activity. * @type {string} */ - 'location_postal_code': string; + 'location'?: string; /** - * A subfield of the location field. Indicates full/combined address. + * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. * @type {string} */ - 'location_formatted_address': string; + 'public_description'?: string; } diff --git a/src/versions/v1/models/activity-collection-response-object-all-of1.ts b/src/versions/v1/models/activity-collection-response-object-all-of1.ts new file mode 100644 index 00000000..3899d079 --- /dev/null +++ b/src/versions/v1/models/activity-collection-response-object-all-of1.ts @@ -0,0 +1,154 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ActivityCollectionResponseObjectAllOf1 +*/ +export interface ActivityCollectionResponseObjectAllOf1 { + /** + * The ID of the activity, generated when the activity was created + * @type {number} + */ + 'id': number; + /** + * Whether the activity is done or not + * @type {boolean} + */ + 'done': boolean; + /** + * The subject of the activity + * @type {string} + */ + 'subject': string; + /** + * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. + * @type {string} + */ + 'type': string; + /** + * The ID of the user whom the activity is assigned to + * @type {number} + */ + 'user_id': number; + /** + * Marks if the activity is set as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time. + * @type {boolean} + */ + 'busy_flag': boolean; + /** + * The user\'s company ID + * @type {number} + */ + 'company_id': number; + /** + * The ID of the Marketplace app, which is connected to this activity + * @type {string} + */ + 'conference_meeting_client': string; + /** + * The link to join the meeting which is associated with this activity + * @type {string} + */ + 'conference_meeting_url': string; + /** + * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity + * @type {string} + */ + 'conference_meeting_id': string; + /** + * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time': string; + /** + * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'marked_as_done_time': string; + /** + * Whether the activity is active or not + * @type {boolean} + */ + 'active_flag': boolean; + /** + * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time': string; + /** + * The ID of the user who was the last to update this activity + * @type {number} + */ + 'update_user_id': number; + /** + * The timezone the activity was created in an external calendar + * @type {string} + */ + 'source_timezone': string; + /** + * A subfield of the location field. Indicates apartment/suite number. + * @type {string} + */ + 'location_subpremise': string; + /** + * A subfield of the location field. Indicates house number. + * @type {string} + */ + 'location_street_number': string; + /** + * A subfield of the location field. Indicates street name. + * @type {string} + */ + 'location_route': string; + /** + * A subfield of the location field. Indicates district/sublocality. + * @type {string} + */ + 'location_sublocality': string; + /** + * A subfield of the location field. Indicates city/town/village/locality. + * @type {string} + */ + 'location_locality': string; + /** + * A subfield of the location field. Indicates state/county. + * @type {string} + */ + 'location_admin_area_level_1': string; + /** + * A subfield of the location field. Indicates region. + * @type {string} + */ + 'location_admin_area_level_2': string; + /** + * A subfield of the location field. Indicates country. + * @type {string} + */ + 'location_country': string; + /** + * A subfield of the location field. Indicates ZIP/postal code. + * @type {string} + */ + 'location_postal_code': string; + /** + * A subfield of the location field. Indicates full/combined address. + * @type {string} + */ + 'location_formatted_address': string; +} + diff --git a/src/versions/v1/models/activity-collection-response-object.ts b/src/versions/v1/models/activity-collection-response-object.ts index 0375bcd8..ec638d38 100644 --- a/src/versions/v1/models/activity-collection-response-object.ts +++ b/src/versions/v1/models/activity-collection-response-object.ts @@ -15,15 +15,15 @@ // May contain unused imports in some cases // @ts-ignore -import { ActivityAllOf } from './activity-all-of'; +import { ActivityCollectionResponseObjectAllOf } from './activity-collection-response-object-all-of'; // May contain unused imports in some cases // @ts-ignore -import { ActivityCollectionResponseObjectAllOf } from './activity-collection-response-object-all-of'; +import { ActivityCollectionResponseObjectAllOf1 } from './activity-collection-response-object-all-of1'; /** * @type ActivityCollectionResponseObject * @export */ -export type ActivityCollectionResponseObject = ActivityAllOf & ActivityCollectionResponseObjectAllOf; +export type ActivityCollectionResponseObject = ActivityCollectionResponseObjectAllOf & ActivityCollectionResponseObjectAllOf1; diff --git a/src/versions/v1/models/activity-distribution-data-with-additional-data.ts b/src/versions/v1/models/activity-distribution-data-with-additional-data.ts deleted file mode 100644 index 5b4a17a5..00000000 --- a/src/versions/v1/models/activity-distribution-data-with-additional-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ActivityDistribution } from './activity-distribution'; -// May contain unused imports in some cases -// @ts-ignore -import { ActivityDistributionData } from './activity-distribution-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; - -/** - * @type ActivityDistributionDataWithAdditionalData - * @export - */ -export type ActivityDistributionDataWithAdditionalData = ActivityDistributionData & GetFieldsResponseAllOfAdditionalData; - - diff --git a/src/versions/v1/models/activity-distribution-item.ts b/src/versions/v1/models/activity-distribution-item.ts deleted file mode 100644 index 13924d40..00000000 --- a/src/versions/v1/models/activity-distribution-item.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ActivityTypeCount } from './activity-type-count'; - -/** -* The ID of the user -* @export -* @interface ActivityDistributionItem -*/ -export interface ActivityDistributionItem { - /** - * - * @type {ActivityTypeCount} - */ - 'activities'?: ActivityTypeCount; - /** - * The name of the user - * @type {string} - */ - 'name'?: string; - /** - * The overall count of activities for the user - * @type {number} - */ - 'activity_count'?: number; - /** - * The percentage of activities belongs to the user - * @type {number} - */ - 'share'?: number; -} - diff --git a/src/versions/v1/models/activity-distribution.ts b/src/versions/v1/models/activity-distribution.ts deleted file mode 100644 index e27e5d47..00000000 --- a/src/versions/v1/models/activity-distribution.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ActivityDistributionItem } from './activity-distribution-item'; - -/** -* The distribution of activities related to the organization grouped by the user ID -* @export -* @interface ActivityDistribution -*/ -export interface ActivityDistribution { - /** - * - * @type {ActivityDistributionItem} - */ - 'ASSIGNED_TO_USER_ID'?: ActivityDistributionItem; -} - diff --git a/src/versions/v1/models/activity-type-count.ts b/src/versions/v1/models/activity-type-count.ts deleted file mode 100644 index d796756d..00000000 --- a/src/versions/v1/models/activity-type-count.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The count of activities related to the user grouped by activity type -* @export -* @interface ActivityTypeCount -*/ -export interface ActivityTypeCount { - /** - * The count of activities related to a specific type - * @type {number} - */ - 'ACTIVITY_TYPE_NAME'?: number; -} - diff --git a/src/versions/v1/models/activity.ts b/src/versions/v1/models/activity.ts index 291194d9..59bc4bcc 100644 --- a/src/versions/v1/models/activity.ts +++ b/src/versions/v1/models/activity.ts @@ -18,12 +18,12 @@ import { ActivityAllOf } from './activity-all-of'; // May contain unused imports in some cases // @ts-ignore -import { ActivityAllOf1 } from './activity-all-of1'; +import { ActivityCollectionResponseObjectAllOf } from './activity-collection-response-object-all-of'; /** * @type Activity * @export */ -export type Activity = ActivityAllOf & ActivityAllOf1; +export type Activity = ActivityAllOf & ActivityCollectionResponseObjectAllOf; diff --git a/src/versions/v1/models/add-activity-request-all-of.ts b/src/versions/v1/models/add-activity-request-all-of.ts deleted file mode 100644 index a5e06db5..00000000 --- a/src/versions/v1/models/add-activity-request-all-of.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddActivityRequestAllOf -*/ -export interface AddActivityRequestAllOf { - [key: string]: any | any; - - /** - * The note of the activity (HTML format) - * @type {string} - */ - 'note'?: string; - /** - * The subject of the activity. When value for subject is not set, it will be given a default value `Call`. - * @type {string} - */ - 'subject'?: string; - /** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. When value for type is not set, it will be given a default value `Call`. - * @type {string} - */ - 'type'?: string; - /** - * The ID of the user whom the activity is assigned to. If omitted, the activity is assigned to the authorized user. - * @type {number} - */ - 'user_id'?: number; - /** - * List of multiple persons (participants) this activity is associated with. If omitted, single participant from `person_id` field is used. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` - * @type {Array} - */ - 'participants'?: Array; - /** - * Set the activity as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time. - * @type {boolean} - */ - 'busy_flag'?: boolean; - /** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` - * @type {Array} - */ - 'attendees'?: Array; - /** - * - * @type {number} - */ - 'done'?: AddActivityRequestAllOfDoneConst; -} - - export const AddActivityRequestAllOfDoneConst = { - NUMBER_0: 0, - NUMBER_1: 1 - } as const; - - export type AddActivityRequestAllOfDoneConst = typeof AddActivityRequestAllOfDoneConst[keyof typeof AddActivityRequestAllOfDoneConst]; - - diff --git a/src/versions/v1/models/add-activity-request.ts b/src/versions/v1/models/add-activity-request.ts deleted file mode 100644 index 4cfd3672..00000000 --- a/src/versions/v1/models/add-activity-request.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ActivityAllOf } from './activity-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { AddActivityRequestAllOf } from './add-activity-request-all-of'; - -/** - * @type AddActivityRequest - * @export - */ -export type AddActivityRequest = ActivityAllOf & AddActivityRequestAllOf; - - diff --git a/src/versions/v1/models/add-activity-response-additional-data.ts b/src/versions/v1/models/add-activity-response-additional-data.ts deleted file mode 100644 index 677fe238..00000000 --- a/src/versions/v1/models/add-activity-response-additional-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddActivityResponseAdditionalData -*/ -export interface AddActivityResponseAdditionalData { - /** - * This field will be deprecated - * @type {number} - */ - 'updates_story_id'?: number; -} - diff --git a/src/versions/v1/models/add-activity-response-related-objects.ts b/src/versions/v1/models/add-activity-response-related-objects.ts deleted file mode 100644 index 26e230b3..00000000 --- a/src/versions/v1/models/add-activity-response-related-objects.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; -// May contain unused imports in some cases -// @ts-ignore -import { RelatedDealData } from './related-deal-data'; -// May contain unused imports in some cases -// @ts-ignore -import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; - -/** -* -* @export -* @interface AddActivityResponseRelatedObjects -*/ -export interface AddActivityResponseRelatedObjects { - /** - * - * @type {GetActivitiesResponseRelatedObjectsUser} - */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; - /** - * - * @type {RelatedDealData} - */ - 'deal'?: RelatedDealData; - /** - * - * @type {AddActivityResponseRelatedObjectsPerson} - */ - 'person'?: AddActivityResponseRelatedObjectsPerson; - /** - * - * @type {RelatedOrganizationDataWithActiveFlag} - */ - 'organization'?: RelatedOrganizationDataWithActiveFlag; -} - diff --git a/src/versions/v1/models/add-activity-response.ts b/src/versions/v1/models/add-activity-response.ts deleted file mode 100644 index 3eda3a4e..00000000 --- a/src/versions/v1/models/add-activity-response.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Activity } from './activity'; -// May contain unused imports in some cases -// @ts-ignore -import { AddActivityResponseAdditionalData } from './add-activity-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { AddActivityResponseRelatedObjects } from './add-activity-response-related-objects'; - -/** -* -* @export -* @interface AddActivityResponse -*/ -export interface AddActivityResponse { - /** - * - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {Activity} - */ - 'data'?: Activity; - /** - * - * @type {AddActivityResponseAdditionalData} - */ - 'additional_data'?: AddActivityResponseAdditionalData; - /** - * - * @type {AddActivityResponseRelatedObjects} - */ - 'related_objects'?: AddActivityResponseRelatedObjects; -} - diff --git a/src/versions/v1/models/add-deal-product-request-all-of.ts b/src/versions/v1/models/add-deal-product-request-all-of.ts deleted file mode 100644 index 4d708499..00000000 --- a/src/versions/v1/models/add-deal-product-request-all-of.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddDealProductRequestAllOf -*/ -export interface AddDealProductRequestAllOf { - /** - * Only available in Growth and above plans How often a customer is billed for access to a service or product To set `billing_frequency` different than `one-time`, the deal must not have installments associated A deal can have up to 20 products attached with `billing_frequency` different than `one-time` - * @type {string} - */ - 'billing_frequency'?: AddDealProductRequestAllOfBillingFrequencyConst; -} - - export const AddDealProductRequestAllOfBillingFrequencyConst = { - one_time: 'one-time', - annually: 'annually', - semi_annually: 'semi-annually', - quarterly: 'quarterly', - monthly: 'monthly', - weekly: 'weekly' - } as const; - - export type AddDealProductRequestAllOfBillingFrequencyConst = typeof AddDealProductRequestAllOfBillingFrequencyConst[keyof typeof AddDealProductRequestAllOfBillingFrequencyConst]; - - diff --git a/src/versions/v1/models/add-deal-product-request-all-of1.ts b/src/versions/v1/models/add-deal-product-request-all-of1.ts deleted file mode 100644 index 8e9eef85..00000000 --- a/src/versions/v1/models/add-deal-product-request-all-of1.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddDealProductRequestAllOf1 -*/ -export interface AddDealProductRequestAllOf1 { - /** - * Only available in Growth and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` When `billing_frequency` is set to `weekly`, this field cannot be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 208 - * @type {number} - */ - 'billing_frequency_cycles'?: number | null; -} - diff --git a/src/versions/v1/models/add-deal-product-request-all-of2.ts b/src/versions/v1/models/add-deal-product-request-all-of2.ts deleted file mode 100644 index 9326a291..00000000 --- a/src/versions/v1/models/add-deal-product-request-all-of2.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddDealProductRequestAllOf2 -*/ -export interface AddDealProductRequestAllOf2 { - /** - * Only available in Growth and above plans The billing start date. Must be between 10 years in the past and 10 years in the future - * @type {string} - */ - 'billing_start_date'?: string | null; -} - diff --git a/src/versions/v1/models/add-deal-product-request.ts b/src/versions/v1/models/add-deal-product-request.ts deleted file mode 100644 index 6da03a41..00000000 --- a/src/versions/v1/models/add-deal-product-request.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddDealProductRequestAllOf } from './add-deal-product-request-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { AddDealProductRequestAllOf1 } from './add-deal-product-request-all-of1'; -// May contain unused imports in some cases -// @ts-ignore -import { AddDealProductRequestAllOf2 } from './add-deal-product-request-all-of2'; -// May contain unused imports in some cases -// @ts-ignore -import { DealProductRequestBody } from './deal-product-request-body'; - -/** - * @type AddDealProductRequest - * @export - */ -export type AddDealProductRequest = AddDealProductRequestAllOf & AddDealProductRequestAllOf1 & AddDealProductRequestAllOf2 & DealProductRequestBody; - - diff --git a/src/versions/v1/models/add-deal-request.ts b/src/versions/v1/models/add-deal-request.ts deleted file mode 100644 index bc8b9cdb..00000000 --- a/src/versions/v1/models/add-deal-request.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasicDeal } from './basic-deal'; -// May contain unused imports in some cases -// @ts-ignore -import { NewDealParameters } from './new-deal-parameters'; -// May contain unused imports in some cases -// @ts-ignore -import { RequiredTitleParameter } from './required-title-parameter'; - -/** - * @type AddDealRequest - * @export - */ -export type AddDealRequest = BasicDeal & NewDealParameters & RequiredTitleParameter; - - diff --git a/src/versions/v1/models/add-organization-request-all-of.ts b/src/versions/v1/models/add-organization-request-all-of.ts deleted file mode 100644 index 05f27e60..00000000 --- a/src/versions/v1/models/add-organization-request-all-of.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddOrganizationRequestAllOf -*/ -export interface AddOrganizationRequestAllOf { - [key: string]: any | any; - - /** - * The name of the organization - * @type {string} - */ - 'name': string; - /** - * The optional creation date & time of the organization in UTC. Format: YYYY-MM-DD HH:MM:SS - * @type {string} - */ - 'add_time'?: string; -} - diff --git a/src/versions/v1/models/add-organization-request.ts b/src/versions/v1/models/add-organization-request.ts deleted file mode 100644 index df15c684..00000000 --- a/src/versions/v1/models/add-organization-request.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddOrganizationRequestAllOf } from './add-organization-request-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { BasicOrganization } from './basic-organization'; - -/** - * @type AddOrganizationRequest - * @export - */ -export type AddOrganizationRequest = AddOrganizationRequestAllOf & BasicOrganization; - - diff --git a/src/versions/v1/models/add-organization-response-all-of.ts b/src/versions/v1/models/add-organization-response-all-of.ts deleted file mode 100644 index c42bb2c0..00000000 --- a/src/versions/v1/models/add-organization-response-all-of.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItemWithEditNameFlag } from './base-organization-item-with-edit-name-flag'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; - -/** -* -* @export -* @interface AddOrganizationResponseAllOf -*/ -export interface AddOrganizationResponseAllOf { - /** - * - * @type {BaseOrganizationItemWithEditNameFlag} - */ - 'data': BaseOrganizationItemWithEditNameFlag; - /** - * - * @type {GetOrganizationsResponseAllOfRelatedObjects} - */ - 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; -} - diff --git a/src/versions/v1/models/add-organization-response.ts b/src/versions/v1/models/add-organization-response.ts deleted file mode 100644 index 43c79591..00000000 --- a/src/versions/v1/models/add-organization-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddOrganizationResponseAllOf } from './add-organization-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItemWithEditNameFlag } from './base-organization-item-with-edit-name-flag'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; - -/** - * @type AddOrganizationResponse - * @export - */ -export type AddOrganizationResponse = AddOrganizationResponseAllOf & BaseResponse; - - diff --git a/src/versions/v1/models/add-participants-response-data.ts b/src/versions/v1/models/add-participants-response-data.ts deleted file mode 100644 index 73aeac91..00000000 --- a/src/versions/v1/models/add-participants-response-data.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Owner } from './owner'; -// May contain unused imports in some cases -// @ts-ignore -import { Person } from './person'; -// May contain unused imports in some cases -// @ts-ignore -import { PersonAllOfEmailInner } from './person-all-of-email-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { PersonAllOfPhoneInner } from './person-all-of-phone-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { PersonAllOfPictureId } from './person-all-of-picture-id'; -// May contain unused imports in some cases -// @ts-ignore -import { RelationshipOrganizationInfoItemWithActiveFlag } from './relationship-organization-info-item-with-active-flag'; - -/** - * @type AddParticipantsResponseData - * The object of participant - * @export - */ -export type AddParticipantsResponseData = Person; - - diff --git a/src/versions/v1/models/add-participants-response-related-objects.ts b/src/versions/v1/models/add-participants-response-related-objects.ts index c10bde32..72e53001 100644 --- a/src/versions/v1/models/add-participants-response-related-objects.ts +++ b/src/versions/v1/models/add-participants-response-related-objects.ts @@ -15,10 +15,10 @@ // May contain unused imports in some cases // @ts-ignore -import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; +import { GetDealsResponseRelatedObjectsPerson } from './get-deals-response-related-objects-person'; // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +import { GetDealsResponseRelatedObjectsUser } from './get-deals-response-related-objects-user'; /** * @@ -28,13 +28,13 @@ import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-respon export interface AddParticipantsResponseRelatedObjects { /** * - * @type {GetActivitiesResponseRelatedObjectsUser} + * @type {GetDealsResponseRelatedObjectsUser} */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; + 'user'?: GetDealsResponseRelatedObjectsUser; /** * - * @type {AddActivityResponseRelatedObjectsPerson} + * @type {GetDealsResponseRelatedObjectsPerson} */ - 'person'?: AddActivityResponseRelatedObjectsPerson; + 'person'?: GetDealsResponseRelatedObjectsPerson; } diff --git a/src/versions/v1/models/add-person-request-all-of.ts b/src/versions/v1/models/add-person-request-all-of.ts deleted file mode 100644 index b047d13c..00000000 --- a/src/versions/v1/models/add-person-request-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddPersonRequestAllOf -*/ -export interface AddPersonRequestAllOf { - [key: string]: any | any; - - /** - * The name of the person - * @type {string} - */ - 'name': string; -} - diff --git a/src/versions/v1/models/add-person-request.ts b/src/versions/v1/models/add-person-request.ts deleted file mode 100644 index 522968a5..00000000 --- a/src/versions/v1/models/add-person-request.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddPersonRequestAllOf } from './add-person-request-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { BasicPersonRequest } from './basic-person-request'; -// May contain unused imports in some cases -// @ts-ignore -import { BasicPersonRequestEmailInner } from './basic-person-request-email-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { DealParticipantItemPersonIdPhoneInner } from './deal-participant-item-person-id-phone-inner'; - -/** - * @type AddPersonRequest - * @export - */ -export type AddPersonRequest = AddPersonRequestAllOf & BasicPersonRequest; - - diff --git a/src/versions/v1/models/add-person-response-all-of.ts b/src/versions/v1/models/add-person-response-all-of.ts deleted file mode 100644 index b0b1132e..00000000 --- a/src/versions/v1/models/add-person-response-all-of.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetProductsResponseAllOfRelatedObjects } from './get-products-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { Person } from './person'; - -/** -* -* @export -* @interface AddPersonResponseAllOf -*/ -export interface AddPersonResponseAllOf { - /** - * - * @type {Person} - */ - 'data': Person; - /** - * - * @type {GetProductsResponseAllOfRelatedObjects} - */ - 'related_objects': GetProductsResponseAllOfRelatedObjects; -} - diff --git a/src/versions/v1/models/add-person-response.ts b/src/versions/v1/models/add-person-response.ts deleted file mode 100644 index 0b6e9265..00000000 --- a/src/versions/v1/models/add-person-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddPersonResponseAllOf } from './add-person-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductsResponseAllOfRelatedObjects } from './get-products-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { Person } from './person'; - -/** - * @type AddPersonResponse - * @export - */ -export type AddPersonResponse = AddPersonResponseAllOf & BaseResponse; - - diff --git a/src/versions/v1/models/add-pipeline-response-all-of.ts b/src/versions/v1/models/add-pipeline-response-all-of.ts deleted file mode 100644 index cbbb2f61..00000000 --- a/src/versions/v1/models/add-pipeline-response-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasePipeline1 } from './base-pipeline1'; - -/** -* -* @export -* @interface AddPipelineResponseAllOf -*/ -export interface AddPipelineResponseAllOf { - /** - * - * @type {BasePipeline1} - */ - 'data'?: BasePipeline1; -} - diff --git a/src/versions/v1/models/add-pipeline-response.ts b/src/versions/v1/models/add-pipeline-response.ts deleted file mode 100644 index 44dd3cf8..00000000 --- a/src/versions/v1/models/add-pipeline-response.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddPipelineResponseAllOf } from './add-pipeline-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { BasePipeline1 } from './base-pipeline1'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; - -/** - * @type AddPipelineResponse - * @export - */ -export type AddPipelineResponse = AddPipelineResponseAllOf & BaseResponse; - - diff --git a/src/versions/v1/models/add-product-request-all-of.ts b/src/versions/v1/models/add-product-request-all-of.ts deleted file mode 100644 index b843b6d9..00000000 --- a/src/versions/v1/models/add-product-request-all-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddProductRequestAllOf -*/ -export interface AddProductRequestAllOf { - /** - * The name of the product - * @type {string} - */ - 'name': string; -} - diff --git a/src/versions/v1/models/add-product-request-all-of1.ts b/src/versions/v1/models/add-product-request-all-of1.ts deleted file mode 100644 index 999179a9..00000000 --- a/src/versions/v1/models/add-product-request-all-of1.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddProductRequestAllOf1 -*/ -export interface AddProductRequestAllOf1 { - [key: string]: any | any; - - /** - * Only available in Growth and above plans How often a customer is billed for access to a service or product - * @type {string} - */ - 'billing_frequency'?: AddProductRequestAllOf1BillingFrequencyConst; -} - - export const AddProductRequestAllOf1BillingFrequencyConst = { - one_time: 'one-time', - annually: 'annually', - semi_annually: 'semi-annually', - quarterly: 'quarterly', - monthly: 'monthly', - weekly: 'weekly' - } as const; - - export type AddProductRequestAllOf1BillingFrequencyConst = typeof AddProductRequestAllOf1BillingFrequencyConst[keyof typeof AddProductRequestAllOf1BillingFrequencyConst]; - - diff --git a/src/versions/v1/models/add-product-request-all-of2.ts b/src/versions/v1/models/add-product-request-all-of2.ts deleted file mode 100644 index 646d9ce6..00000000 --- a/src/versions/v1/models/add-product-request-all-of2.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddProductRequestAllOf2 -*/ -export interface AddProductRequestAllOf2 { - /** - * Only available in Growth and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 208 - * @type {number} - */ - 'billing_frequency_cycles'?: number | null; -} - diff --git a/src/versions/v1/models/add-product-request.ts b/src/versions/v1/models/add-product-request.ts deleted file mode 100644 index 6d73752d..00000000 --- a/src/versions/v1/models/add-product-request.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddProductRequestAllOf } from './add-product-request-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { AddProductRequestAllOf1 } from './add-product-request-all-of1'; -// May contain unused imports in some cases -// @ts-ignore -import { AddProductRequestAllOf2 } from './add-product-request-all-of2'; -// May contain unused imports in some cases -// @ts-ignore -import { ProductRequest } from './product-request'; - -/** - * @type AddProductRequest - * @export - */ -export type AddProductRequest = AddProductRequestAllOf & AddProductRequestAllOf1 & AddProductRequestAllOf2 & ProductRequest; - - diff --git a/src/versions/v1/models/add-recurring-subscription-request.ts b/src/versions/v1/models/add-recurring-subscription-request.ts deleted file mode 100644 index 7188d7b0..00000000 --- a/src/versions/v1/models/add-recurring-subscription-request.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddRecurringSubscriptionRequest -*/ -export interface AddRecurringSubscriptionRequest { - /** - * The ID of the deal this recurring subscription is associated with - * @type {number} - */ - 'deal_id': number; - /** - * The currency of the recurring subscription. Accepts a 3-character currency code. - * @type {string} - */ - 'currency': string; - /** - * The interval between payments - * @type {string} - */ - 'cadence_type': AddRecurringSubscriptionRequestCadenceTypeConst; - /** - * The amount of each payment - * @type {number} - */ - 'cycle_amount': number; - /** - * The start date of the recurring subscription. Format: YYYY-MM-DD - * @type {string} - */ - 'start_date': string; - /** - * The description of the recurring subscription - * @type {string} - */ - 'description'?: string; - /** - * Shows how many payments the subscription has. Note that one field must be set: `cycles_count` or `infinite`. If `cycles_count` is set, then `cycle_amount` and `start_date` are also required. - * @type {number} - */ - 'cycles_count'?: number; - /** - * This indicates that the recurring subscription will last until it\'s manually canceled or deleted. Note that only one field must be set: `cycles_count` or `infinite`. - * @type {boolean} - */ - 'infinite'?: boolean; - /** - * Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). - * @type {Array} - */ - 'payments'?: Array; - /** - * Indicates that the deal value must be set to recurring subscription\'s MRR value - * @type {boolean} - */ - 'update_deal_value'?: boolean; -} - - export const AddRecurringSubscriptionRequestCadenceTypeConst = { - weekly: 'weekly', - monthly: 'monthly', - quarterly: 'quarterly', - yearly: 'yearly' - } as const; - - export type AddRecurringSubscriptionRequestCadenceTypeConst = typeof AddRecurringSubscriptionRequestCadenceTypeConst[keyof typeof AddRecurringSubscriptionRequestCadenceTypeConst]; - - diff --git a/src/versions/v1/models/add-stage-request.ts b/src/versions/v1/models/add-stage-request.ts deleted file mode 100644 index 3dfe6bfb..00000000 --- a/src/versions/v1/models/add-stage-request.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddStageRequest -*/ -export interface AddStageRequest { - /** - * The name of the stage - * @type {string} - */ - 'name': string; - /** - * The ID of the pipeline to add stage to - * @type {number} - */ - 'pipeline_id': number; - /** - * The success probability percentage of the deal. Used/shown when deal weighted values are used. - * @type {number} - */ - 'deal_probability'?: number; - /** - * Whether deals in this stage can become rotten - * @type {boolean} - */ - 'rotten_flag'?: boolean; - /** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @type {number} - */ - 'rotten_days'?: number; -} - diff --git a/src/versions/v1/models/add-subscription-installment-request.ts b/src/versions/v1/models/add-subscription-installment-request.ts deleted file mode 100644 index b2062e6d..00000000 --- a/src/versions/v1/models/add-subscription-installment-request.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface AddSubscriptionInstallmentRequest -*/ -export interface AddSubscriptionInstallmentRequest { - /** - * The ID of the deal this installment subscription is associated with - * @type {number} - */ - 'deal_id': number; - /** - * The currency of the installment subscription. Accepts a 3-character currency code. - * @type {string} - */ - 'currency': string; - /** - * Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). - * @type {Array} - */ - 'payments': Array; - /** - * Indicates that the deal value must be set to the installment subscription\'s total value - * @type {boolean} - */ - 'update_deal_value'?: boolean; -} - diff --git a/src/versions/v1/models/base-organization-item-all-of-picture-id.ts b/src/versions/v1/models/base-organization-item-all-of-picture-id.ts index 4ee0bf8d..9e4b097d 100644 --- a/src/versions/v1/models/base-organization-item-all-of-picture-id.ts +++ b/src/versions/v1/models/base-organization-item-all-of-picture-id.ts @@ -18,7 +18,7 @@ import { PictureData } from './picture-data'; // May contain unused imports in some cases // @ts-ignore -import { PictureDataPictures } from './picture-data-pictures'; +import { PictureDataWithIDPictures } from './picture-data-with-idpictures'; // May contain unused imports in some cases // @ts-ignore import { PictureDataWithValue } from './picture-data-with-value'; diff --git a/src/versions/v1/models/base-organization-item-with-edit-name-flag-all-of.ts b/src/versions/v1/models/base-organization-item-with-edit-name-flag-all-of.ts deleted file mode 100644 index 286c7c1e..00000000 --- a/src/versions/v1/models/base-organization-item-with-edit-name-flag-all-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BaseOrganizationItemWithEditNameFlagAllOf -*/ -export interface BaseOrganizationItemWithEditNameFlagAllOf { - /** - * If the company ID of the organization and company ID of the request is same or not - * @type {boolean} - */ - 'edit_name'?: boolean; -} - diff --git a/src/versions/v1/models/base-organization-item-with-edit-name-flag.ts b/src/versions/v1/models/base-organization-item-with-edit-name-flag.ts deleted file mode 100644 index aead77bb..00000000 --- a/src/versions/v1/models/base-organization-item-with-edit-name-flag.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItem } from './base-organization-item'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItemAllOfPictureId } from './base-organization-item-all-of-picture-id'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItemWithEditNameFlagAllOf } from './base-organization-item-with-edit-name-flag-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { Owner } from './owner'; - -/** - * @type BaseOrganizationItemWithEditNameFlag - * @export - */ -export type BaseOrganizationItemWithEditNameFlag = BaseOrganizationItem & BaseOrganizationItemWithEditNameFlagAllOf; - - diff --git a/src/versions/v1/models/base-pipeline-with-selected-flag-all-of.ts b/src/versions/v1/models/base-pipeline-with-selected-flag-all-of.ts deleted file mode 100644 index b74e7453..00000000 --- a/src/versions/v1/models/base-pipeline-with-selected-flag-all-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BasePipelineWithSelectedFlagAllOf -*/ -export interface BasePipelineWithSelectedFlagAllOf { - /** - * A boolean that shows if the pipeline is selected from a filter or not - * @type {boolean} - */ - 'selected'?: boolean; -} - diff --git a/src/versions/v1/models/base-pipeline-with-selected-flag.ts b/src/versions/v1/models/base-pipeline-with-selected-flag.ts deleted file mode 100644 index 32207af0..00000000 --- a/src/versions/v1/models/base-pipeline-with-selected-flag.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasePipeline } from './base-pipeline'; -// May contain unused imports in some cases -// @ts-ignore -import { BasePipelineWithSelectedFlagAllOf } from './base-pipeline-with-selected-flag-all-of'; - -/** - * @type BasePipelineWithSelectedFlag - * @export - */ -export type BasePipelineWithSelectedFlag = BasePipeline & BasePipelineWithSelectedFlagAllOf; - - diff --git a/src/versions/v1/models/base-pipeline1.ts b/src/versions/v1/models/base-pipeline1.ts deleted file mode 100644 index 5bfa65ef..00000000 --- a/src/versions/v1/models/base-pipeline1.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The pipeline object -* @export -* @interface BasePipeline1 -*/ -export interface BasePipeline1 { - /** - * The ID of the pipeline - * @type {number} - */ - 'id'?: number; - /** - * The name of the pipeline - * @type {string} - */ - 'name'?: string; - /** - * The pipeline title displayed in the URL - * @type {string} - */ - 'url_title'?: string; - /** - * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. - * @type {number} - */ - 'order_nr'?: number; - /** - * Whether this pipeline will be made inactive (hidden) or active - * @type {boolean} - */ - 'active'?: boolean; - /** - * Whether deal probability is disabled or enabled for this pipeline - * @type {boolean} - */ - 'deal_probability'?: boolean; - /** - * The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'add_time'?: string; - /** - * The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'update_time'?: string; -} - diff --git a/src/versions/v1/models/base-product.ts b/src/versions/v1/models/base-product.ts deleted file mode 100644 index e855dcbe..00000000 --- a/src/versions/v1/models/base-product.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BaseProduct -*/ -export interface BaseProduct { - /** - * The ID of the product - * @type {number} - */ - 'id'?: number; - /** - * The name of the product - * @type {string} - */ - 'name'?: string; - /** - * The product code - * @type {string} - */ - 'code'?: string; - /** - * The unit in which this product is sold - * @type {string} - */ - 'unit'?: string; - /** - * The tax percentage - * @type {number} - */ - 'tax'?: number; - /** - * Whether this product is active or not - * @type {boolean} - */ - 'active_flag'?: boolean; - /** - * Whether this product is selected in deals or not - * @type {boolean} - */ - 'selectable'?: boolean; - /** - * - * @type {string} - */ - 'visible_to'?: BaseProductVisibleToConst; - /** - * Information about the Pipedrive user who owns the product - * @type {object} - */ - 'owner_id'?: object; - /** - * Only available in Growth and above plans How often a customer is billed for access to a service or product - * @type {string} - */ - 'billing_frequency'?: BaseProductBillingFrequencyConst; - /** - * Only available in Growth and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field is always `null` When `billing_frequency` is set to `weekly`, this field cannot be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 208 - * @type {number} - */ - 'billing_frequency_cycles'?: number | null; -} - - export const BaseProductVisibleToConst = { - _1: '1', - _3: '3', - _5: '5', - _7: '7' - } as const; - - export type BaseProductVisibleToConst = typeof BaseProductVisibleToConst[keyof typeof BaseProductVisibleToConst]; - export const BaseProductBillingFrequencyConst = { - one_time: 'one-time', - annually: 'annually', - semi_annually: 'semi-annually', - quarterly: 'quarterly', - monthly: 'monthly', - weekly: 'weekly' - } as const; - - export type BaseProductBillingFrequencyConst = typeof BaseProductBillingFrequencyConst[keyof typeof BaseProductBillingFrequencyConst]; - - diff --git a/src/versions/v1/models/base-response1.ts b/src/versions/v1/models/base-response1.ts deleted file mode 100644 index aebe89e4..00000000 --- a/src/versions/v1/models/base-response1.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BaseResponse1 -*/ -export interface BaseResponse1 { - /** - * - * @type {Array} - */ - 'data'?: Array; -} - diff --git a/src/versions/v1/models/base-stage1.ts b/src/versions/v1/models/base-stage1.ts deleted file mode 100644 index d735daf1..00000000 --- a/src/versions/v1/models/base-stage1.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* Updated stage object -* @export -* @interface BaseStage1 -*/ -export interface BaseStage1 { - /** - * The ID of the stage - * @type {number} - */ - 'id'?: number; - /** - * Defines the order of the stage - * @type {number} - */ - 'order_nr'?: number; - /** - * The name of the stage - * @type {string} - */ - 'name'?: string; - /** - * Whether the stage is active or deleted - * @type {boolean} - */ - 'active_flag'?: boolean; - /** - * The success probability percentage of the deal. Used/shown when the deal weighted values are used. - * @type {number} - */ - 'deal_probability'?: number; - /** - * The ID of the pipeline to add the stage to - * @type {number} - */ - 'pipeline_id'?: number; - /** - * Whether deals in this stage can become rotten - * @type {boolean} - */ - 'rotten_flag'?: boolean; - /** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @type {number} - */ - 'rotten_days'?: number; - /** - * The stage creation time. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'add_time'?: string; - /** - * The stage update time. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'update_time'?: string; -} - diff --git a/src/versions/v1/models/basic-deal-product-request-all-of.ts b/src/versions/v1/models/basic-deal-product-request-all-of.ts deleted file mode 100644 index 5ee68a06..00000000 --- a/src/versions/v1/models/basic-deal-product-request-all-of.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BasicDealProductRequestAllOf -*/ -export interface BasicDealProductRequestAllOf { - /** - * The ID of the product to use - * @type {number} - */ - 'product_id'?: number; - /** - * The price at which this product will be added to the deal - * @type {number} - */ - 'item_price'?: number; - /** - * Quantity – e.g. how many items of this product will be added to the deal - * @type {number} - */ - 'quantity'?: number; - /** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @type {number} - */ - 'discount'?: number; - /** - * The type of the discount\'s value - * @type {string} - */ - 'discount_type'?: BasicDealProductRequestAllOfDiscountTypeConst; - /** - * The ID of the product variation to use. When omitted, no variation will be used - * @type {number} - */ - 'product_variation_id'?: number | null; - /** - * A textual comment associated with this product-deal attachment - * @type {string} - */ - 'comments'?: string; - /** - * The tax percentage - * @type {number} - */ - 'tax'?: number; - /** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal - * @type {string} - */ - 'tax_method'?: BasicDealProductRequestAllOfTaxMethodConst; - /** - * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default - * @type {boolean} - */ - 'enabled_flag'?: boolean; -} - - export const BasicDealProductRequestAllOfDiscountTypeConst = { - percentage: 'percentage', - amount: 'amount' - } as const; - - export type BasicDealProductRequestAllOfDiscountTypeConst = typeof BasicDealProductRequestAllOfDiscountTypeConst[keyof typeof BasicDealProductRequestAllOfDiscountTypeConst]; - export const BasicDealProductRequestAllOfTaxMethodConst = { - exclusive: 'exclusive', - inclusive: 'inclusive', - none: 'none' - } as const; - - export type BasicDealProductRequestAllOfTaxMethodConst = typeof BasicDealProductRequestAllOfTaxMethodConst[keyof typeof BasicDealProductRequestAllOfTaxMethodConst]; - - diff --git a/src/versions/v1/models/basic-deal-product-request.ts b/src/versions/v1/models/basic-deal-product-request.ts deleted file mode 100644 index 876c16fa..00000000 --- a/src/versions/v1/models/basic-deal-product-request.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddDealProductRequestAllOf } from './add-deal-product-request-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { AddDealProductRequestAllOf1 } from './add-deal-product-request-all-of1'; -// May contain unused imports in some cases -// @ts-ignore -import { AddDealProductRequestAllOf2 } from './add-deal-product-request-all-of2'; -// May contain unused imports in some cases -// @ts-ignore -import { BasicDealProductRequestAllOf } from './basic-deal-product-request-all-of'; - -/** - * @type BasicDealProductRequest - * @export - */ -export type BasicDealProductRequest = AddDealProductRequestAllOf & AddDealProductRequestAllOf1 & AddDealProductRequestAllOf2 & BasicDealProductRequestAllOf; - - diff --git a/src/versions/v1/models/basic-deal.ts b/src/versions/v1/models/basic-deal.ts deleted file mode 100644 index e70ac1dd..00000000 --- a/src/versions/v1/models/basic-deal.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BasicDeal -*/ -export interface BasicDeal { - [key: string]: any | any; - - /** - * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. - * @type {string} - */ - 'won_time'?: string; - /** - * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. - * @type {string} - */ - 'lost_time'?: string; - /** - * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'close_time'?: string | null; - /** - * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. - * @type {string} - */ - 'expected_close_date'?: string; - /** - * The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. - * @type {number} - */ - 'probability'?: number; - /** - * The optional message about why the deal was lost (to be used when status = lost) - * @type {string} - */ - 'lost_reason'?: string; - /** - * - * @type {string} - */ - 'visible_to'?: BasicDealVisibleToConst; -} - - export const BasicDealVisibleToConst = { - _1: '1', - _3: '3', - _5: '5', - _7: '7' - } as const; - - export type BasicDealVisibleToConst = typeof BasicDealVisibleToConst[keyof typeof BasicDealVisibleToConst]; - - diff --git a/src/versions/v1/models/basic-deal1.ts b/src/versions/v1/models/basic-deal1.ts deleted file mode 100644 index a7fdc2f2..00000000 --- a/src/versions/v1/models/basic-deal1.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BasicDeal1 -*/ -export interface BasicDeal1 { - [key: string]: any | any; - - /** - * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. - * @type {string} - */ - 'won_time'?: string; - /** - * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. - * @type {string} - */ - 'lost_time'?: string; - /** - * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'close_time'?: string | null; - /** - * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. - * @type {string} - */ - 'expected_close_date'?: string; - /** - * The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. - * @type {number} - */ - 'probability'?: number; - /** - * The optional message about why the deal was lost (to be used when status = lost) - * @type {string} - */ - 'lost_reason'?: string; - /** - * - * @type {string} - */ - 'visible_to'?: BasicDeal1VisibleToConst; -} - - export const BasicDeal1VisibleToConst = { - _1: '1', - _3: '3', - _5: '5', - _7: '7' - } as const; - - export type BasicDeal1VisibleToConst = typeof BasicDeal1VisibleToConst[keyof typeof BasicDeal1VisibleToConst]; - - diff --git a/src/versions/v1/models/basic-organization.ts b/src/versions/v1/models/basic-organization.ts deleted file mode 100644 index bdb7e212..00000000 --- a/src/versions/v1/models/basic-organization.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BasicOrganization -*/ -export interface BasicOrganization { - [key: string]: any | any; - - /** - * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. - * @type {number} - */ - 'owner_id'?: number; - /** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @type {number} - */ - 'label'?: number; - /** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @type {Array} - */ - 'label_ids'?: Array; - /** - * - * @type {string} - */ - 'visible_to'?: BasicOrganizationVisibleToConst; -} - - export const BasicOrganizationVisibleToConst = { - _1: '1', - _3: '3', - _5: '5', - _7: '7' - } as const; - - export type BasicOrganizationVisibleToConst = typeof BasicOrganizationVisibleToConst[keyof typeof BasicOrganizationVisibleToConst]; - - diff --git a/src/versions/v1/models/basic-organization1.ts b/src/versions/v1/models/basic-organization1.ts deleted file mode 100644 index 4fddfdd7..00000000 --- a/src/versions/v1/models/basic-organization1.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BasicOrganization1 -*/ -export interface BasicOrganization1 { - [key: string]: any | any; - - /** - * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. - * @type {number} - */ - 'owner_id'?: number; - /** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @type {number} - */ - 'label'?: number; - /** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @type {Array} - */ - 'label_ids'?: Array; - /** - * - * @type {string} - */ - 'visible_to'?: BasicOrganization1VisibleToConst; -} - - export const BasicOrganization1VisibleToConst = { - _1: '1', - _3: '3', - _5: '5', - _7: '7' - } as const; - - export type BasicOrganization1VisibleToConst = typeof BasicOrganization1VisibleToConst[keyof typeof BasicOrganization1VisibleToConst]; - - diff --git a/src/versions/v1/models/basic-person-request-email-inner.ts b/src/versions/v1/models/basic-person-request-email-inner.ts deleted file mode 100644 index bd4e5cf0..00000000 --- a/src/versions/v1/models/basic-person-request-email-inner.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BasicPersonRequestEmailInner -*/ -export interface BasicPersonRequestEmailInner { - /** - * The email - * @type {string} - */ - 'value'?: string; - /** - * Boolean that indicates if email is primary for the person or not - * @type {boolean} - */ - 'primary'?: boolean; - /** - * The label that indicates the type of the email. (Possible values - work, home or other) - * @type {string} - */ - 'label'?: string; -} - diff --git a/src/versions/v1/models/basic-person-request.ts b/src/versions/v1/models/basic-person-request.ts deleted file mode 100644 index 8cc4c8cc..00000000 --- a/src/versions/v1/models/basic-person-request.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasicPersonRequestEmailInner } from './basic-person-request-email-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { DealParticipantItemPersonIdPhoneInner } from './deal-participant-item-person-id-phone-inner'; - -/** -* -* @export -* @interface BasicPersonRequest -*/ -export interface BasicPersonRequest { - /** - * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. - * @type {number} - */ - 'owner_id'?: number; - /** - * The ID of the organization this person will belong to - * @type {number} - */ - 'org_id'?: number; - /** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. - * @type {Array} - */ - 'email'?: Array; - /** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @type {Array} - */ - 'phone'?: Array; - /** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @type {number} - */ - 'label'?: number; - /** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @type {Array} - */ - 'label_ids'?: Array; - /** - * - * @type {string} - */ - 'visible_to'?: BasicPersonRequestVisibleToConst; - /** - * - * @type {string} - */ - 'marketing_status'?: BasicPersonRequestMarketingStatusConst; - /** - * The optional creation date & time of the person in UTC. Format: YYYY-MM-DD HH:MM:SS - * @type {string} - */ - 'add_time'?: string; -} - - export const BasicPersonRequestVisibleToConst = { - _1: '1', - _3: '3', - _5: '5', - _7: '7' - } as const; - - export type BasicPersonRequestVisibleToConst = typeof BasicPersonRequestVisibleToConst[keyof typeof BasicPersonRequestVisibleToConst]; - export const BasicPersonRequestMarketingStatusConst = { - no_consent: 'no_consent', - unsubscribed: 'unsubscribed', - subscribed: 'subscribed', - archived: 'archived' - } as const; - - export type BasicPersonRequestMarketingStatusConst = typeof BasicPersonRequestMarketingStatusConst[keyof typeof BasicPersonRequestMarketingStatusConst]; - - diff --git a/src/versions/v1/models/cancel-recurring-subscription-request.ts b/src/versions/v1/models/cancel-recurring-subscription-request.ts deleted file mode 100644 index 14121cce..00000000 --- a/src/versions/v1/models/cancel-recurring-subscription-request.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface CancelRecurringSubscriptionRequest -*/ -export interface CancelRecurringSubscriptionRequest { - /** - * The subscription termination date. All payments after the specified date will be deleted. The end_date of the subscription will be set to the due date of the payment to follow the specified date. Default value is the current date. - * @type {string} - */ - 'end_date'?: string; -} - diff --git a/src/versions/v1/models/deal-collection-response-object.ts b/src/versions/v1/models/deal-collection-response-object.ts deleted file mode 100644 index 6deeed81..00000000 --- a/src/versions/v1/models/deal-collection-response-object.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DealCollectionResponseObject -*/ -export interface DealCollectionResponseObject { - /** - * The ID of the deal - * @type {number} - */ - 'id': number; - /** - * The ID of the deal creator - * @type {number} - */ - 'creator_user_id': number; - /** - * The ID of the user - * @type {number} - */ - 'user_id': number; - /** - * The ID of the person associated with the deal - * @type {number} - */ - 'person_id': number; - /** - * The ID of the organization associated with the deal - * @type {number} - */ - 'org_id': number; - /** - * The ID of the deal stage - * @type {number} - */ - 'stage_id': number; - /** - * The title of the deal - * @type {string} - */ - 'title': string; - /** - * The value of the deal - * @type {number} - */ - 'value': number; - /** - * The currency associated with the deal - * @type {string} - */ - 'currency': string; - /** - * The creation date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'add_time': string; - /** - * The last update date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'update_time': string; - /** - * The status of the deal - * @type {string} - */ - 'status': string; - /** - * The success probability percentage of the deal - * @type {number} - */ - 'probability': number | null; - /** - * The reason for losing the deal - * @type {string} - */ - 'lost_reason': string | null; - /** - * The visibility of the deal - * @type {string} - */ - 'visible_to': string; - /** - * The date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'close_time': string | null; - /** - * The ID of the pipeline associated with the deal - * @type {number} - */ - 'pipeline_id': number; - /** - * The date and time of changing the deal status to won in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'won_time': string; - /** - * The date and time of changing the deal status to lost in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @type {string} - */ - 'lost_time': string; - /** - * The expected close date of the deal - * @type {string} - */ - 'expected_close_date': string; - /** - * The label or multiple labels assigned to the deal - * @type {string} - */ - 'label': string; -} - diff --git a/src/versions/v1/models/deal-non-strict-with-details-all-of-age.ts b/src/versions/v1/models/deal-non-strict-with-details-all-of-age.ts deleted file mode 100644 index f1d653e0..00000000 --- a/src/versions/v1/models/deal-non-strict-with-details-all-of-age.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The lifetime of the deal -* @export -* @interface DealNonStrictWithDetailsAllOfAge -*/ -export interface DealNonStrictWithDetailsAllOfAge { - /** - * Years - * @type {number} - */ - 'y'?: number; - /** - * Months - * @type {number} - */ - 'm'?: number; - /** - * Days - * @type {number} - */ - 'd'?: number; - /** - * Hours - * @type {number} - */ - 'h'?: number; - /** - * Minutes - * @type {number} - */ - 'i'?: number; - /** - * Seconds - * @type {number} - */ - 's'?: number; - /** - * The total time in seconds - * @type {number} - */ - 'total_seconds'?: number; -} - diff --git a/src/versions/v1/models/deal-non-strict-with-details-all-of-average-time-to-won.ts b/src/versions/v1/models/deal-non-strict-with-details-all-of-average-time-to-won.ts deleted file mode 100644 index 805c5681..00000000 --- a/src/versions/v1/models/deal-non-strict-with-details-all-of-average-time-to-won.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The average time to win the deal -* @export -* @interface DealNonStrictWithDetailsAllOfAverageTimeToWon -*/ -export interface DealNonStrictWithDetailsAllOfAverageTimeToWon { - /** - * Years - * @type {number} - */ - 'y'?: number; - /** - * Months - * @type {number} - */ - 'm'?: number; - /** - * Days - * @type {number} - */ - 'd'?: number; - /** - * Hours - * @type {number} - */ - 'h'?: number; - /** - * Minutes - * @type {number} - */ - 'i'?: number; - /** - * Seconds - * @type {number} - */ - 's'?: number; - /** - * The total time in seconds - * @type {number} - */ - 'total_seconds'?: number; -} - diff --git a/src/versions/v1/models/deal-non-strict-with-details-all-of-stay-in-pipeline-stages.ts b/src/versions/v1/models/deal-non-strict-with-details-all-of-stay-in-pipeline-stages.ts deleted file mode 100644 index 9e3a1413..00000000 --- a/src/versions/v1/models/deal-non-strict-with-details-all-of-stay-in-pipeline-stages.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The details of the duration of the deal being in each stage of the pipeline -* @export -* @interface DealNonStrictWithDetailsAllOfStayInPipelineStages -*/ -export interface DealNonStrictWithDetailsAllOfStayInPipelineStages { - /** - * The number of seconds a deal has been in each stage of the pipeline - * @type {object} - */ - 'times_in_stages'?: object; - /** - * The order of the deal progression through the pipeline stages - * @type {Array} - */ - 'order_of_stages'?: Array; -} - diff --git a/src/versions/v1/models/deal-non-strict-with-details-all-of.ts b/src/versions/v1/models/deal-non-strict-with-details-all-of.ts deleted file mode 100644 index 91e77cdc..00000000 --- a/src/versions/v1/models/deal-non-strict-with-details-all-of.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DealNonStrictWithDetailsAllOfAge } from './deal-non-strict-with-details-all-of-age'; -// May contain unused imports in some cases -// @ts-ignore -import { DealNonStrictWithDetailsAllOfAverageTimeToWon } from './deal-non-strict-with-details-all-of-average-time-to-won'; -// May contain unused imports in some cases -// @ts-ignore -import { DealNonStrictWithDetailsAllOfStayInPipelineStages } from './deal-non-strict-with-details-all-of-stay-in-pipeline-stages'; - -/** -* -* @export -* @interface DealNonStrictWithDetailsAllOf -*/ -export interface DealNonStrictWithDetailsAllOf { - /** - * - * @type {DealNonStrictWithDetailsAllOfAverageTimeToWon} - */ - 'average_time_to_won'?: DealNonStrictWithDetailsAllOfAverageTimeToWon; - /** - * The average of the deal stage progression - * @type {number} - */ - 'average_stage_progress'?: number; - /** - * - * @type {DealNonStrictWithDetailsAllOfAge} - */ - 'age'?: DealNonStrictWithDetailsAllOfAge; - /** - * - * @type {DealNonStrictWithDetailsAllOfStayInPipelineStages} - */ - 'stay_in_pipeline_stages'?: DealNonStrictWithDetailsAllOfStayInPipelineStages; - /** - * The details of the last activity associated with the deal - * @type {object} - */ - 'last_activity'?: object | null; - /** - * The details of the next activity associated with the deal - * @type {object} - */ - 'next_activity'?: object | null; -} - diff --git a/src/versions/v1/models/deal-non-strict-with-details.ts b/src/versions/v1/models/deal-non-strict-with-details.ts deleted file mode 100644 index 7e625ddb..00000000 --- a/src/versions/v1/models/deal-non-strict-with-details.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Deal } from './deal'; -// May contain unused imports in some cases -// @ts-ignore -import { DealAllOfCreatorUserId } from './deal-all-of-creator-user-id'; -// May contain unused imports in some cases -// @ts-ignore -import { DealNonStrictWithDetailsAllOf } from './deal-non-strict-with-details-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { DealNonStrictWithDetailsAllOfAge } from './deal-non-strict-with-details-all-of-age'; -// May contain unused imports in some cases -// @ts-ignore -import { DealNonStrictWithDetailsAllOfAverageTimeToWon } from './deal-non-strict-with-details-all-of-average-time-to-won'; -// May contain unused imports in some cases -// @ts-ignore -import { DealNonStrictWithDetailsAllOfStayInPipelineStages } from './deal-non-strict-with-details-all-of-stay-in-pipeline-stages'; -// May contain unused imports in some cases -// @ts-ignore -import { DealOrganizationDataWithId } from './deal-organization-data-with-id'; -// May contain unused imports in some cases -// @ts-ignore -import { DealPersonDataWithId } from './deal-person-data-with-id'; -// May contain unused imports in some cases -// @ts-ignore -import { DealUserDataWithId } from './deal-user-data-with-id'; - -/** - * @type DealNonStrictWithDetails - * @export - */ -export type DealNonStrictWithDetails = Deal & DealNonStrictWithDetailsAllOf; - - diff --git a/src/versions/v1/models/deal-product-request-body.ts b/src/versions/v1/models/deal-product-request-body.ts deleted file mode 100644 index 537567c1..00000000 --- a/src/versions/v1/models/deal-product-request-body.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DealProductRequestBody -*/ -export interface DealProductRequestBody { - /** - * The ID of the product to use - * @type {number} - */ - 'product_id': number; - /** - * The price at which this product will be added to the deal - * @type {number} - */ - 'item_price': number; - /** - * How many items of this product will be added to the deal - * @type {number} - */ - 'quantity': number; - /** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @type {number} - */ - 'discount'?: number; - /** - * The type of the discount\'s value - * @type {string} - */ - 'discount_type'?: DealProductRequestBodyDiscountTypeConst; - /** - * The ID of the product variation to use. When omitted, no variation will be used - * @type {number} - */ - 'product_variation_id'?: number; - /** - * A textual comment associated with this product-deal attachment - * @type {string} - */ - 'comments'?: string; - /** - * The tax percentage - * @type {number} - */ - 'tax'?: number; - /** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount - * @type {string} - */ - 'tax_method'?: DealProductRequestBodyTaxMethodConst; - /** - * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring - * @type {boolean} - */ - 'enabled_flag'?: boolean; -} - - export const DealProductRequestBodyDiscountTypeConst = { - percentage: 'percentage', - amount: 'amount' - } as const; - - export type DealProductRequestBodyDiscountTypeConst = typeof DealProductRequestBodyDiscountTypeConst[keyof typeof DealProductRequestBodyDiscountTypeConst]; - export const DealProductRequestBodyTaxMethodConst = { - exclusive: 'exclusive', - inclusive: 'inclusive', - none: 'none' - } as const; - - export type DealProductRequestBodyTaxMethodConst = typeof DealProductRequestBodyTaxMethodConst[keyof typeof DealProductRequestBodyTaxMethodConst]; - - diff --git a/src/versions/v1/models/deal-product-request-body1.ts b/src/versions/v1/models/deal-product-request-body1.ts deleted file mode 100644 index 553d8c75..00000000 --- a/src/versions/v1/models/deal-product-request-body1.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DealProductRequestBody1 -*/ -export interface DealProductRequestBody1 { - /** - * The ID of the product to use - * @type {number} - */ - 'product_id'?: number; - /** - * The price at which this product will be added to the deal - * @type {number} - */ - 'item_price'?: number; - /** - * How many items of this product will be added to the deal - * @type {number} - */ - 'quantity'?: number; - /** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @type {number} - */ - 'discount'?: number; - /** - * The type of the discount\'s value - * @type {string} - */ - 'discount_type'?: DealProductRequestBody1DiscountTypeConst; - /** - * The ID of the product variation to use. When omitted, no variation will be used - * @type {number} - */ - 'product_variation_id'?: number; - /** - * A textual comment associated with this product-deal attachment - * @type {string} - */ - 'comments'?: string; - /** - * The tax percentage - * @type {number} - */ - 'tax'?: number; - /** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount - * @type {string} - */ - 'tax_method'?: DealProductRequestBody1TaxMethodConst; - /** - * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring - * @type {boolean} - */ - 'enabled_flag'?: boolean; -} - - export const DealProductRequestBody1DiscountTypeConst = { - percentage: 'percentage', - amount: 'amount' - } as const; - - export type DealProductRequestBody1DiscountTypeConst = typeof DealProductRequestBody1DiscountTypeConst[keyof typeof DealProductRequestBody1DiscountTypeConst]; - export const DealProductRequestBody1TaxMethodConst = { - exclusive: 'exclusive', - inclusive: 'inclusive', - none: 'none' - } as const; - - export type DealProductRequestBody1TaxMethodConst = typeof DealProductRequestBody1TaxMethodConst[keyof typeof DealProductRequestBody1TaxMethodConst]; - - diff --git a/src/versions/v1/models/deal-title-param.ts b/src/versions/v1/models/deal-title-param.ts deleted file mode 100644 index 1c58b3f3..00000000 --- a/src/versions/v1/models/deal-title-param.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DealTitleParam -*/ -export interface DealTitleParam { - /** - * The title of the deal - * @type {string} - */ - 'title'?: string; -} - diff --git a/src/versions/v1/models/delete-activities-response-data.ts b/src/versions/v1/models/delete-activities-response-data.ts deleted file mode 100644 index 3ed139a3..00000000 --- a/src/versions/v1/models/delete-activities-response-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeleteActivitiesResponseData -*/ -export interface DeleteActivitiesResponseData { - /** - * An array of the IDs of activities that were deleted - * @type {Array} - */ - 'id'?: Array; -} - diff --git a/src/versions/v1/models/delete-activities-response.ts b/src/versions/v1/models/delete-activities-response.ts deleted file mode 100644 index 39fd5a6a..00000000 --- a/src/versions/v1/models/delete-activities-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteActivitiesResponseData } from './delete-activities-response-data'; - -/** -* -* @export -* @interface DeleteActivitiesResponse -*/ -export interface DeleteActivitiesResponse { - /** - * - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {DeleteActivitiesResponseData} - */ - 'data'?: DeleteActivitiesResponseData; -} - diff --git a/src/versions/v1/models/delete-activity-response-data.ts b/src/versions/v1/models/delete-activity-response-data.ts deleted file mode 100644 index a1c4c174..00000000 --- a/src/versions/v1/models/delete-activity-response-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeleteActivityResponseData -*/ -export interface DeleteActivityResponseData { - /** - * The ID of the activity that was deleted - * @type {number} - */ - 'id'?: number; -} - diff --git a/src/versions/v1/models/delete-activity-response.ts b/src/versions/v1/models/delete-activity-response.ts deleted file mode 100644 index 6d1a677f..00000000 --- a/src/versions/v1/models/delete-activity-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteActivityResponseData } from './delete-activity-response-data'; - -/** -* -* @export -* @interface DeleteActivityResponse -*/ -export interface DeleteActivityResponse { - /** - * - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {DeleteActivityResponseData} - */ - 'data'?: DeleteActivityResponseData; -} - diff --git a/src/versions/v1/models/delete-activity-types-response-all-of-data.ts b/src/versions/v1/models/delete-activity-types-response-all-of-data.ts deleted file mode 100644 index 122c2707..00000000 --- a/src/versions/v1/models/delete-activity-types-response-all-of-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeleteActivityTypesResponseAllOfData -*/ -export interface DeleteActivityTypesResponseAllOfData { - /** - * The IDs of the deleted activity types - * @type {Array} - */ - 'id'?: Array; -} - diff --git a/src/versions/v1/models/delete-activity-types-response-all-of.ts b/src/versions/v1/models/delete-activity-types-response-all-of.ts deleted file mode 100644 index c126cf67..00000000 --- a/src/versions/v1/models/delete-activity-types-response-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteActivityTypesResponseAllOfData } from './delete-activity-types-response-all-of-data'; - -/** -* -* @export -* @interface DeleteActivityTypesResponseAllOf -*/ -export interface DeleteActivityTypesResponseAllOf { - /** - * - * @type {DeleteActivityTypesResponseAllOfData} - */ - 'data': DeleteActivityTypesResponseAllOfData; -} - diff --git a/src/versions/v1/models/delete-activity-types-response.ts b/src/versions/v1/models/delete-activity-types-response.ts deleted file mode 100644 index b2b96310..00000000 --- a/src/versions/v1/models/delete-activity-types-response.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { DeleteActivityTypesResponseAllOf } from './delete-activity-types-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { DeleteActivityTypesResponseAllOfData } from './delete-activity-types-response-all-of-data'; - -/** - * @type DeleteActivityTypesResponse - * @export - */ -export type DeleteActivityTypesResponse = BaseResponse & DeleteActivityTypesResponseAllOf; - - diff --git a/src/versions/v1/models/delete-deal-product-response-data.ts b/src/versions/v1/models/delete-deal-product-response-data.ts deleted file mode 100644 index 193ac513..00000000 --- a/src/versions/v1/models/delete-deal-product-response-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeleteDealProductResponseData -*/ -export interface DeleteDealProductResponseData { - /** - * The ID of an attached product that was deleted from the deal - * @type {number} - */ - 'id'?: number; -} - diff --git a/src/versions/v1/models/delete-deal-product-response.ts b/src/versions/v1/models/delete-deal-product-response.ts deleted file mode 100644 index f518b911..00000000 --- a/src/versions/v1/models/delete-deal-product-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteDealProductResponseData } from './delete-deal-product-response-data'; - -/** -* -* @export -* @interface DeleteDealProductResponse -*/ -export interface DeleteDealProductResponse { - /** - * If the request was successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {DeleteDealProductResponseData} - */ - 'data'?: DeleteDealProductResponseData; -} - diff --git a/src/versions/v1/models/delete-deal-response-data.ts b/src/versions/v1/models/delete-deal-response-data.ts deleted file mode 100644 index 3f79151f..00000000 --- a/src/versions/v1/models/delete-deal-response-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeleteDealResponseData -*/ -export interface DeleteDealResponseData { - /** - * The ID of the deal that was deleted - * @type {number} - */ - 'id'?: number; -} - diff --git a/src/versions/v1/models/delete-deal-response.ts b/src/versions/v1/models/delete-deal-response.ts deleted file mode 100644 index b306ba82..00000000 --- a/src/versions/v1/models/delete-deal-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteDealResponseData } from './delete-deal-response-data'; - -/** -* -* @export -* @interface DeleteDealResponse -*/ -export interface DeleteDealResponse { - /** - * If the request was successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {DeleteDealResponseData} - */ - 'data'?: DeleteDealResponseData; -} - diff --git a/src/versions/v1/models/delete-deals-response-data.ts b/src/versions/v1/models/delete-deals-response-data.ts deleted file mode 100644 index b2126127..00000000 --- a/src/versions/v1/models/delete-deals-response-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeleteDealsResponseData -*/ -export interface DeleteDealsResponseData { - /** - * The list of deleted deals IDs - * @type {Array} - */ - 'id'?: Array; -} - diff --git a/src/versions/v1/models/delete-deals-response.ts b/src/versions/v1/models/delete-deals-response.ts deleted file mode 100644 index 6fbc8d6a..00000000 --- a/src/versions/v1/models/delete-deals-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteDealsResponseData } from './delete-deals-response-data'; - -/** -* -* @export -* @interface DeleteDealsResponse -*/ -export interface DeleteDealsResponse { - /** - * If the response is successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {DeleteDealsResponseData} - */ - 'data'?: DeleteDealsResponseData; -} - diff --git a/src/versions/v1/models/delete-organization-response-data.ts b/src/versions/v1/models/delete-organization-response-data.ts deleted file mode 100644 index d8063892..00000000 --- a/src/versions/v1/models/delete-organization-response-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeleteOrganizationResponseData -*/ -export interface DeleteOrganizationResponseData { - /** - * The ID of the organization that was deleted - * @type {number} - */ - 'id'?: number; -} - diff --git a/src/versions/v1/models/delete-organization-response.ts b/src/versions/v1/models/delete-organization-response.ts deleted file mode 100644 index 95c8a9dd..00000000 --- a/src/versions/v1/models/delete-organization-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteOrganizationResponseData } from './delete-organization-response-data'; - -/** -* -* @export -* @interface DeleteOrganizationResponse -*/ -export interface DeleteOrganizationResponse { - /** - * If the request was successful or not - * @type {boolean} - */ - 'success': boolean; - /** - * - * @type {DeleteOrganizationResponseData} - */ - 'data': DeleteOrganizationResponseData; -} - diff --git a/src/versions/v1/models/delete-organizations-response-data.ts b/src/versions/v1/models/delete-organizations-response-data.ts deleted file mode 100644 index 0d921506..00000000 --- a/src/versions/v1/models/delete-organizations-response-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeleteOrganizationsResponseData -*/ -export interface DeleteOrganizationsResponseData { - /** - * The IDs of the organizations that were deleted - * @type {Array} - */ - 'id'?: Array; -} - diff --git a/src/versions/v1/models/delete-organizations-response.ts b/src/versions/v1/models/delete-organizations-response.ts deleted file mode 100644 index ab44df6a..00000000 --- a/src/versions/v1/models/delete-organizations-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteOrganizationsResponseData } from './delete-organizations-response-data'; - -/** -* -* @export -* @interface DeleteOrganizationsResponse -*/ -export interface DeleteOrganizationsResponse { - /** - * If the request was successful or not - * @type {boolean} - */ - 'success': boolean; - /** - * - * @type {DeleteOrganizationsResponseData} - */ - 'data': DeleteOrganizationsResponseData; -} - diff --git a/src/versions/v1/models/delete-persons-response-all-of-data.ts b/src/versions/v1/models/delete-persons-response-all-of-data.ts deleted file mode 100644 index c189733e..00000000 --- a/src/versions/v1/models/delete-persons-response-all-of-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeletePersonsResponseAllOfData -*/ -export interface DeletePersonsResponseAllOfData { - /** - * The list of deleted persons IDs - * @type {Array} - */ - 'id'?: Array; -} - diff --git a/src/versions/v1/models/delete-persons-response-all-of.ts b/src/versions/v1/models/delete-persons-response-all-of.ts deleted file mode 100644 index 8d8fcbf0..00000000 --- a/src/versions/v1/models/delete-persons-response-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeletePersonsResponseAllOfData } from './delete-persons-response-all-of-data'; - -/** -* -* @export -* @interface DeletePersonsResponseAllOf -*/ -export interface DeletePersonsResponseAllOf { - /** - * - * @type {DeletePersonsResponseAllOfData} - */ - 'data': DeletePersonsResponseAllOfData; -} - diff --git a/src/versions/v1/models/delete-persons-response.ts b/src/versions/v1/models/delete-persons-response.ts deleted file mode 100644 index 2e0a7875..00000000 --- a/src/versions/v1/models/delete-persons-response.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { DeletePersonsResponseAllOf } from './delete-persons-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { DeletePersonsResponseAllOfData } from './delete-persons-response-all-of-data'; - -/** - * @type DeletePersonsResponse - * @export - */ -export type DeletePersonsResponse = BaseResponse & DeletePersonsResponseAllOf; - - diff --git a/src/versions/v1/models/delete-pipeline-response-data.ts b/src/versions/v1/models/delete-pipeline-response-data.ts deleted file mode 100644 index badf0de0..00000000 --- a/src/versions/v1/models/delete-pipeline-response-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeletePipelineResponseData -*/ -export interface DeletePipelineResponseData { - /** - * Deleted Pipeline ID - * @type {number} - */ - 'id'?: number; -} - diff --git a/src/versions/v1/models/delete-pipeline-response.ts b/src/versions/v1/models/delete-pipeline-response.ts deleted file mode 100644 index f2c2a1bc..00000000 --- a/src/versions/v1/models/delete-pipeline-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeletePipelineResponseData } from './delete-pipeline-response-data'; - -/** -* -* @export -* @interface DeletePipelineResponse -*/ -export interface DeletePipelineResponse { - /** - * If the request was successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {DeletePipelineResponseData} - */ - 'data'?: DeletePipelineResponseData; -} - diff --git a/src/versions/v1/models/delete-product-field-response.ts b/src/versions/v1/models/delete-product-field-response.ts index 53a57a18..bec6b4d9 100644 --- a/src/versions/v1/models/delete-product-field-response.ts +++ b/src/versions/v1/models/delete-product-field-response.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { DeleteProductResponseData } from './delete-product-response-data'; +import { DeleteProductFollowerResponseData } from './delete-product-follower-response-data'; /** * @@ -30,8 +30,8 @@ export interface DeleteProductFieldResponse { 'success': boolean; /** * - * @type {DeleteProductResponseData} + * @type {DeleteProductFollowerResponseData} */ - 'data': DeleteProductResponseData; + 'data': DeleteProductFollowerResponseData; } diff --git a/src/versions/v1/models/delete-product-response-data.ts b/src/versions/v1/models/delete-product-follower-response-data.ts similarity index 82% rename from src/versions/v1/models/delete-product-response-data.ts rename to src/versions/v1/models/delete-product-follower-response-data.ts index a8e80641..7df51132 100644 --- a/src/versions/v1/models/delete-product-response-data.ts +++ b/src/versions/v1/models/delete-product-follower-response-data.ts @@ -17,9 +17,9 @@ /** * * @export -* @interface DeleteProductResponseData +* @interface DeleteProductFollowerResponseData */ -export interface DeleteProductResponseData { +export interface DeleteProductFollowerResponseData { /** * * @type {number} diff --git a/src/versions/v1/models/delete-product-follower-response.ts b/src/versions/v1/models/delete-product-follower-response.ts index 6c45d05f..bbc2db9e 100644 --- a/src/versions/v1/models/delete-product-follower-response.ts +++ b/src/versions/v1/models/delete-product-follower-response.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { DeleteProductResponseData } from './delete-product-response-data'; +import { DeleteProductFollowerResponseData } from './delete-product-follower-response-data'; /** * @@ -30,8 +30,8 @@ export interface DeleteProductFollowerResponse { 'success': boolean; /** * - * @type {DeleteProductResponseData} + * @type {DeleteProductFollowerResponseData} */ - 'data': DeleteProductResponseData; + 'data': DeleteProductFollowerResponseData; } diff --git a/src/versions/v1/models/delete-product-response.ts b/src/versions/v1/models/delete-product-response.ts deleted file mode 100644 index 52b70d44..00000000 --- a/src/versions/v1/models/delete-product-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteProductResponseData } from './delete-product-response-data'; - -/** -* -* @export -* @interface DeleteProductResponse -*/ -export interface DeleteProductResponse { - /** - * If the response is successful or not - * @type {boolean} - */ - 'success': boolean; - /** - * - * @type {DeleteProductResponseData} - */ - 'data': DeleteProductResponseData; -} - diff --git a/src/versions/v1/models/delete-stage-response.ts b/src/versions/v1/models/delete-stage-response.ts deleted file mode 100644 index 54221ffc..00000000 --- a/src/versions/v1/models/delete-stage-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteStageResponseData } from './delete-stage-response-data'; - -/** -* -* @export -* @interface DeleteStageResponse -*/ -export interface DeleteStageResponse { - /** - * If the request was successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {DeleteStageResponseData} - */ - 'data'?: DeleteStageResponseData; -} - diff --git a/src/versions/v1/models/delete-stages-response-data.ts b/src/versions/v1/models/delete-stages-response-data.ts deleted file mode 100644 index 71c21ea8..00000000 --- a/src/versions/v1/models/delete-stages-response-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface DeleteStagesResponseData -*/ -export interface DeleteStagesResponseData { - /** - * The list of deleted stage IDs - * @type {Array} - */ - 'id'?: Array; -} - diff --git a/src/versions/v1/models/delete-stages-response.ts b/src/versions/v1/models/delete-stages-response.ts deleted file mode 100644 index 422d2046..00000000 --- a/src/versions/v1/models/delete-stages-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DeleteStagesResponseData } from './delete-stages-response-data'; - -/** -* -* @export -* @interface DeleteStagesResponse -*/ -export interface DeleteStagesResponse { - /** - * If the request was successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {DeleteStagesResponseData} - */ - 'data'?: DeleteStagesResponseData; -} - diff --git a/src/versions/v1/models/follower-data.ts b/src/versions/v1/models/follower-data.ts deleted file mode 100644 index fad4cf00..00000000 --- a/src/versions/v1/models/follower-data.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface FollowerData -*/ -export interface FollowerData { - /** - * The name of the follower - * @type {string} - */ - 'name'?: string; - /** - * The email of the follower - * @type {string} - */ - 'email'?: string; - /** - * The user ID of the follower - * @type {number} - */ - 'user_id'?: number; - /** - * The follower picture hash - * @type {string} - */ - 'pic_hash'?: string; -} - diff --git a/src/versions/v1/models/get-activities-collection-response.ts b/src/versions/v1/models/get-activities-collection-response.ts index bc2a9ee6..a28600e2 100644 --- a/src/versions/v1/models/get-activities-collection-response.ts +++ b/src/versions/v1/models/get-activities-collection-response.ts @@ -18,7 +18,7 @@ import { ActivityCollectionResponseObject } from './activity-collection-response-object'; // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +import { GetChangelogResponseAllOfAdditionalData } from './get-changelog-response-all-of-additional-data'; /** * @@ -38,8 +38,8 @@ export interface GetActivitiesCollectionResponse { 'data'?: Array; /** * - * @type {GetActivitiesCollectionResponseAdditionalData} + * @type {GetChangelogResponseAllOfAdditionalData} */ - 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; + 'additional_data'?: GetChangelogResponseAllOfAdditionalData; } diff --git a/src/versions/v1/models/get-activities-response-additional-data.ts b/src/versions/v1/models/get-activities-response-additional-data.ts deleted file mode 100644 index f9b9d560..00000000 --- a/src/versions/v1/models/get-activities-response-additional-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalDataPagination } from './get-activities-response-additional-data-pagination'; - -/** -* -* @export -* @interface GetActivitiesResponseAdditionalData -*/ -export interface GetActivitiesResponseAdditionalData { - /** - * - * @type {GetActivitiesResponseAdditionalDataPagination} - */ - 'pagination'?: GetActivitiesResponseAdditionalDataPagination; -} - diff --git a/src/versions/v1/models/get-activities-response-related-objects-person.ts b/src/versions/v1/models/get-activities-response-related-objects-person.ts deleted file mode 100644 index 5e452982..00000000 --- a/src/versions/v1/models/get-activities-response-related-objects-person.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { PersonDataWithID } from './person-data-with-id'; - -/** -* -* @export -* @interface GetActivitiesResponseRelatedObjectsPerson -*/ -export interface GetActivitiesResponseRelatedObjectsPerson { - /** - * - * @type {PersonDataWithID} - */ - 'PERSON_ID'?: PersonDataWithID; -} - diff --git a/src/versions/v1/models/get-activities-response-related-objects.ts b/src/versions/v1/models/get-activities-response-related-objects.ts deleted file mode 100644 index e353168a..00000000 --- a/src/versions/v1/models/get-activities-response-related-objects.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjectsPerson } from './get-activities-response-related-objects-person'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; -// May contain unused imports in some cases -// @ts-ignore -import { RelatedDealData } from './related-deal-data'; -// May contain unused imports in some cases -// @ts-ignore -import { RelatedOrganizationData } from './related-organization-data'; - -/** -* -* @export -* @interface GetActivitiesResponseRelatedObjects -*/ -export interface GetActivitiesResponseRelatedObjects { - /** - * - * @type {GetActivitiesResponseRelatedObjectsUser} - */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; - /** - * - * @type {RelatedDealData} - */ - 'deal'?: RelatedDealData; - /** - * - * @type {GetActivitiesResponseRelatedObjectsPerson} - */ - 'person'?: GetActivitiesResponseRelatedObjectsPerson; - /** - * - * @type {RelatedOrganizationData} - */ - 'organization'?: RelatedOrganizationData; -} - diff --git a/src/versions/v1/models/get-activities-response.ts b/src/versions/v1/models/get-activities-response.ts deleted file mode 100644 index b0b92b82..00000000 --- a/src/versions/v1/models/get-activities-response.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Activity } from './activity'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects'; - -/** -* -* @export -* @interface GetActivitiesResponse -*/ -export interface GetActivitiesResponse { - /** - * - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {Array} - */ - 'data'?: Array; - /** - * - * @type {GetActivitiesResponseAdditionalData} - */ - 'additional_data'?: GetActivitiesResponseAdditionalData; - /** - * - * @type {GetActivitiesResponseRelatedObjects} - */ - 'related_objects'?: GetActivitiesResponseRelatedObjects; -} - diff --git a/src/versions/v1/models/get-activity-response.ts b/src/versions/v1/models/get-activity-response.ts deleted file mode 100644 index 0114fa2e..00000000 --- a/src/versions/v1/models/get-activity-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Activity } from './activity'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects'; - -/** -* -* @export -* @interface GetActivityResponse -*/ -export interface GetActivityResponse { - /** - * - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {Activity} - */ - 'data'?: Activity; - /** - * - * @type {GetActivitiesResponseRelatedObjects} - */ - 'related_objects'?: GetActivitiesResponseRelatedObjects; -} - diff --git a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of-all-of.ts b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of-all-of.ts deleted file mode 100644 index 83dd9eca..00000000 --- a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of-all-of.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetAddProductAttachmentDetailsResponseDataAllOfAllOfAllOf -*/ -export interface GetAddProductAttachmentDetailsResponseDataAllOfAllOfAllOf { - /** - * The ID of the deal-product (the ID of the product attached to the deal) - * @type {number} - */ - 'id'?: number; - /** - * The ID of the company - * @type {number} - */ - 'company_id'?: number; - /** - * The ID of the deal - * @type {number} - */ - 'deal_id'?: number; - /** - * The ID of the product - * @type {number} - */ - 'product_id'?: number; - /** - * The sum of all the products attached to the deal - * @type {number} - */ - 'sum'?: number; - /** - * The currency associated with the deal product - * @type {string} - */ - 'currency'?: string; - /** - * The date and time when the product was added to the deal - * @type {string} - */ - 'add_time'?: string; - /** - * The date and time when the deal product was last edited - * @type {string} - */ - 'last_edit'?: string; - /** - * Whether the product is active or not - * @type {boolean} - */ - 'active_flag'?: boolean; - /** - * The product tax - * @type {number} - */ - 'tax'?: number; - /** - * The product name - * @type {string} - */ - 'name'?: string; -} - diff --git a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of.ts b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of.ts deleted file mode 100644 index c9397125..00000000 --- a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasicDealProductRequest } from './basic-deal-product-request'; -// May contain unused imports in some cases -// @ts-ignore -import { GetAddProductAttachmentDetailsResponseDataAllOfAllOfAllOf } from './get-add-product-attachment-details-response-data-all-of-all-of-all-of'; - -/** - * @type GetAddProductAttachmentDetailsResponseDataAllOfAllOf - * @export - */ -export type GetAddProductAttachmentDetailsResponseDataAllOfAllOf = BasicDealProductRequest & GetAddProductAttachmentDetailsResponseDataAllOfAllOfAllOf; - - diff --git a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of1.ts b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of1.ts deleted file mode 100644 index 50055f89..00000000 --- a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of1.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetAddProductAttachmentDetailsResponseDataAllOfAllOf1 -*/ -export interface GetAddProductAttachmentDetailsResponseDataAllOfAllOf1 { - /** - * The ID of the deal-product (the ID of the product attached to the deal) - * @type {number} - */ - 'product_attachment_id'?: number; -} - diff --git a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of.ts b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of.ts deleted file mode 100644 index a2dbf4eb..00000000 --- a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetAddProductAttachmentDetailsResponseDataAllOfAllOf } from './get-add-product-attachment-details-response-data-all-of-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetAddProductAttachmentDetailsResponseDataAllOfAllOf1 } from './get-add-product-attachment-details-response-data-all-of-all-of1'; - -/** - * @type GetAddProductAttachmentDetailsResponseDataAllOf - * @export - */ -export type GetAddProductAttachmentDetailsResponseDataAllOf = GetAddProductAttachmentDetailsResponseDataAllOfAllOf & GetAddProductAttachmentDetailsResponseDataAllOfAllOf1; - - diff --git a/src/versions/v1/models/get-add-product-attachment-details-response-data.ts b/src/versions/v1/models/get-add-product-attachment-details-response-data.ts deleted file mode 100644 index dfbfdb1a..00000000 --- a/src/versions/v1/models/get-add-product-attachment-details-response-data.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetAddProductAttachmentDetailsResponseDataAllOf } from './get-add-product-attachment-details-response-data-all-of'; - -/** - * @type GetAddProductAttachmentDetailsResponseData - * The added product object attached to the deal - * @export - */ -export type GetAddProductAttachmentDetailsResponseData = GetAddProductAttachmentDetailsResponseDataAllOf; - - diff --git a/src/versions/v1/models/get-add-product-attachment-details-response.ts b/src/versions/v1/models/get-add-product-attachment-details-response.ts deleted file mode 100644 index 4f962b4f..00000000 --- a/src/versions/v1/models/get-add-product-attachment-details-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetAddProductAttachmentDetailsResponseData } from './get-add-product-attachment-details-response-data'; - -/** -* -* @export -* @interface GetAddProductAttachmentDetailsResponse -*/ -export interface GetAddProductAttachmentDetailsResponse { - /** - * If the response is successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {GetAddProductAttachmentDetailsResponseData} - */ - 'data'?: GetAddProductAttachmentDetailsResponseData; -} - diff --git a/src/versions/v1/models/get-added-deal-response.ts b/src/versions/v1/models/get-added-deal-response.ts deleted file mode 100644 index dff0ccb4..00000000 --- a/src/versions/v1/models/get-added-deal-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Deal } from './deal'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealsResponseRelatedObjects } from './get-deals-response-related-objects'; - -/** -* -* @export -* @interface GetAddedDealResponse -*/ -export interface GetAddedDealResponse { - /** - * If the response is successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {Deal} - */ - 'data'?: Deal; - /** - * - * @type {GetDealsResponseRelatedObjects} - */ - 'related_objects'?: GetDealsResponseRelatedObjects; -} - diff --git a/src/versions/v1/models/get-associated-activities-response-all-of.ts b/src/versions/v1/models/get-associated-activities-response-all-of.ts deleted file mode 100644 index f90ded83..00000000 --- a/src/versions/v1/models/get-associated-activities-response-all-of.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Activity } from './activity'; -// May contain unused imports in some cases -// @ts-ignore -import { ActivityDistributionDataWithAdditionalData } from './activity-distribution-data-with-additional-data'; - -/** -* -* @export -* @interface GetAssociatedActivitiesResponseAllOf -*/ -export interface GetAssociatedActivitiesResponseAllOf { - /** - * The array of activities - * @type {Array} - */ - 'data': Array; - /** - * - * @type {ActivityDistributionDataWithAdditionalData} - */ - 'additional_data': ActivityDistributionDataWithAdditionalData; -} - diff --git a/src/versions/v1/models/get-associated-activities-response.ts b/src/versions/v1/models/get-associated-activities-response.ts deleted file mode 100644 index e5bde18c..00000000 --- a/src/versions/v1/models/get-associated-activities-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Activity } from './activity'; -// May contain unused imports in some cases -// @ts-ignore -import { ActivityDistributionDataWithAdditionalData } from './activity-distribution-data-with-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetAssociatedActivitiesResponseAllOf } from './get-associated-activities-response-all-of'; - -/** - * @type GetAssociatedActivitiesResponse - * @export - */ -export type GetAssociatedActivitiesResponse = BaseResponse & GetAssociatedActivitiesResponseAllOf; - - diff --git a/src/versions/v1/models/get-associated-deals-response-all-of-related-objects.ts b/src/versions/v1/models/get-associated-deals-response-all-of-related-objects.ts index 31077857..773641ec 100644 --- a/src/versions/v1/models/get-associated-deals-response-all-of-related-objects.ts +++ b/src/versions/v1/models/get-associated-deals-response-all-of-related-objects.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; // May contain unused imports in some cases // @ts-ignore import { BasePipeline } from './base-pipeline'; @@ -24,7 +21,10 @@ import { BasePipeline } from './base-pipeline'; import { BaseStage } from './base-stage'; // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +import { GetDealsResponseRelatedObjectsPerson } from './get-deals-response-related-objects-person'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsResponseRelatedObjectsUser } from './get-deals-response-related-objects-user'; // May contain unused imports in some cases // @ts-ignore import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; @@ -42,14 +42,14 @@ export interface GetAssociatedDealsResponseAllOfRelatedObjects { 'organization'?: RelatedOrganizationDataWithActiveFlag; /** * - * @type {AddActivityResponseRelatedObjectsPerson} + * @type {GetDealsResponseRelatedObjectsPerson} */ - 'person'?: AddActivityResponseRelatedObjectsPerson; + 'person'?: GetDealsResponseRelatedObjectsPerson; /** * - * @type {GetActivitiesResponseRelatedObjectsUser} + * @type {GetDealsResponseRelatedObjectsUser} */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; + 'user'?: GetDealsResponseRelatedObjectsUser; /** * * @type {BaseStage} diff --git a/src/versions/v1/models/get-associated-followers-response.ts b/src/versions/v1/models/get-associated-followers-response.ts index 188c5f6c..53866a94 100644 --- a/src/versions/v1/models/get-associated-followers-response.ts +++ b/src/versions/v1/models/get-associated-followers-response.ts @@ -15,10 +15,10 @@ // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +import { GetAssociatedFollowersResponseDataInner } from './get-associated-followers-response-data-inner'; // May contain unused imports in some cases // @ts-ignore -import { GetAssociatedFollowersResponseDataInner } from './get-associated-followers-response-data-inner'; +import { GetLeadSearchResponseAllOfAdditionalData } from './get-lead-search-response-all-of-additional-data'; /** * @@ -38,8 +38,8 @@ export interface GetAssociatedFollowersResponse { 'data': Array; /** * - * @type {GetActivitiesResponseAdditionalData} + * @type {GetLeadSearchResponseAllOfAdditionalData} */ - 'additional_data': GetActivitiesResponseAdditionalData; + 'additional_data': GetLeadSearchResponseAllOfAdditionalData; } diff --git a/src/versions/v1/models/get-associated-organization-updates-response-all-of-related-objects.ts b/src/versions/v1/models/get-associated-organization-updates-response-all-of-related-objects.ts index d3a47069..2a6a8208 100644 --- a/src/versions/v1/models/get-associated-organization-updates-response-all-of-related-objects.ts +++ b/src/versions/v1/models/get-associated-organization-updates-response-all-of-related-objects.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +import { GetDealsResponseRelatedObjectsUser } from './get-deals-response-related-objects-user'; // May contain unused imports in some cases // @ts-ignore import { RelatedOrganizationData } from './related-organization-data'; @@ -33,8 +33,8 @@ export interface GetAssociatedOrganizationUpdatesResponseAllOfRelatedObjects { 'organization'?: RelatedOrganizationData; /** * - * @type {GetActivitiesResponseRelatedObjectsUser} + * @type {GetDealsResponseRelatedObjectsUser} */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; + 'user'?: GetDealsResponseRelatedObjectsUser; } diff --git a/src/versions/v1/models/get-activities-collection-response-additional-data.ts b/src/versions/v1/models/get-changelog-response-all-of-additional-data.ts similarity index 84% rename from src/versions/v1/models/get-activities-collection-response-additional-data.ts rename to src/versions/v1/models/get-changelog-response-all-of-additional-data.ts index 739ce853..d768f4a6 100644 --- a/src/versions/v1/models/get-activities-collection-response-additional-data.ts +++ b/src/versions/v1/models/get-changelog-response-all-of-additional-data.ts @@ -17,9 +17,9 @@ /** * The additional data of the list * @export -* @interface GetActivitiesCollectionResponseAdditionalData +* @interface GetChangelogResponseAllOfAdditionalData */ -export interface GetActivitiesCollectionResponseAdditionalData { +export interface GetChangelogResponseAllOfAdditionalData { /** * The first item on the next page. The value of the `next_cursor` field will be `null` if you have reached the end of the dataset and there’s no more pages to be returned. * @type {string} diff --git a/src/versions/v1/models/get-changelog-response-all-of.ts b/src/versions/v1/models/get-changelog-response-all-of.ts index 7af51bb7..3fc93a63 100644 --- a/src/versions/v1/models/get-changelog-response-all-of.ts +++ b/src/versions/v1/models/get-changelog-response-all-of.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +import { GetChangelogResponseAllOfAdditionalData } from './get-changelog-response-all-of-additional-data'; // May contain unused imports in some cases // @ts-ignore import { GetChangelogResponseAllOfDataInner } from './get-changelog-response-all-of-data-inner'; @@ -33,8 +33,8 @@ export interface GetChangelogResponseAllOf { 'data': Array; /** * - * @type {GetActivitiesCollectionResponseAdditionalData} + * @type {GetChangelogResponseAllOfAdditionalData} */ - 'additional_data': GetActivitiesCollectionResponseAdditionalData; + 'additional_data': GetChangelogResponseAllOfAdditionalData; } diff --git a/src/versions/v1/models/get-changelog-response.ts b/src/versions/v1/models/get-changelog-response.ts index ef8eee5d..c3a359f5 100644 --- a/src/versions/v1/models/get-changelog-response.ts +++ b/src/versions/v1/models/get-changelog-response.ts @@ -18,10 +18,10 @@ import { BaseResponse } from './base-response'; // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +import { GetChangelogResponseAllOf } from './get-changelog-response-all-of'; // May contain unused imports in some cases // @ts-ignore -import { GetChangelogResponseAllOf } from './get-changelog-response-all-of'; +import { GetChangelogResponseAllOfAdditionalData } from './get-changelog-response-all-of-additional-data'; // May contain unused imports in some cases // @ts-ignore import { GetChangelogResponseAllOfDataInner } from './get-changelog-response-all-of-data-inner'; diff --git a/src/versions/v1/models/get-deal-activities-response-all-of-related-objects.ts b/src/versions/v1/models/get-deal-activities-response-all-of-related-objects.ts deleted file mode 100644 index 7453dcb9..00000000 --- a/src/versions/v1/models/get-deal-activities-response-all-of-related-objects.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; -// May contain unused imports in some cases -// @ts-ignore -import { RelatedDealData } from './related-deal-data'; -// May contain unused imports in some cases -// @ts-ignore -import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; - -/** -* -* @export -* @interface GetDealActivitiesResponseAllOfRelatedObjects -*/ -export interface GetDealActivitiesResponseAllOfRelatedObjects { - /** - * - * @type {RelatedOrganizationDataWithActiveFlag} - */ - 'organization'?: RelatedOrganizationDataWithActiveFlag; - /** - * - * @type {AddActivityResponseRelatedObjectsPerson} - */ - 'person'?: AddActivityResponseRelatedObjectsPerson; - /** - * - * @type {RelatedDealData} - */ - 'deal'?: RelatedDealData; - /** - * - * @type {GetActivitiesResponseRelatedObjectsUser} - */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; -} - diff --git a/src/versions/v1/models/get-deal-activities-response-all-of.ts b/src/versions/v1/models/get-deal-activities-response-all-of.ts deleted file mode 100644 index d6acb6b2..00000000 --- a/src/versions/v1/models/get-deal-activities-response-all-of.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Activity } from './activity'; -// May contain unused imports in some cases -// @ts-ignore -import { ActivityDistributionDataWithAdditionalData } from './activity-distribution-data-with-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealActivitiesResponseAllOfRelatedObjects } from './get-deal-activities-response-all-of-related-objects'; - -/** -* -* @export -* @interface GetDealActivitiesResponseAllOf -*/ -export interface GetDealActivitiesResponseAllOf { - /** - * The array of activities - * @type {Array} - */ - 'data': Array; - /** - * - * @type {ActivityDistributionDataWithAdditionalData} - */ - 'additional_data': ActivityDistributionDataWithAdditionalData; - /** - * - * @type {GetDealActivitiesResponseAllOfRelatedObjects} - */ - 'related_objects': GetDealActivitiesResponseAllOfRelatedObjects; -} - diff --git a/src/versions/v1/models/get-deal-activities-response.ts b/src/versions/v1/models/get-deal-activities-response.ts deleted file mode 100644 index 01d88414..00000000 --- a/src/versions/v1/models/get-deal-activities-response.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Activity } from './activity'; -// May contain unused imports in some cases -// @ts-ignore -import { ActivityDistributionDataWithAdditionalData } from './activity-distribution-data-with-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealActivitiesResponseAllOf } from './get-deal-activities-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealActivitiesResponseAllOfRelatedObjects } from './get-deal-activities-response-all-of-related-objects'; - -/** - * @type GetDealActivitiesResponse - * @export - */ -export type GetDealActivitiesResponse = BaseResponse & GetDealActivitiesResponseAllOf; - - diff --git a/src/versions/v1/models/get-deal-response-additional-data.ts b/src/versions/v1/models/get-deal-response-additional-data.ts deleted file mode 100644 index f6060f19..00000000 --- a/src/versions/v1/models/get-deal-response-additional-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetDealResponseAdditionalData -*/ -export interface GetDealResponseAdditionalData { - /** - * The BCC email of the deal - * @type {string} - */ - 'dropbox_email'?: string; -} - diff --git a/src/versions/v1/models/get-deal-response-related-objects.ts b/src/versions/v1/models/get-deal-response-related-objects.ts deleted file mode 100644 index 339b51d5..00000000 --- a/src/versions/v1/models/get-deal-response-related-objects.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; -// May contain unused imports in some cases -// @ts-ignore -import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; - -/** -* -* @export -* @interface GetDealResponseRelatedObjects -*/ -export interface GetDealResponseRelatedObjects { - /** - * - * @type {GetActivitiesResponseRelatedObjectsUser} - */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; - /** - * - * @type {AddActivityResponseRelatedObjectsPerson} - */ - 'person'?: AddActivityResponseRelatedObjectsPerson; - /** - * - * @type {RelatedOrganizationDataWithActiveFlag} - */ - 'organization'?: RelatedOrganizationDataWithActiveFlag; -} - diff --git a/src/versions/v1/models/get-deal-response.ts b/src/versions/v1/models/get-deal-response.ts deleted file mode 100644 index b31b58af..00000000 --- a/src/versions/v1/models/get-deal-response.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DealNonStrictWithDetails } from './deal-non-strict-with-details'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealResponseAdditionalData } from './get-deal-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealResponseRelatedObjects } from './get-deal-response-related-objects'; - -/** -* -* @export -* @interface GetDealResponse -*/ -export interface GetDealResponse { - /** - * If the response is successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {DealNonStrictWithDetails} - */ - 'data'?: DealNonStrictWithDetails; - /** - * - * @type {GetDealResponseAdditionalData} - */ - 'additional_data'?: GetDealResponseAdditionalData; - /** - * - * @type {GetDealResponseRelatedObjects} - */ - 'related_objects'?: GetDealResponseRelatedObjects; -} - diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-organization.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-organization.ts deleted file mode 100644 index f6b7912f..00000000 --- a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-organization.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetDealSearchResponseAllOfDataItemsInnerItemOrganization -*/ -export interface GetDealSearchResponseAllOfDataItemsInnerItemOrganization { - /** - * The ID of the organization the deal is associated with - * @type {number} - */ - 'id'?: number; - /** - * The name of the organization the deal is associated with - * @type {string} - */ - 'name'?: string; -} - diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-owner.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-owner.ts deleted file mode 100644 index 32e6cc84..00000000 --- a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-owner.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetDealSearchResponseAllOfDataItemsInnerItemOwner -*/ -export interface GetDealSearchResponseAllOfDataItemsInnerItemOwner { - /** - * The ID of the owner of the deal - * @type {number} - */ - 'id'?: number; -} - diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-person.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-person.ts deleted file mode 100644 index d88d8238..00000000 --- a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-person.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetDealSearchResponseAllOfDataItemsInnerItemPerson -*/ -export interface GetDealSearchResponseAllOfDataItemsInnerItemPerson { - /** - * The ID of the person the deal is associated with - * @type {number} - */ - 'id'?: number; - /** - * The name of the person the deal is associated with - * @type {string} - */ - 'name'?: string; -} - diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-stage.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-stage.ts deleted file mode 100644 index 1458739e..00000000 --- a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-stage.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetDealSearchResponseAllOfDataItemsInnerItemStage -*/ -export interface GetDealSearchResponseAllOfDataItemsInnerItemStage { - /** - * The ID of the stage of the deal - * @type {number} - */ - 'id'?: number; - /** - * The name of the stage of the deal - * @type {string} - */ - 'name'?: string; -} - diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.ts deleted file mode 100644 index 03166c58..00000000 --- a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.ts +++ /dev/null @@ -1,106 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetDealSearchResponseAllOfDataItemsInnerItemOrganization } from './get-deal-search-response-all-of-data-items-inner-item-organization'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealSearchResponseAllOfDataItemsInnerItemOwner } from './get-deal-search-response-all-of-data-items-inner-item-owner'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealSearchResponseAllOfDataItemsInnerItemPerson } from './get-deal-search-response-all-of-data-items-inner-item-person'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealSearchResponseAllOfDataItemsInnerItemStage } from './get-deal-search-response-all-of-data-items-inner-item-stage'; - -/** -* -* @export -* @interface GetDealSearchResponseAllOfDataItemsInnerItem -*/ -export interface GetDealSearchResponseAllOfDataItemsInnerItem { - /** - * The ID of the deal - * @type {number} - */ - 'id'?: number; - /** - * The type of the item - * @type {string} - */ - 'type'?: string; - /** - * The title of the deal - * @type {string} - */ - 'title'?: string; - /** - * The value of the deal - * @type {number} - */ - 'value'?: number; - /** - * The currency of the deal - * @type {string} - */ - 'currency'?: string; - /** - * The status of the deal - * @type {string} - */ - 'status'?: string; - /** - * The visibility of the deal - * @type {number} - */ - 'visible_to'?: number; - /** - * - * @type {GetDealSearchResponseAllOfDataItemsInnerItemOwner} - */ - 'owner'?: GetDealSearchResponseAllOfDataItemsInnerItemOwner; - /** - * - * @type {GetDealSearchResponseAllOfDataItemsInnerItemStage} - */ - 'stage'?: GetDealSearchResponseAllOfDataItemsInnerItemStage; - /** - * - * @type {GetDealSearchResponseAllOfDataItemsInnerItemPerson} - */ - 'person'?: GetDealSearchResponseAllOfDataItemsInnerItemPerson | null; - /** - * - * @type {GetDealSearchResponseAllOfDataItemsInnerItemOrganization} - */ - 'organization'?: GetDealSearchResponseAllOfDataItemsInnerItemOrganization | null; - /** - * Custom fields - * @type {Array} - */ - 'custom_fields'?: Array; - /** - * An array of notes - * @type {Array} - */ - 'notes'?: Array; - /** - * A flag indicating whether the deal is archived or not - * @type {boolean} - */ - 'is_archived'?: boolean; -} - diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner.ts deleted file mode 100644 index 20e2f54f..00000000 --- a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetDealSearchResponseAllOfDataItemsInnerItem } from './get-deal-search-response-all-of-data-items-inner-item'; - -/** -* -* @export -* @interface GetDealSearchResponseAllOfDataItemsInner -*/ -export interface GetDealSearchResponseAllOfDataItemsInner { - /** - * Search result relevancy - * @type {number} - */ - 'result_score'?: number; - /** - * - * @type {GetDealSearchResponseAllOfDataItemsInnerItem} - */ - 'item'?: GetDealSearchResponseAllOfDataItemsInnerItem; -} - diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data.ts b/src/versions/v1/models/get-deal-search-response-all-of-data.ts deleted file mode 100644 index d2fd0c91..00000000 --- a/src/versions/v1/models/get-deal-search-response-all-of-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetDealSearchResponseAllOfDataItemsInner } from './get-deal-search-response-all-of-data-items-inner'; - -/** -* -* @export -* @interface GetDealSearchResponseAllOfData -*/ -export interface GetDealSearchResponseAllOfData { - /** - * The array of deals - * @type {Array} - */ - 'items'?: Array; -} - diff --git a/src/versions/v1/models/get-deal-search-response-all-of.ts b/src/versions/v1/models/get-deal-search-response-all-of.ts deleted file mode 100644 index bfe71d0f..00000000 --- a/src/versions/v1/models/get-deal-search-response-all-of.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealSearchResponseAllOfData } from './get-deal-search-response-all-of-data'; - -/** -* -* @export -* @interface GetDealSearchResponseAllOf -*/ -export interface GetDealSearchResponseAllOf { - /** - * - * @type {GetDealSearchResponseAllOfData} - */ - 'data': GetDealSearchResponseAllOfData; - /** - * - * @type {GetActivitiesResponseAdditionalData} - */ - 'additional_data': GetActivitiesResponseAdditionalData; -} - diff --git a/src/versions/v1/models/get-deal-search-response.ts b/src/versions/v1/models/get-deal-search-response.ts deleted file mode 100644 index f86e8051..00000000 --- a/src/versions/v1/models/get-deal-search-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealSearchResponseAllOf } from './get-deal-search-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetDealSearchResponseAllOfData } from './get-deal-search-response-all-of-data'; - -/** - * @type GetDealSearchResponse - * @export - */ -export type GetDealSearchResponse = BaseResponse & GetDealSearchResponseAllOf; - - diff --git a/src/versions/v1/models/get-deal-updates-response-all-of-related-objects.ts b/src/versions/v1/models/get-deal-updates-response-all-of-related-objects.ts index 4ae58732..cbe70798 100644 --- a/src/versions/v1/models/get-deal-updates-response-all-of-related-objects.ts +++ b/src/versions/v1/models/get-deal-updates-response-all-of-related-objects.ts @@ -15,10 +15,10 @@ // May contain unused imports in some cases // @ts-ignore -import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; +import { GetDealsResponseRelatedObjectsPerson } from './get-deals-response-related-objects-person'; // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +import { GetDealsResponseRelatedObjectsUser } from './get-deals-response-related-objects-user'; // May contain unused imports in some cases // @ts-ignore import { RelatedDealData } from './related-deal-data'; @@ -44,13 +44,13 @@ export interface GetDealUpdatesResponseAllOfRelatedObjects { 'organization'?: RelatedOrganizationData; /** * - * @type {GetActivitiesResponseRelatedObjectsUser} + * @type {GetDealsResponseRelatedObjectsUser} */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; + 'user'?: GetDealsResponseRelatedObjectsUser; /** * - * @type {AddActivityResponseRelatedObjectsPerson} + * @type {GetDealsResponseRelatedObjectsPerson} */ - 'person'?: AddActivityResponseRelatedObjectsPerson; + 'person'?: GetDealsResponseRelatedObjectsPerson; } diff --git a/src/versions/v1/models/get-deals-collection-response.ts b/src/versions/v1/models/get-deals-collection-response.ts deleted file mode 100644 index e0dc6b47..00000000 --- a/src/versions/v1/models/get-deals-collection-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DealCollectionResponseObject } from './deal-collection-response-object'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; - -/** -* -* @export -* @interface GetDealsCollectionResponse -*/ -export interface GetDealsCollectionResponse { - /** - * If the response is successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {Array} - */ - 'data'?: Array; - /** - * - * @type {GetActivitiesCollectionResponseAdditionalData} - */ - 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; -} - diff --git a/src/versions/v1/models/add-activity-response-related-objects-person.ts b/src/versions/v1/models/get-deals-response-related-objects-person.ts similarity index 85% rename from src/versions/v1/models/add-activity-response-related-objects-person.ts rename to src/versions/v1/models/get-deals-response-related-objects-person.ts index d6167e9b..97cc0547 100644 --- a/src/versions/v1/models/add-activity-response-related-objects-person.ts +++ b/src/versions/v1/models/get-deals-response-related-objects-person.ts @@ -20,9 +20,9 @@ import { PersonDataWithActiveFlag } from './person-data-with-active-flag'; /** * * @export -* @interface AddActivityResponseRelatedObjectsPerson +* @interface GetDealsResponseRelatedObjectsPerson */ -export interface AddActivityResponseRelatedObjectsPerson { +export interface GetDealsResponseRelatedObjectsPerson { /** * * @type {PersonDataWithActiveFlag} diff --git a/src/versions/v1/models/get-activities-response-related-objects-user.ts b/src/versions/v1/models/get-deals-response-related-objects-user.ts similarity index 84% rename from src/versions/v1/models/get-activities-response-related-objects-user.ts rename to src/versions/v1/models/get-deals-response-related-objects-user.ts index 3432d519..5c8389fb 100644 --- a/src/versions/v1/models/get-activities-response-related-objects-user.ts +++ b/src/versions/v1/models/get-deals-response-related-objects-user.ts @@ -20,9 +20,9 @@ import { UserDataWithId } from './user-data-with-id'; /** * * @export -* @interface GetActivitiesResponseRelatedObjectsUser +* @interface GetDealsResponseRelatedObjectsUser */ -export interface GetActivitiesResponseRelatedObjectsUser { +export interface GetDealsResponseRelatedObjectsUser { /** * * @type {UserDataWithId} diff --git a/src/versions/v1/models/get-deals-response-related-objects.ts b/src/versions/v1/models/get-deals-response-related-objects.ts index 0ed91082..120a7502 100644 --- a/src/versions/v1/models/get-deals-response-related-objects.ts +++ b/src/versions/v1/models/get-deals-response-related-objects.ts @@ -15,10 +15,10 @@ // May contain unused imports in some cases // @ts-ignore -import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; +import { GetDealsResponseRelatedObjectsPerson } from './get-deals-response-related-objects-person'; // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +import { GetDealsResponseRelatedObjectsUser } from './get-deals-response-related-objects-user'; // May contain unused imports in some cases // @ts-ignore import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; @@ -31,9 +31,9 @@ import { RelatedOrganizationDataWithActiveFlag } from './related-organization-da export interface GetDealsResponseRelatedObjects { /** * - * @type {GetActivitiesResponseRelatedObjectsUser} + * @type {GetDealsResponseRelatedObjectsUser} */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; + 'user'?: GetDealsResponseRelatedObjectsUser; /** * * @type {RelatedOrganizationDataWithActiveFlag} @@ -41,8 +41,8 @@ export interface GetDealsResponseRelatedObjects { 'organization'?: RelatedOrganizationDataWithActiveFlag; /** * - * @type {AddActivityResponseRelatedObjectsPerson} + * @type {GetDealsResponseRelatedObjectsPerson} */ - 'person'?: AddActivityResponseRelatedObjectsPerson; + 'person'?: GetDealsResponseRelatedObjectsPerson; } diff --git a/src/versions/v1/models/get-item-search-field-response-all-of-data-inner.ts b/src/versions/v1/models/get-item-search-field-response-all-of-data-inner.ts deleted file mode 100644 index adf3cc3a..00000000 --- a/src/versions/v1/models/get-item-search-field-response-all-of-data-inner.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetItemSearchFieldResponseAllOfDataInner -*/ -export interface GetItemSearchFieldResponseAllOfDataInner { - /** - * The ID of the item - * @type {number} - */ - 'id'?: number; - /** - * The value of the searched `field_key` - * @type {any} - */ - '$field_key'?: any; -} - diff --git a/src/versions/v1/models/get-item-search-field-response-all-of.ts b/src/versions/v1/models/get-item-search-field-response-all-of.ts deleted file mode 100644 index d879f5c4..00000000 --- a/src/versions/v1/models/get-item-search-field-response-all-of.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetItemSearchFieldResponseAllOfDataInner } from './get-item-search-field-response-all-of-data-inner'; - -/** -* -* @export -* @interface GetItemSearchFieldResponseAllOf -*/ -export interface GetItemSearchFieldResponseAllOf { - /** - * The array of results - * @type {Array} - */ - 'data': Array; - /** - * - * @type {GetActivitiesResponseAdditionalData} - */ - 'additional_data': GetActivitiesResponseAdditionalData; -} - diff --git a/src/versions/v1/models/get-item-search-field-response.ts b/src/versions/v1/models/get-item-search-field-response.ts deleted file mode 100644 index bc6213ab..00000000 --- a/src/versions/v1/models/get-item-search-field-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetItemSearchFieldResponseAllOf } from './get-item-search-field-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetItemSearchFieldResponseAllOfDataInner } from './get-item-search-field-response-all-of-data-inner'; - -/** - * @type GetItemSearchFieldResponse - * @export - */ -export type GetItemSearchFieldResponse = BaseResponse & GetItemSearchFieldResponseAllOf; - - diff --git a/src/versions/v1/models/get-item-search-response-all-of-data.ts b/src/versions/v1/models/get-item-search-response-all-of-data.ts deleted file mode 100644 index 8f66f392..00000000 --- a/src/versions/v1/models/get-item-search-response-all-of-data.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { SearchItem } from './search-item'; - -/** -* -* @export -* @interface GetItemSearchResponseAllOfData -*/ -export interface GetItemSearchResponseAllOfData { - /** - * The array of found items - * @type {Array} - */ - 'items'?: Array; - /** - * The array of related items if `search_for_related_items` was enabled - * @type {Array} - */ - 'related_items'?: Array; -} - diff --git a/src/versions/v1/models/get-item-search-response-all-of.ts b/src/versions/v1/models/get-item-search-response-all-of.ts deleted file mode 100644 index 3c3035d6..00000000 --- a/src/versions/v1/models/get-item-search-response-all-of.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetItemSearchResponseAllOfData } from './get-item-search-response-all-of-data'; - -/** -* -* @export -* @interface GetItemSearchResponseAllOf -*/ -export interface GetItemSearchResponseAllOf { - /** - * - * @type {GetItemSearchResponseAllOfData} - */ - 'data': GetItemSearchResponseAllOfData; - /** - * - * @type {GetActivitiesResponseAdditionalData} - */ - 'additional_data': GetActivitiesResponseAdditionalData; -} - diff --git a/src/versions/v1/models/get-item-search-response.ts b/src/versions/v1/models/get-item-search-response.ts deleted file mode 100644 index f5b9e00b..00000000 --- a/src/versions/v1/models/get-item-search-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetItemSearchResponseAllOf } from './get-item-search-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetItemSearchResponseAllOfData } from './get-item-search-response-all-of-data'; - -/** - * @type GetItemSearchResponse - * @export - */ -export type GetItemSearchResponse = BaseResponse & GetItemSearchResponseAllOf; - - diff --git a/src/versions/v1/models/get-activities-response-additional-data-pagination.ts b/src/versions/v1/models/get-lead-search-response-all-of-additional-data-pagination.ts similarity index 86% rename from src/versions/v1/models/get-activities-response-additional-data-pagination.ts rename to src/versions/v1/models/get-lead-search-response-all-of-additional-data-pagination.ts index 9d8475c8..6ed1cb74 100644 --- a/src/versions/v1/models/get-activities-response-additional-data-pagination.ts +++ b/src/versions/v1/models/get-lead-search-response-all-of-additional-data-pagination.ts @@ -17,9 +17,9 @@ /** * Pagination details of the list * @export -* @interface GetActivitiesResponseAdditionalDataPagination +* @interface GetLeadSearchResponseAllOfAdditionalDataPagination */ -export interface GetActivitiesResponseAdditionalDataPagination { +export interface GetLeadSearchResponseAllOfAdditionalDataPagination { /** * Pagination start * @type {number} diff --git a/src/versions/v1/models/activity-distribution-data.ts b/src/versions/v1/models/get-lead-search-response-all-of-additional-data.ts similarity index 56% rename from src/versions/v1/models/activity-distribution-data.ts rename to src/versions/v1/models/get-lead-search-response-all-of-additional-data.ts index 94b9a3e1..f05971be 100644 --- a/src/versions/v1/models/activity-distribution-data.ts +++ b/src/versions/v1/models/get-lead-search-response-all-of-additional-data.ts @@ -15,18 +15,18 @@ // May contain unused imports in some cases // @ts-ignore -import { ActivityDistribution } from './activity-distribution'; +import { GetLeadSearchResponseAllOfAdditionalDataPagination } from './get-lead-search-response-all-of-additional-data-pagination'; /** * * @export -* @interface ActivityDistributionData +* @interface GetLeadSearchResponseAllOfAdditionalData */ -export interface ActivityDistributionData { +export interface GetLeadSearchResponseAllOfAdditionalData { /** * - * @type {ActivityDistribution} + * @type {GetLeadSearchResponseAllOfAdditionalDataPagination} */ - 'activity_distribution'?: ActivityDistribution; + 'pagination'?: GetLeadSearchResponseAllOfAdditionalDataPagination; } diff --git a/src/versions/v1/models/get-lead-search-response-all-of.ts b/src/versions/v1/models/get-lead-search-response-all-of.ts index 4c2b7496..e4a0d8aa 100644 --- a/src/versions/v1/models/get-lead-search-response-all-of.ts +++ b/src/versions/v1/models/get-lead-search-response-all-of.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +import { GetLeadSearchResponseAllOfAdditionalData } from './get-lead-search-response-all-of-additional-data'; // May contain unused imports in some cases // @ts-ignore import { GetLeadSearchResponseAllOfData } from './get-lead-search-response-all-of-data'; @@ -33,8 +33,8 @@ export interface GetLeadSearchResponseAllOf { 'data': GetLeadSearchResponseAllOfData; /** * - * @type {GetActivitiesResponseAdditionalData} + * @type {GetLeadSearchResponseAllOfAdditionalData} */ - 'additional_data': GetActivitiesResponseAdditionalData; + 'additional_data': GetLeadSearchResponseAllOfAdditionalData; } diff --git a/src/versions/v1/models/get-lead-search-response.ts b/src/versions/v1/models/get-lead-search-response.ts index c07cea0f..785d8c62 100644 --- a/src/versions/v1/models/get-lead-search-response.ts +++ b/src/versions/v1/models/get-lead-search-response.ts @@ -18,10 +18,10 @@ import { BaseResponse } from './base-response'; // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +import { GetLeadSearchResponseAllOf } from './get-lead-search-response-all-of'; // May contain unused imports in some cases // @ts-ignore -import { GetLeadSearchResponseAllOf } from './get-lead-search-response-all-of'; +import { GetLeadSearchResponseAllOfAdditionalData } from './get-lead-search-response-all-of-additional-data'; // May contain unused imports in some cases // @ts-ignore import { GetLeadSearchResponseAllOfData } from './get-lead-search-response-all-of-data'; diff --git a/src/versions/v1/models/get-notes-response-additional-data-pagination.ts b/src/versions/v1/models/get-notes-response-additional-data-pagination.ts deleted file mode 100644 index cffce665..00000000 --- a/src/versions/v1/models/get-notes-response-additional-data-pagination.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { PaginationDetailsAllOf } from './pagination-details-all-of'; - -/** - * @type GetNotesResponseAdditionalDataPagination - * The pagination details of the list - * @export - */ -export type GetNotesResponseAdditionalDataPagination = GetFieldsResponseAllOfAdditionalData & PaginationDetailsAllOf; - - diff --git a/src/versions/v1/models/get-organization-item-all-of.ts b/src/versions/v1/models/get-organization-item-all-of.ts deleted file mode 100644 index e60e0c32..00000000 --- a/src/versions/v1/models/get-organization-item-all-of.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetOrganizationItemAllOf -*/ -export interface GetOrganizationItemAllOf { - /** - * Please refer to response schema of Activity - * @type {object} - */ - 'last_activity'?: object | null; - /** - * Please refer to response schema of Activity - * @type {object} - */ - 'next_activity'?: object | null; -} - diff --git a/src/versions/v1/models/get-organization-item.ts b/src/versions/v1/models/get-organization-item.ts deleted file mode 100644 index bbe01cfe..00000000 --- a/src/versions/v1/models/get-organization-item.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItemAllOfPictureId } from './base-organization-item-all-of-picture-id'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItemWithEditNameFlag } from './base-organization-item-with-edit-name-flag'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationItemAllOf } from './get-organization-item-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { Owner } from './owner'; - -/** - * @type GetOrganizationItem - * @export - */ -export type GetOrganizationItem = BaseOrganizationItemWithEditNameFlag & GetOrganizationItemAllOf; - - diff --git a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruserid.ts b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruserid.ts deleted file mode 100644 index 928aaf1f..00000000 --- a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruserid.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOf } from './get-organization-response-all-of-additional-data-followers-followeruseridall-of'; - -/** - * @type GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERID - * The user ID of the follower - * @export - */ -export type GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERID = GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOf; - - diff --git a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of.ts b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of.ts deleted file mode 100644 index 693568c0..00000000 --- a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOfAllOf -*/ -export interface GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOfAllOf { - /** - * The ID of the follower associated with the item - * @type {number} - */ - 'id'?: number; -} - diff --git a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of.ts b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of.ts deleted file mode 100644 index 7acabdf9..00000000 --- a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { FollowerData } from './follower-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOfAllOf } from './get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of'; - -/** - * @type GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOf - * @export - */ -export type GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOf = FollowerData & GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOfAllOf; - - diff --git a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers.ts b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers.ts deleted file mode 100644 index 675d2cb4..00000000 --- a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERID } from './get-organization-response-all-of-additional-data-followers-followeruserid'; - -/** -* The follower that is associated with the item -* @export -* @interface GetOrganizationResponseAllOfAdditionalDataFollowers -*/ -export interface GetOrganizationResponseAllOfAdditionalDataFollowers { - /** - * - * @type {GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERID} - */ - 'FOLLOWER_USER_ID'?: GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERID; -} - diff --git a/src/versions/v1/models/get-organization-response-all-of-additional-data.ts b/src/versions/v1/models/get-organization-response-all-of-additional-data.ts deleted file mode 100644 index aef11ab5..00000000 --- a/src/versions/v1/models/get-organization-response-all-of-additional-data.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationResponseAllOfAdditionalDataFollowers } from './get-organization-response-all-of-additional-data-followers'; - -/** -* -* @export -* @interface GetOrganizationResponseAllOfAdditionalData -*/ -export interface GetOrganizationResponseAllOfAdditionalData { - /** - * - * @type {GetOrganizationResponseAllOfAdditionalDataFollowers} - */ - 'followers'?: GetOrganizationResponseAllOfAdditionalDataFollowers; - /** - * Dropbox email for the organization - * @type {string} - */ - 'dropbox_email'?: string; -} - diff --git a/src/versions/v1/models/get-organization-response-all-of.ts b/src/versions/v1/models/get-organization-response-all-of.ts deleted file mode 100644 index 6d269930..00000000 --- a/src/versions/v1/models/get-organization-response-all-of.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationItem } from './get-organization-item'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationResponseAllOfAdditionalData } from './get-organization-response-all-of-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; - -/** -* -* @export -* @interface GetOrganizationResponseAllOf -*/ -export interface GetOrganizationResponseAllOf { - /** - * - * @type {GetOrganizationItem} - */ - 'data': GetOrganizationItem; - /** - * - * @type {GetOrganizationResponseAllOfAdditionalData} - */ - 'additional_data': GetOrganizationResponseAllOfAdditionalData; - /** - * - * @type {GetOrganizationsResponseAllOfRelatedObjects} - */ - 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; -} - diff --git a/src/versions/v1/models/get-organization-response.ts b/src/versions/v1/models/get-organization-response.ts deleted file mode 100644 index 6b080966..00000000 --- a/src/versions/v1/models/get-organization-response.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationItem } from './get-organization-item'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationResponseAllOf } from './get-organization-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationResponseAllOfAdditionalData } from './get-organization-response-all-of-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; - -/** - * @type GetOrganizationResponse - * @export - */ -export type GetOrganizationResponse = BaseResponse & GetOrganizationResponseAllOf; - - diff --git a/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner-item.ts b/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner-item.ts deleted file mode 100644 index db20c592..00000000 --- a/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner-item.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetDealSearchResponseAllOfDataItemsInnerItemOwner } from './get-deal-search-response-all-of-data-items-inner-item-owner'; - -/** -* -* @export -* @interface GetOrganizationSearchResponseAllOfDataItemsInnerItem -*/ -export interface GetOrganizationSearchResponseAllOfDataItemsInnerItem { - /** - * The ID of the organization - * @type {number} - */ - 'id'?: number; - /** - * The type of the item - * @type {string} - */ - 'type'?: string; - /** - * The name of the organization - * @type {string} - */ - 'name'?: string; - /** - * The address of the organization - * @type {string} - */ - 'address'?: string; - /** - * The visibility of the organization - * @type {number} - */ - 'visible_to'?: number; - /** - * - * @type {GetDealSearchResponseAllOfDataItemsInnerItemOwner} - */ - 'owner'?: GetDealSearchResponseAllOfDataItemsInnerItemOwner; - /** - * Custom fields - * @type {Array} - */ - 'custom_fields'?: Array; - /** - * An array of notes - * @type {Array} - */ - 'notes'?: Array; -} - diff --git a/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner.ts b/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner.ts deleted file mode 100644 index d74ca005..00000000 --- a/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationSearchResponseAllOfDataItemsInnerItem } from './get-organization-search-response-all-of-data-items-inner-item'; - -/** -* -* @export -* @interface GetOrganizationSearchResponseAllOfDataItemsInner -*/ -export interface GetOrganizationSearchResponseAllOfDataItemsInner { - /** - * Search result relevancy - * @type {number} - */ - 'result_score'?: number; - /** - * - * @type {GetOrganizationSearchResponseAllOfDataItemsInnerItem} - */ - 'item'?: GetOrganizationSearchResponseAllOfDataItemsInnerItem; -} - diff --git a/src/versions/v1/models/get-organization-search-response-all-of-data.ts b/src/versions/v1/models/get-organization-search-response-all-of-data.ts deleted file mode 100644 index 8abdc3e0..00000000 --- a/src/versions/v1/models/get-organization-search-response-all-of-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationSearchResponseAllOfDataItemsInner } from './get-organization-search-response-all-of-data-items-inner'; - -/** -* -* @export -* @interface GetOrganizationSearchResponseAllOfData -*/ -export interface GetOrganizationSearchResponseAllOfData { - /** - * The array of found items - * @type {Array} - */ - 'items'?: Array; -} - diff --git a/src/versions/v1/models/get-organization-search-response-all-of.ts b/src/versions/v1/models/get-organization-search-response-all-of.ts deleted file mode 100644 index 8b4a71f6..00000000 --- a/src/versions/v1/models/get-organization-search-response-all-of.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationSearchResponseAllOfData } from './get-organization-search-response-all-of-data'; - -/** -* -* @export -* @interface GetOrganizationSearchResponseAllOf -*/ -export interface GetOrganizationSearchResponseAllOf { - /** - * - * @type {GetOrganizationSearchResponseAllOfData} - */ - 'data': GetOrganizationSearchResponseAllOfData; - /** - * - * @type {GetActivitiesResponseAdditionalData} - */ - 'additional_data': GetActivitiesResponseAdditionalData; -} - diff --git a/src/versions/v1/models/get-organization-search-response.ts b/src/versions/v1/models/get-organization-search-response.ts deleted file mode 100644 index f660bba0..00000000 --- a/src/versions/v1/models/get-organization-search-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationSearchResponseAllOf } from './get-organization-search-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationSearchResponseAllOfData } from './get-organization-search-response-all-of-data'; - -/** - * @type GetOrganizationSearchResponse - * @export - */ -export type GetOrganizationSearchResponse = BaseResponse & GetOrganizationSearchResponseAllOf; - - diff --git a/src/versions/v1/models/get-organizations-collection-response-object-all-of.ts b/src/versions/v1/models/get-organizations-collection-response-object-all-of.ts deleted file mode 100644 index e5409acf..00000000 --- a/src/versions/v1/models/get-organizations-collection-response-object-all-of.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetOrganizationsCollectionResponseObjectAllOf -*/ -export interface GetOrganizationsCollectionResponseObjectAllOf { - /** - * The ID of the organization - * @type {number} - */ - 'id': number; - /** - * Whether the organization is active or not - * @type {boolean} - */ - 'active_flag': boolean; - /** - * The ID of the owner - * @type {number} - */ - 'owner_id': number; - /** - * The name of the organization - * @type {string} - */ - 'name': string; - /** - * The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS - * @type {string} - */ - 'update_time': string; - /** - * The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS - * @type {string} - */ - 'delete_time': string | null; - /** - * The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS - * @type {string} - */ - 'add_time': string; - /** - * The visibility group ID of who can see the organization - * @type {string} - */ - 'visible_to': string; - /** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @type {number} - */ - 'label': number | null; - /** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @type {Array} - */ - 'label_ids': Array; - /** - * The BCC email associated with the organization - * @type {string} - */ - 'cc_email': string; -} - diff --git a/src/versions/v1/models/get-organizations-collection-response-object.ts b/src/versions/v1/models/get-organizations-collection-response-object.ts deleted file mode 100644 index 0ec81246..00000000 --- a/src/versions/v1/models/get-organizations-collection-response-object.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsCollectionResponseObjectAllOf } from './get-organizations-collection-response-object-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { OrganizationCountAndAddressInfoAllOf1 } from './organization-count-and-address-info-all-of1'; - -/** - * @type GetOrganizationsCollectionResponseObject - * @export - */ -export type GetOrganizationsCollectionResponseObject = GetOrganizationsCollectionResponseObjectAllOf & OrganizationCountAndAddressInfoAllOf1; - - diff --git a/src/versions/v1/models/get-organizations-collection200-response.ts b/src/versions/v1/models/get-organizations-collection200-response.ts deleted file mode 100644 index d8d03d2f..00000000 --- a/src/versions/v1/models/get-organizations-collection200-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsCollectionResponseObject } from './get-organizations-collection-response-object'; - -/** -* -* @export -* @interface GetOrganizationsCollection200Response -*/ -export interface GetOrganizationsCollection200Response { - /** - * - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {Array} - */ - 'data'?: Array; - /** - * - * @type {GetActivitiesCollectionResponseAdditionalData} - */ - 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; -} - diff --git a/src/versions/v1/models/get-organizations-response-all-of-related-objects.ts b/src/versions/v1/models/get-organizations-response-all-of-related-objects.ts deleted file mode 100644 index 188eac84..00000000 --- a/src/versions/v1/models/get-organizations-response-all-of-related-objects.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; -// May contain unused imports in some cases -// @ts-ignore -import { RelatedOrganizationData } from './related-organization-data'; -// May contain unused imports in some cases -// @ts-ignore -import { RelatedPictureData } from './related-picture-data'; - -/** -* -* @export -* @interface GetOrganizationsResponseAllOfRelatedObjects -*/ -export interface GetOrganizationsResponseAllOfRelatedObjects { - /** - * - * @type {RelatedOrganizationData} - */ - 'organization'?: RelatedOrganizationData; - /** - * - * @type {GetActivitiesResponseRelatedObjectsUser} - */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; - /** - * - * @type {RelatedPictureData} - */ - 'picture'?: RelatedPictureData; -} - diff --git a/src/versions/v1/models/get-organizations-response-all-of.ts b/src/versions/v1/models/get-organizations-response-all-of.ts deleted file mode 100644 index 63977c20..00000000 --- a/src/versions/v1/models/get-organizations-response-all-of.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItem } from './base-organization-item'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; - -/** -* -* @export -* @interface GetOrganizationsResponseAllOf -*/ -export interface GetOrganizationsResponseAllOf { - /** - * The array of organizations - * @type {Array} - */ - 'data': Array; - /** - * - * @type {GetActivitiesResponseAdditionalData} - */ - 'additional_data': GetActivitiesResponseAdditionalData; - /** - * - * @type {GetOrganizationsResponseAllOfRelatedObjects} - */ - 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; -} - diff --git a/src/versions/v1/models/get-organizations-response.ts b/src/versions/v1/models/get-organizations-response.ts deleted file mode 100644 index dc0120d6..00000000 --- a/src/versions/v1/models/get-organizations-response.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItem } from './base-organization-item'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOf } from './get-organizations-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; - -/** - * @type GetOrganizationsResponse - * @export - */ -export type GetOrganizationsResponse = BaseResponse & GetOrganizationsResponseAllOf; - - diff --git a/src/versions/v1/models/get-payments-response-all-of-data-inner.ts b/src/versions/v1/models/get-payments-response-all-of-data-inner.ts deleted file mode 100644 index 92f61199..00000000 --- a/src/versions/v1/models/get-payments-response-all-of-data-inner.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetPaymentsResponseAllOfDataInner -*/ -export interface GetPaymentsResponseAllOfDataInner { - /** - * The ID of the payment - * @type {number} - */ - 'id'?: number; - /** - * The ID of the subscription this payment is associated with - * @type {number} - */ - 'subscription_id'?: number; - /** - * The ID of the deal this payment is associated with - * @type {number} - */ - 'deal_id'?: number; - /** - * The payment status - * @type {boolean} - */ - 'is_active'?: boolean; - /** - * The payment amount - * @type {number} - */ - 'amount'?: number; - /** - * The currency of the payment - * @type {string} - */ - 'currency'?: string; - /** - * The difference between the amount of the current payment and the previous payment. The value can be either positive or negative. - * @type {number} - */ - 'change_amount'?: number; - /** - * The date when payment occurs - * @type {string} - */ - 'due_at'?: string; - /** - * Represents the movement of revenue in comparison with the previous payment. Possible values are: `New` - first payment of the subscription. `Recurring` - no movement. `Expansion` - current payment amount > previous payment amount. `Contraction` - current payment amount < previous payment amount. `Churn` - last payment of the subscription. - * @type {string} - */ - 'revenue_movement_type'?: GetPaymentsResponseAllOfDataInnerRevenueMovementTypeConst; - /** - * The type of the payment. Possible values are: `Recurring` - payments occur over fixed intervals of time, `Additional` - extra payment not the recurring payment of the recurring subscription, `Installment` - payment of the installment subscription. - * @type {string} - */ - 'payment_type'?: GetPaymentsResponseAllOfDataInnerPaymentTypeConst; - /** - * The description of the payment - * @type {string} - */ - 'description'?: string; - /** - * The creation time of the payment - * @type {string} - */ - 'add_time'?: string; - /** - * The update time of the payment - * @type {string} - */ - 'update_time'?: string; -} - - export const GetPaymentsResponseAllOfDataInnerRevenueMovementTypeConst = { - new: 'new', - recurring: 'recurring', - expansion: 'expansion', - contraction: 'contraction', - none: 'none', - churn: 'churn' - } as const; - - export type GetPaymentsResponseAllOfDataInnerRevenueMovementTypeConst = typeof GetPaymentsResponseAllOfDataInnerRevenueMovementTypeConst[keyof typeof GetPaymentsResponseAllOfDataInnerRevenueMovementTypeConst]; - export const GetPaymentsResponseAllOfDataInnerPaymentTypeConst = { - recurring: 'recurring', - additional: 'additional', - installment: 'installment' - } as const; - - export type GetPaymentsResponseAllOfDataInnerPaymentTypeConst = typeof GetPaymentsResponseAllOfDataInnerPaymentTypeConst[keyof typeof GetPaymentsResponseAllOfDataInnerPaymentTypeConst]; - - diff --git a/src/versions/v1/models/get-payments-response-all-of.ts b/src/versions/v1/models/get-payments-response-all-of.ts deleted file mode 100644 index 294f2ceb..00000000 --- a/src/versions/v1/models/get-payments-response-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetPaymentsResponseAllOfDataInner } from './get-payments-response-all-of-data-inner'; - -/** -* -* @export -* @interface GetPaymentsResponseAllOf -*/ -export interface GetPaymentsResponseAllOf { - /** - * - * @type {Array} - */ - 'data': Array; -} - diff --git a/src/versions/v1/models/get-payments-response.ts b/src/versions/v1/models/get-payments-response.ts deleted file mode 100644 index 279d0666..00000000 --- a/src/versions/v1/models/get-payments-response.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPaymentsResponseAllOf } from './get-payments-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPaymentsResponseAllOfDataInner } from './get-payments-response-all-of-data-inner'; - -/** - * @type GetPaymentsResponse - * @export - */ -export type GetPaymentsResponse = BaseResponse & GetPaymentsResponseAllOf; - - diff --git a/src/versions/v1/models/get-person-details-response-all-of-additional-data.ts b/src/versions/v1/models/get-person-details-response-all-of-additional-data.ts deleted file mode 100644 index 28947175..00000000 --- a/src/versions/v1/models/get-person-details-response-all-of-additional-data.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetPersonDetailsResponseAllOfAdditionalData -*/ -export interface GetPersonDetailsResponseAllOfAdditionalData { - /** - * Dropbox email for the person - * @type {string} - */ - 'dropbox_email'?: string; -} - diff --git a/src/versions/v1/models/get-person-details-response-all-of.ts b/src/versions/v1/models/get-person-details-response-all-of.ts deleted file mode 100644 index be4bbc61..00000000 --- a/src/versions/v1/models/get-person-details-response-all-of.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonDetailsResponseAllOfAdditionalData } from './get-person-details-response-all-of-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { Person } from './person'; - -/** -* -* @export -* @interface GetPersonDetailsResponseAllOf -*/ -export interface GetPersonDetailsResponseAllOf { - /** - * - * @type {Person} - */ - 'data': Person; - /** - * - * @type {GetPersonDetailsResponseAllOfAdditionalData} - */ - 'additional_data': GetPersonDetailsResponseAllOfAdditionalData; - /** - * - * @type {GetOrganizationsResponseAllOfRelatedObjects} - */ - 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; -} - diff --git a/src/versions/v1/models/get-person-details-response.ts b/src/versions/v1/models/get-person-details-response.ts deleted file mode 100644 index 0ccbba69..00000000 --- a/src/versions/v1/models/get-person-details-response.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonDetailsResponseAllOf } from './get-person-details-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonDetailsResponseAllOfAdditionalData } from './get-person-details-response-all-of-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { Person } from './person'; - -/** - * @type GetPersonDetailsResponse - * @export - */ -export type GetPersonDetailsResponse = BaseResponse & GetPersonDetailsResponseAllOf; - - diff --git a/src/versions/v1/models/get-person-products-response-all-of.ts b/src/versions/v1/models/get-person-products-response-all-of.ts index e3931128..029ac3c5 100644 --- a/src/versions/v1/models/get-person-products-response-all-of.ts +++ b/src/versions/v1/models/get-person-products-response-all-of.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +import { GetLeadSearchResponseAllOfAdditionalData } from './get-lead-search-response-all-of-additional-data'; // May contain unused imports in some cases // @ts-ignore import { GetPersonProductsResponseAllOfDataInner } from './get-person-products-response-all-of-data-inner'; @@ -33,8 +33,8 @@ export interface GetPersonProductsResponseAllOf { 'data': Array; /** * - * @type {GetActivitiesResponseAdditionalData} + * @type {GetLeadSearchResponseAllOfAdditionalData} */ - 'additional_data': GetActivitiesResponseAdditionalData; + 'additional_data': GetLeadSearchResponseAllOfAdditionalData; } diff --git a/src/versions/v1/models/get-person-products-response.ts b/src/versions/v1/models/get-person-products-response.ts index 27f0b20d..933479d5 100644 --- a/src/versions/v1/models/get-person-products-response.ts +++ b/src/versions/v1/models/get-person-products-response.ts @@ -18,7 +18,7 @@ import { BaseResponse } from './base-response'; // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +import { GetLeadSearchResponseAllOfAdditionalData } from './get-lead-search-response-all-of-additional-data'; // May contain unused imports in some cases // @ts-ignore import { GetPersonProductsResponseAllOf } from './get-person-products-response-all-of'; diff --git a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-organization.ts b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-organization.ts deleted file mode 100644 index b3aa5169..00000000 --- a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-organization.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetPersonSearchResponseAllOfDataItemsInnerItemOrganization -*/ -export interface GetPersonSearchResponseAllOfDataItemsInnerItemOrganization { - /** - * The ID of the organization the person is associated with - * @type {number} - */ - 'id'?: number; - /** - * The name of the organization the person is associated with - * @type {string} - */ - 'name'?: string; -} - diff --git a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-owner.ts b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-owner.ts deleted file mode 100644 index 09989cae..00000000 --- a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-owner.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetPersonSearchResponseAllOfDataItemsInnerItemOwner -*/ -export interface GetPersonSearchResponseAllOfDataItemsInnerItemOwner { - /** - * The ID of the owner of the person - * @type {number} - */ - 'id'?: number; -} - diff --git a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item.ts b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item.ts deleted file mode 100644 index 1d1fb455..00000000 --- a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonSearchResponseAllOfDataItemsInnerItemOrganization } from './get-person-search-response-all-of-data-items-inner-item-organization'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonSearchResponseAllOfDataItemsInnerItemOwner } from './get-person-search-response-all-of-data-items-inner-item-owner'; - -/** -* -* @export -* @interface GetPersonSearchResponseAllOfDataItemsInnerItem -*/ -export interface GetPersonSearchResponseAllOfDataItemsInnerItem { - /** - * The ID of the person - * @type {number} - */ - 'id'?: number; - /** - * The type of the item - * @type {string} - */ - 'type'?: string; - /** - * The name of the person - * @type {string} - */ - 'name'?: string; - /** - * An array of phone numbers - * @type {Array} - */ - 'phones'?: Array; - /** - * An array of email addresses - * @type {Array} - */ - 'emails'?: Array; - /** - * The visibility of the person - * @type {number} - */ - 'visible_to'?: number; - /** - * - * @type {GetPersonSearchResponseAllOfDataItemsInnerItemOwner} - */ - 'owner'?: GetPersonSearchResponseAllOfDataItemsInnerItemOwner; - /** - * - * @type {GetPersonSearchResponseAllOfDataItemsInnerItemOrganization} - */ - 'organization'?: GetPersonSearchResponseAllOfDataItemsInnerItemOrganization; - /** - * Custom fields - * @type {Array} - */ - 'custom_fields'?: Array; - /** - * An array of notes - * @type {Array} - */ - 'notes'?: Array; -} - diff --git a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner.ts b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner.ts deleted file mode 100644 index a02c3fe4..00000000 --- a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonSearchResponseAllOfDataItemsInnerItem } from './get-person-search-response-all-of-data-items-inner-item'; - -/** -* -* @export -* @interface GetPersonSearchResponseAllOfDataItemsInner -*/ -export interface GetPersonSearchResponseAllOfDataItemsInner { - /** - * Search result relevancy - * @type {number} - */ - 'result_score'?: number; - /** - * - * @type {GetPersonSearchResponseAllOfDataItemsInnerItem} - */ - 'item'?: GetPersonSearchResponseAllOfDataItemsInnerItem; -} - diff --git a/src/versions/v1/models/get-person-search-response-all-of-data.ts b/src/versions/v1/models/get-person-search-response-all-of-data.ts deleted file mode 100644 index d952ae05..00000000 --- a/src/versions/v1/models/get-person-search-response-all-of-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonSearchResponseAllOfDataItemsInner } from './get-person-search-response-all-of-data-items-inner'; - -/** -* -* @export -* @interface GetPersonSearchResponseAllOfData -*/ -export interface GetPersonSearchResponseAllOfData { - /** - * The array of found items - * @type {Array} - */ - 'items'?: Array; -} - diff --git a/src/versions/v1/models/get-person-search-response-all-of.ts b/src/versions/v1/models/get-person-search-response-all-of.ts deleted file mode 100644 index 6a5d772c..00000000 --- a/src/versions/v1/models/get-person-search-response-all-of.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonSearchResponseAllOfData } from './get-person-search-response-all-of-data'; - -/** -* -* @export -* @interface GetPersonSearchResponseAllOf -*/ -export interface GetPersonSearchResponseAllOf { - /** - * - * @type {GetPersonSearchResponseAllOfData} - */ - 'data': GetPersonSearchResponseAllOfData; - /** - * - * @type {GetActivitiesResponseAdditionalData} - */ - 'additional_data': GetActivitiesResponseAdditionalData; -} - diff --git a/src/versions/v1/models/get-person-search-response.ts b/src/versions/v1/models/get-person-search-response.ts deleted file mode 100644 index 0875aa50..00000000 --- a/src/versions/v1/models/get-person-search-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonSearchResponseAllOf } from './get-person-search-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonSearchResponseAllOfData } from './get-person-search-response-all-of-data'; - -/** - * @type GetPersonSearchResponse - * @export - */ -export type GetPersonSearchResponse = BaseResponse & GetPersonSearchResponseAllOf; - - diff --git a/src/versions/v1/models/get-persons-collection200-response.ts b/src/versions/v1/models/get-persons-collection200-response.ts deleted file mode 100644 index 161ca3cd..00000000 --- a/src/versions/v1/models/get-persons-collection200-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { PersonsCollectionResponseObject } from './persons-collection-response-object'; - -/** -* -* @export -* @interface GetPersonsCollection200Response -*/ -export interface GetPersonsCollection200Response { - /** - * - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {Array} - */ - 'data'?: Array; - /** - * - * @type {GetActivitiesCollectionResponseAdditionalData} - */ - 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; -} - diff --git a/src/versions/v1/models/get-persons-response-all-of-related-objects.ts b/src/versions/v1/models/get-persons-response-all-of-related-objects.ts deleted file mode 100644 index 2f1f2801..00000000 --- a/src/versions/v1/models/get-persons-response-all-of-related-objects.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; -// May contain unused imports in some cases -// @ts-ignore -import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; - -/** -* -* @export -* @interface GetPersonsResponseAllOfRelatedObjects -*/ -export interface GetPersonsResponseAllOfRelatedObjects { - /** - * - * @type {RelatedOrganizationDataWithActiveFlag} - */ - 'organization'?: RelatedOrganizationDataWithActiveFlag; - /** - * - * @type {GetActivitiesResponseRelatedObjectsUser} - */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; -} - diff --git a/src/versions/v1/models/get-persons-response-all-of.ts b/src/versions/v1/models/get-persons-response-all-of.ts deleted file mode 100644 index a8fab19b..00000000 --- a/src/versions/v1/models/get-persons-response-all-of.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOfRelatedObjects } from './get-persons-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { Person } from './person'; - -/** -* -* @export -* @interface GetPersonsResponseAllOf -*/ -export interface GetPersonsResponseAllOf { - /** - * The array of persons - * @type {Array} - */ - 'data': Array; - /** - * - * @type {GetFieldsResponseAllOfAdditionalData} - */ - 'additional_data': GetFieldsResponseAllOfAdditionalData; - /** - * - * @type {GetPersonsResponseAllOfRelatedObjects} - */ - 'related_objects': GetPersonsResponseAllOfRelatedObjects; -} - diff --git a/src/versions/v1/models/get-persons-response.ts b/src/versions/v1/models/get-persons-response.ts deleted file mode 100644 index d1784eb5..00000000 --- a/src/versions/v1/models/get-persons-response.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOf } from './get-persons-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOfRelatedObjects } from './get-persons-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { Person } from './person'; - -/** - * @type GetPersonsResponse - * @export - */ -export type GetPersonsResponse = BaseResponse & GetPersonsResponseAllOf; - - diff --git a/src/versions/v1/models/get-persons-response1-all-of.ts b/src/versions/v1/models/get-persons-response1-all-of.ts deleted file mode 100644 index 8738ccbb..00000000 --- a/src/versions/v1/models/get-persons-response1-all-of.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { Person } from './person'; - -/** -* -* @export -* @interface GetPersonsResponse1AllOf -*/ -export interface GetPersonsResponse1AllOf { - /** - * The array of persons - * @type {Array} - */ - 'data': Array; - /** - * - * @type {GetActivitiesResponseAdditionalData} - */ - 'additional_data': GetActivitiesResponseAdditionalData; - /** - * - * @type {GetOrganizationsResponseAllOfRelatedObjects} - */ - 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; -} - diff --git a/src/versions/v1/models/get-persons-response1.ts b/src/versions/v1/models/get-persons-response1.ts deleted file mode 100644 index 5092c7b7..00000000 --- a/src/versions/v1/models/get-persons-response1.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponse1AllOf } from './get-persons-response1-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { Person } from './person'; - -/** - * @type GetPersonsResponse1 - * @export - */ -export type GetPersonsResponse1 = BaseResponse & GetPersonsResponse1AllOf; - - diff --git a/src/versions/v1/models/get-pipeline-response-all-of.ts b/src/versions/v1/models/get-pipeline-response-all-of.ts deleted file mode 100644 index 4eaa8f6d..00000000 --- a/src/versions/v1/models/get-pipeline-response-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { PipelineDetails } from './pipeline-details'; - -/** -* -* @export -* @interface GetPipelineResponseAllOf -*/ -export interface GetPipelineResponseAllOf { - /** - * - * @type {PipelineDetails} - */ - 'data'?: PipelineDetails; -} - diff --git a/src/versions/v1/models/get-pipeline-response.ts b/src/versions/v1/models/get-pipeline-response.ts deleted file mode 100644 index 155acc4f..00000000 --- a/src/versions/v1/models/get-pipeline-response.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPipelineResponseAllOf } from './get-pipeline-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { PipelineDetails } from './pipeline-details'; - -/** - * @type GetPipelineResponse - * @export - */ -export type GetPipelineResponse = BaseResponse & GetPipelineResponseAllOf; - - diff --git a/src/versions/v1/models/get-pipelines-response-all-of.ts b/src/versions/v1/models/get-pipelines-response-all-of.ts deleted file mode 100644 index ee081bb5..00000000 --- a/src/versions/v1/models/get-pipelines-response-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasePipelineWithSelectedFlag } from './base-pipeline-with-selected-flag'; - -/** -* -* @export -* @interface GetPipelinesResponseAllOf -*/ -export interface GetPipelinesResponseAllOf { - /** - * Pipelines array - * @type {Array} - */ - 'data'?: Array; -} - diff --git a/src/versions/v1/models/get-pipelines-response.ts b/src/versions/v1/models/get-pipelines-response.ts deleted file mode 100644 index f0681817..00000000 --- a/src/versions/v1/models/get-pipelines-response.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasePipelineWithSelectedFlag } from './base-pipeline-with-selected-flag'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPipelinesResponseAllOf } from './get-pipelines-response-all-of'; - -/** - * @type GetPipelinesResponse - * @export - */ -export type GetPipelinesResponse = BaseResponse & GetPipelinesResponseAllOf; - - diff --git a/src/versions/v1/models/get-product-attachment-details-response-data.ts b/src/versions/v1/models/get-product-attachment-details-response-data.ts deleted file mode 100644 index 926bbc35..00000000 --- a/src/versions/v1/models/get-product-attachment-details-response-data.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetAddProductAttachmentDetailsResponseDataAllOfAllOf } from './get-add-product-attachment-details-response-data-all-of-all-of'; - -/** - * @type GetProductAttachmentDetailsResponseData - * The updated product object attached to the deal - * @export - */ -export type GetProductAttachmentDetailsResponseData = GetAddProductAttachmentDetailsResponseDataAllOfAllOf; - - diff --git a/src/versions/v1/models/get-product-attachment-details-response.ts b/src/versions/v1/models/get-product-attachment-details-response.ts deleted file mode 100644 index 8e2f35cc..00000000 --- a/src/versions/v1/models/get-product-attachment-details-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetProductAttachmentDetailsResponseData } from './get-product-attachment-details-response-data'; - -/** -* -* @export -* @interface GetProductAttachmentDetailsResponse -*/ -export interface GetProductAttachmentDetailsResponse { - /** - * If the response is successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {GetProductAttachmentDetailsResponseData} - */ - 'data'?: GetProductAttachmentDetailsResponseData; -} - diff --git a/src/versions/v1/models/get-product-response.ts b/src/versions/v1/models/get-product-response.ts deleted file mode 100644 index c5960463..00000000 --- a/src/versions/v1/models/get-product-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { ProductListItemProduct } from './product-list-item-product'; - -/** -* -* @export -* @interface GetProductResponse -*/ -export interface GetProductResponse { - /** - * If the response is successful or not - * @type {boolean} - */ - 'success': boolean; - /** - * - * @type {ProductListItemProduct} - */ - 'data': ProductListItemProduct; - /** - * - * @type {GetActivitiesResponseRelatedObjects} - */ - 'related_objects': GetActivitiesResponseRelatedObjects; -} - diff --git a/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item-owner.ts b/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item-owner.ts deleted file mode 100644 index e1c45c31..00000000 --- a/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item-owner.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetProductSearchResponseAllOfDataItemsInnerItemOwner -*/ -export interface GetProductSearchResponseAllOfDataItemsInnerItemOwner { - /** - * The ID of the owner of the product - * @type {number} - */ - 'id'?: number; -} - diff --git a/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item.ts b/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item.ts deleted file mode 100644 index f9db43f2..00000000 --- a/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetProductSearchResponseAllOfDataItemsInnerItemOwner } from './get-product-search-response-all-of-data-items-inner-item-owner'; - -/** -* -* @export -* @interface GetProductSearchResponseAllOfDataItemsInnerItem -*/ -export interface GetProductSearchResponseAllOfDataItemsInnerItem { - /** - * The ID of the product - * @type {number} - */ - 'id'?: number; - /** - * The type of the item - * @type {string} - */ - 'type'?: string; - /** - * The name of the product - * @type {string} - */ - 'name'?: string; - /** - * The code of the product - * @type {number} - */ - 'code'?: number; - /** - * The visibility of the product - * @type {number} - */ - 'visible_to'?: number; - /** - * - * @type {GetProductSearchResponseAllOfDataItemsInnerItemOwner} - */ - 'owner'?: GetProductSearchResponseAllOfDataItemsInnerItemOwner; - /** - * The custom fields - * @type {Array} - */ - 'custom_fields'?: Array; -} - diff --git a/src/versions/v1/models/get-product-search-response-all-of-data-items-inner.ts b/src/versions/v1/models/get-product-search-response-all-of-data-items-inner.ts deleted file mode 100644 index e349be8b..00000000 --- a/src/versions/v1/models/get-product-search-response-all-of-data-items-inner.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetProductSearchResponseAllOfDataItemsInnerItem } from './get-product-search-response-all-of-data-items-inner-item'; - -/** -* -* @export -* @interface GetProductSearchResponseAllOfDataItemsInner -*/ -export interface GetProductSearchResponseAllOfDataItemsInner { - /** - * Search result relevancy - * @type {number} - */ - 'result_score'?: number; - /** - * - * @type {GetProductSearchResponseAllOfDataItemsInnerItem} - */ - 'item'?: GetProductSearchResponseAllOfDataItemsInnerItem; -} - diff --git a/src/versions/v1/models/get-product-search-response-all-of-data.ts b/src/versions/v1/models/get-product-search-response-all-of-data.ts deleted file mode 100644 index 3af56a92..00000000 --- a/src/versions/v1/models/get-product-search-response-all-of-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetProductSearchResponseAllOfDataItemsInner } from './get-product-search-response-all-of-data-items-inner'; - -/** -* -* @export -* @interface GetProductSearchResponseAllOfData -*/ -export interface GetProductSearchResponseAllOfData { - /** - * The array of found items - * @type {Array} - */ - 'items'?: Array; -} - diff --git a/src/versions/v1/models/get-product-search-response-all-of.ts b/src/versions/v1/models/get-product-search-response-all-of.ts deleted file mode 100644 index ae9bd71e..00000000 --- a/src/versions/v1/models/get-product-search-response-all-of.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductSearchResponseAllOfData } from './get-product-search-response-all-of-data'; - -/** -* -* @export -* @interface GetProductSearchResponseAllOf -*/ -export interface GetProductSearchResponseAllOf { - /** - * - * @type {GetProductSearchResponseAllOfData} - */ - 'data': GetProductSearchResponseAllOfData; - /** - * - * @type {GetActivitiesResponseAdditionalData} - */ - 'additional_data': GetActivitiesResponseAdditionalData; -} - diff --git a/src/versions/v1/models/get-product-search-response.ts b/src/versions/v1/models/get-product-search-response.ts deleted file mode 100644 index 0eb02a97..00000000 --- a/src/versions/v1/models/get-product-search-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductSearchResponseAllOf } from './get-product-search-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductSearchResponseAllOfData } from './get-product-search-response-all-of-data'; - -/** - * @type GetProductSearchResponse - * @export - */ -export type GetProductSearchResponse = BaseResponse & GetProductSearchResponseAllOf; - - diff --git a/src/versions/v1/models/get-products-response-all-of-additional-data-all-of.ts b/src/versions/v1/models/get-products-response-all-of-additional-data-all-of.ts deleted file mode 100644 index 5aa2e619..00000000 --- a/src/versions/v1/models/get-products-response-all-of-additional-data-all-of.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetProductsResponseAllOfAdditionalDataAllOf -*/ -export interface GetProductsResponseAllOfAdditionalDataAllOf { - /** - * The total quantity of the products - * @type {number} - */ - 'products_quantity_total'?: number; - /** - * The total sum of the products - * @type {number} - */ - 'products_sum_total'?: number; - /** - * The total formatted quantity of the products - * @type {string} - */ - 'products_quantity_total_formatted'?: string; - /** - * The total formatted sum of the products - * @type {string} - */ - 'products_sum_total_formatted'?: string; -} - diff --git a/src/versions/v1/models/get-products-response-all-of-additional-data.ts b/src/versions/v1/models/get-products-response-all-of-additional-data.ts deleted file mode 100644 index 93cc3c8c..00000000 --- a/src/versions/v1/models/get-products-response-all-of-additional-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseAdditionalDataPagination } from './get-activities-response-additional-data-pagination'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductsResponseAllOfAdditionalDataAllOf } from './get-products-response-all-of-additional-data-all-of'; - -/** - * @type GetProductsResponseAllOfAdditionalData - * @export - */ -export type GetProductsResponseAllOfAdditionalData = GetActivitiesResponseAdditionalData & GetProductsResponseAllOfAdditionalDataAllOf; - - diff --git a/src/versions/v1/models/get-products-response-all-of-related-objects.ts b/src/versions/v1/models/get-products-response-all-of-related-objects.ts deleted file mode 100644 index b754e3b4..00000000 --- a/src/versions/v1/models/get-products-response-all-of-related-objects.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; - -/** -* -* @export -* @interface GetProductsResponseAllOfRelatedObjects -*/ -export interface GetProductsResponseAllOfRelatedObjects { - /** - * - * @type {GetActivitiesResponseRelatedObjectsUser} - */ - 'user'?: GetActivitiesResponseRelatedObjectsUser; -} - diff --git a/src/versions/v1/models/get-products-response-all-of.ts b/src/versions/v1/models/get-products-response-all-of.ts deleted file mode 100644 index a839c200..00000000 --- a/src/versions/v1/models/get-products-response-all-of.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetProductsResponseAllOfAdditionalData } from './get-products-response-all-of-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductsResponseAllOfRelatedObjects } from './get-products-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { ProductListItem } from './product-list-item'; - -/** -* -* @export -* @interface GetProductsResponseAllOf -*/ -export interface GetProductsResponseAllOf { - /** - * The array of products - * @type {Array} - */ - 'data': Array; - /** - * - * @type {GetProductsResponseAllOfAdditionalData} - */ - 'additional_data': GetProductsResponseAllOfAdditionalData; - /** - * - * @type {GetProductsResponseAllOfRelatedObjects} - */ - 'related_objects': GetProductsResponseAllOfRelatedObjects; -} - diff --git a/src/versions/v1/models/get-products-response.ts b/src/versions/v1/models/get-products-response.ts deleted file mode 100644 index ac13444f..00000000 --- a/src/versions/v1/models/get-products-response.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductsResponseAllOf } from './get-products-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductsResponseAllOfAdditionalData } from './get-products-response-all-of-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductsResponseAllOfRelatedObjects } from './get-products-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { ProductListItem } from './product-list-item'; - -/** - * @type GetProductsResponse - * @export - */ -export type GetProductsResponse = BaseResponse & GetProductsResponseAllOf; - - diff --git a/src/versions/v1/models/get-products-response1-additional-data.ts b/src/versions/v1/models/get-products-response1-additional-data.ts deleted file mode 100644 index 2201e6bd..00000000 --- a/src/versions/v1/models/get-products-response1-additional-data.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* Any additional data related to the products -* @export -* @interface GetProductsResponse1AdditionalData -*/ -export interface GetProductsResponse1AdditionalData { - /** - * Pagination start - * @type {number} - */ - 'start'?: number; - /** - * Items shown per page - * @type {number} - */ - 'limit'?: number; - /** - * If there are more list items in the collection than displayed or not - * @type {boolean} - */ - 'more_items_in_collection'?: boolean; -} - diff --git a/src/versions/v1/models/get-products-response1.ts b/src/versions/v1/models/get-products-response1.ts deleted file mode 100644 index ef66728c..00000000 --- a/src/versions/v1/models/get-products-response1.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductResponse } from './get-product-response'; - -/** -* -* @export -* @interface GetProductsResponse1 -*/ -export interface GetProductsResponse1 { - /** - * If the response is successful or not - * @type {boolean} - */ - 'success': boolean; - /** - * Array containing data for all products - * @type {Array} - */ - 'data': Array; - /** - * - * @type {GetFieldsResponseAllOfAdditionalData} - */ - 'additional_data': GetFieldsResponseAllOfAdditionalData; - /** - * - * @type {GetActivitiesResponseRelatedObjects} - */ - 'related_objects': GetActivitiesResponseRelatedObjects; -} - diff --git a/src/versions/v1/models/get-project-templates-response.ts b/src/versions/v1/models/get-project-templates-response.ts index 7995099c..f966be92 100644 --- a/src/versions/v1/models/get-project-templates-response.ts +++ b/src/versions/v1/models/get-project-templates-response.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +import { GetChangelogResponseAllOfAdditionalData } from './get-changelog-response-all-of-additional-data'; // May contain unused imports in some cases // @ts-ignore import { TemplateResponseObject } from './template-response-object'; @@ -38,8 +38,8 @@ export interface GetProjectTemplatesResponse { 'data'?: Array; /** * - * @type {GetActivitiesCollectionResponseAdditionalData} + * @type {GetChangelogResponseAllOfAdditionalData} */ - 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; + 'additional_data'?: GetChangelogResponseAllOfAdditionalData; } diff --git a/src/versions/v1/models/get-projects-response.ts b/src/versions/v1/models/get-projects-response.ts index 7dc5844b..806244ee 100644 --- a/src/versions/v1/models/get-projects-response.ts +++ b/src/versions/v1/models/get-projects-response.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +import { GetChangelogResponseAllOfAdditionalData } from './get-changelog-response-all-of-additional-data'; // May contain unused imports in some cases // @ts-ignore import { ProjectResponseObject } from './project-response-object'; @@ -38,8 +38,8 @@ export interface GetProjectsResponse { 'data'?: Array; /** * - * @type {GetActivitiesCollectionResponseAdditionalData} + * @type {GetChangelogResponseAllOfAdditionalData} */ - 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; + 'additional_data'?: GetChangelogResponseAllOfAdditionalData; } diff --git a/src/versions/v1/models/get-stage-response-data.ts b/src/versions/v1/models/get-stage-response-data.ts deleted file mode 100644 index 6c67e285..00000000 --- a/src/versions/v1/models/get-stage-response-data.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseStage } from './base-stage'; - -/** - * @type GetStageResponseData - * The stage object - * @export - */ -export type GetStageResponseData = BaseStage; - - diff --git a/src/versions/v1/models/get-stage-response.ts b/src/versions/v1/models/get-stage-response.ts deleted file mode 100644 index 402e2208..00000000 --- a/src/versions/v1/models/get-stage-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetStageResponseData } from './get-stage-response-data'; - -/** -* -* @export -* @interface GetStageResponse -*/ -export interface GetStageResponse { - /** - * If the request was successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {GetStageResponseData} - */ - 'data'?: GetStageResponseData; -} - diff --git a/src/versions/v1/models/get-stages-response-data-inner.ts b/src/versions/v1/models/get-stages-response-data-inner.ts deleted file mode 100644 index 8be106ff..00000000 --- a/src/versions/v1/models/get-stages-response-data-inner.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseStage } from './base-stage'; -// May contain unused imports in some cases -// @ts-ignore -import { StageWithPipelineInfo } from './stage-with-pipeline-info'; - -/** - * @type GetStagesResponseDataInner - * @export - */ -export type GetStagesResponseDataInner = BaseStage & StageWithPipelineInfo; - - diff --git a/src/versions/v1/models/get-stages-response.ts b/src/versions/v1/models/get-stages-response.ts deleted file mode 100644 index 52b83ab0..00000000 --- a/src/versions/v1/models/get-stages-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetStagesResponseDataInner } from './get-stages-response-data-inner'; - -/** -* -* @export -* @interface GetStagesResponse -*/ -export interface GetStagesResponse { - /** - * If the request was successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * The array of stages - * @type {Array} - */ - 'data'?: Array; -} - diff --git a/src/versions/v1/models/get-subscriptions-id-response-data.ts b/src/versions/v1/models/get-subscriptions-id-response-data.ts deleted file mode 100644 index 6aeafc7e..00000000 --- a/src/versions/v1/models/get-subscriptions-id-response-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { SubscriptionItem } from './subscription-item'; - -/** -* -* @export -* @interface GetSubscriptionsIdResponseData -*/ -export interface GetSubscriptionsIdResponseData { - /** - * - * @type {SubscriptionItem} - */ - 'data': SubscriptionItem; -} - diff --git a/src/versions/v1/models/get-subscriptions-id-response.ts b/src/versions/v1/models/get-subscriptions-id-response.ts deleted file mode 100644 index dcb975fd..00000000 --- a/src/versions/v1/models/get-subscriptions-id-response.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetSubscriptionsIdResponseData } from './get-subscriptions-id-response-data'; -// May contain unused imports in some cases -// @ts-ignore -import { SubscriptionItem } from './subscription-item'; - -/** - * @type GetSubscriptionsIdResponse - * @export - */ -export type GetSubscriptionsIdResponse = BaseResponse & GetSubscriptionsIdResponseData; - - diff --git a/src/versions/v1/models/get-tasks-response.ts b/src/versions/v1/models/get-tasks-response.ts index 22756bb5..0d146954 100644 --- a/src/versions/v1/models/get-tasks-response.ts +++ b/src/versions/v1/models/get-tasks-response.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +import { GetChangelogResponseAllOfAdditionalData } from './get-changelog-response-all-of-additional-data'; // May contain unused imports in some cases // @ts-ignore import { TaskResponseObject } from './task-response-object'; @@ -38,8 +38,8 @@ export interface GetTasksResponse { 'data'?: Array; /** * - * @type {GetActivitiesCollectionResponseAdditionalData} + * @type {GetChangelogResponseAllOfAdditionalData} */ - 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; + 'additional_data'?: GetChangelogResponseAllOfAdditionalData; } diff --git a/src/versions/v1/models/index.ts b/src/versions/v1/models/index.ts index 83a8b4c0..61c3a515 100644 --- a/src/versions/v1/models/index.ts +++ b/src/versions/v1/models/index.ts @@ -1,20 +1,9 @@ export * from './activity'; export * from './activity-all-of'; -export * from './activity-all-of1'; export * from './activity-collection-response-object'; export * from './activity-collection-response-object-all-of'; -export * from './activity-distribution'; -export * from './activity-distribution-data'; -export * from './activity-distribution-data-with-additional-data'; -export * from './activity-distribution-item'; +export * from './activity-collection-response-object-all-of1'; export * from './activity-type'; -export * from './activity-type-count'; -export * from './add-activity-request'; -export * from './add-activity-request-all-of'; -export * from './add-activity-response'; -export * from './add-activity-response-additional-data'; -export * from './add-activity-response-related-objects'; -export * from './add-activity-response-related-objects-person'; export * from './add-activity-type-request'; export * from './add-call-log-request'; export * from './add-channel-bad-request-response'; @@ -28,11 +17,6 @@ export * from './add-deal-follower-request'; export * from './add-deal-follower-response'; export * from './add-deal-follower-response-data'; export * from './add-deal-participant-request'; -export * from './add-deal-product-request'; -export * from './add-deal-product-request-all-of'; -export * from './add-deal-product-request-all-of1'; -export * from './add-deal-product-request-all-of2'; -export * from './add-deal-request'; export * from './add-file-response'; export * from './add-filter-request'; export * from './add-filters-response'; @@ -51,10 +35,6 @@ export * from './add-organization-follower-response'; export * from './add-organization-relationship-request'; export * from './add-organization-relationship-response'; export * from './add-organization-relationship-response-all-of'; -export * from './add-organization-request'; -export * from './add-organization-request-all-of'; -export * from './add-organization-response'; -export * from './add-organization-response-all-of'; export * from './add-participants-response'; export * from './add-participants-response-related-objects'; export * from './add-person-follower-request'; @@ -63,17 +43,7 @@ export * from './add-person-follower-response-all-of'; export * from './add-person-follower-response-all-of-data'; export * from './add-person-picture-response'; export * from './add-person-picture-response-all-of'; -export * from './add-person-request'; -export * from './add-person-request-all-of'; -export * from './add-person-response'; -export * from './add-person-response-all-of'; -export * from './add-pipeline-response'; -export * from './add-pipeline-response-all-of'; export * from './add-product-follower-request'; -export * from './add-product-request'; -export * from './add-product-request-all-of'; -export * from './add-product-request-all-of1'; -export * from './add-product-request-all-of2'; export * from './add-project-request'; export * from './add-project-request-all-of'; export * from './add-project-response'; @@ -86,7 +56,6 @@ export * from './add-role-request'; export * from './add-roles-response'; export * from './add-roles-response-all-of'; export * from './add-roles-response-data'; -export * from './add-stage-request'; export * from './add-task-request'; export * from './add-task-response'; export * from './add-team-request'; @@ -103,29 +72,16 @@ export * from './base-deal'; export * from './base-organization-item'; export * from './base-organization-item-all-of'; export * from './base-organization-item-all-of-picture-id'; -export * from './base-organization-item-with-edit-name-flag'; -export * from './base-organization-item-with-edit-name-flag-all-of'; export * from './base-pipeline'; -export * from './base-pipeline1'; -export * from './base-pipeline-with-selected-flag'; -export * from './base-pipeline-with-selected-flag-all-of'; -export * from './base-product'; export * from './base-response'; export * from './base-response-all-of'; export * from './base-role-request'; export * from './base-stage'; -export * from './base-stage1'; export * from './base-team'; export * from './base-team-additional-properties'; export * from './base-user'; export * from './base-webhook'; -export * from './basic-deal'; -export * from './basic-deal-product-request'; -export * from './basic-deal-product-request-all-of'; export * from './basic-goal-request'; -export * from './basic-organization'; -export * from './basic-person-request'; -export * from './basic-person-request-email-inner'; export * from './call-log-bad-request-response'; export * from './call-log-conflict-response'; export * from './call-log-forbidden-response'; @@ -140,15 +96,9 @@ export * from './create-field-request-all-of1'; export * from './deal'; export * from './deal-all-of'; export * from './deal-all-of-creator-user-id'; -export * from './deal-collection-response-object'; export * from './deal-count-and-activity-info'; export * from './deal-count-and-activity-info-all-of'; export * from './deal-count-and-activity-info-all-of1'; -export * from './deal-non-strict-with-details'; -export * from './deal-non-strict-with-details-all-of'; -export * from './deal-non-strict-with-details-all-of-age'; -export * from './deal-non-strict-with-details-all-of-average-time-to-won'; -export * from './deal-non-strict-with-details-all-of-stay-in-pipeline-stages'; export * from './deal-organization-data-with-id'; export * from './deal-organization-data-with-id-all-of'; export * from './deal-organization-data-with-id-all-of1'; @@ -162,17 +112,12 @@ export * from './deal-person-data-with-id-all-of'; export * from './deal-person-data-with-id-all-of1'; export * from './deal-person-data-with-id-all-of-email-inner'; export * from './deal-person-data-with-id-all-of-phone-inner'; -export * from './deal-product-request-body'; -export * from './deal-product-request-body1'; export * from './deal-strict'; export * from './deal-strict-all-of'; -export * from './deal-title-param'; export * from './deal-user-data-with-id'; export * from './deal-user-data-with-id-all-of'; export * from './deal-user-data-with-id-all-of1'; export * from './deals-count-and-activity-info'; -export * from './delete-activity-response'; -export * from './delete-activity-response-data'; export * from './delete-channel200-response'; export * from './delete-comment-response'; export * from './delete-conversation-forbidden-error-response'; @@ -183,10 +128,6 @@ export * from './delete-deal-follower-response'; export * from './delete-deal-follower-response-data'; export * from './delete-deal-participant-response'; export * from './delete-deal-participant-response-data'; -export * from './delete-deal-product-response'; -export * from './delete-deal-product-response-data'; -export * from './delete-deal-response'; -export * from './delete-deal-response-data'; export * from './delete-fields-response'; export * from './delete-fields-response-all-of'; export * from './delete-fields-response-all-of-data'; @@ -209,19 +150,14 @@ export * from './delete-organization-follower-response-data'; export * from './delete-organization-relationship-response'; export * from './delete-organization-relationship-response-all-of'; export * from './delete-organization-relationship-response-all-of-data'; -export * from './delete-organization-response'; -export * from './delete-organization-response-data'; export * from './delete-person-response'; export * from './delete-person-response-all-of'; export * from './delete-person-response-all-of-data'; -export * from './delete-pipeline-response'; -export * from './delete-pipeline-response-data'; export * from './delete-product-field-response'; export * from './delete-product-fields-response'; export * from './delete-product-fields-response-data'; export * from './delete-product-follower-response'; -export * from './delete-product-response'; -export * from './delete-product-response-data'; +export * from './delete-product-follower-response-data'; export * from './delete-project'; export * from './delete-project-data'; export * from './delete-project-response'; @@ -234,8 +170,6 @@ export * from './delete-role-assignment-response-data'; export * from './delete-role-response'; export * from './delete-role-response-data'; export * from './delete-role-response-data-data'; -export * from './delete-stage-response'; -export * from './delete-stage-response-data'; export * from './delete-task'; export * from './delete-task-data'; export * from './delete-task-response'; @@ -245,29 +179,11 @@ export * from './delete-webhook403-response-all-of'; export * from './fail-response'; export * from './field'; export * from './filter'; -export * from './follower-data'; export * from './full-role'; export * from './full-role-all-of'; export * from './get-activities-collection-response'; -export * from './get-activities-collection-response-additional-data'; -export * from './get-activities-response'; -export * from './get-activities-response-additional-data'; -export * from './get-activities-response-additional-data-pagination'; -export * from './get-activities-response-related-objects'; -export * from './get-activities-response-related-objects-person'; -export * from './get-activities-response-related-objects-user'; -export * from './get-activity-response'; export * from './get-activity-types-response'; export * from './get-activity-types-response-all-of'; -export * from './get-add-product-attachment-details-response'; -export * from './get-add-product-attachment-details-response-data'; -export * from './get-add-product-attachment-details-response-data-all-of'; -export * from './get-add-product-attachment-details-response-data-all-of-all-of'; -export * from './get-add-product-attachment-details-response-data-all-of-all-of1'; -export * from './get-add-product-attachment-details-response-data-all-of-all-of-all-of'; -export * from './get-added-deal-response'; -export * from './get-associated-activities-response'; -export * from './get-associated-activities-response-all-of'; export * from './get-associated-deals-response'; export * from './get-associated-deals-response-all-of'; export * from './get-associated-deals-response-all-of-related-objects'; @@ -296,6 +212,7 @@ export * from './get-call-logs-response'; export * from './get-call-logs-response-additional-data'; export * from './get-changelog-response'; export * from './get-changelog-response-all-of'; +export * from './get-changelog-response-all-of-additional-data'; export * from './get-changelog-response-all-of-data-inner'; export * from './get-comments-response'; export * from './get-currencies-response'; @@ -305,29 +222,15 @@ export * from './get-current-user-response-all-of'; export * from './get-current-user-response-all-of-data'; export * from './get-current-user-response-all-of-data-all-of'; export * from './get-current-user-response-all-of-data-all-of-language'; -export * from './get-deal-activities-response'; -export * from './get-deal-activities-response-all-of'; -export * from './get-deal-activities-response-all-of-related-objects'; export * from './get-deal-participants-response'; -export * from './get-deal-response'; -export * from './get-deal-response-additional-data'; -export * from './get-deal-response-related-objects'; -export * from './get-deal-search-response'; -export * from './get-deal-search-response-all-of'; -export * from './get-deal-search-response-all-of-data'; -export * from './get-deal-search-response-all-of-data-items-inner'; -export * from './get-deal-search-response-all-of-data-items-inner-item'; -export * from './get-deal-search-response-all-of-data-items-inner-item-organization'; -export * from './get-deal-search-response-all-of-data-items-inner-item-owner'; -export * from './get-deal-search-response-all-of-data-items-inner-item-person'; -export * from './get-deal-search-response-all-of-data-items-inner-item-stage'; export * from './get-deal-updates-response'; export * from './get-deal-updates-response-all-of'; export * from './get-deal-updates-response-all-of-data-inner'; export * from './get-deal-updates-response-all-of-related-objects'; -export * from './get-deals-collection-response'; export * from './get-deals-response'; export * from './get-deals-response-related-objects'; +export * from './get-deals-response-related-objects-person'; +export * from './get-deals-response-related-objects-user'; export * from './get-deals-summary-response'; export * from './get-deals-summary-response-data'; export * from './get-deals-summary-response-data-values-total'; @@ -356,18 +259,14 @@ export * from './get-goal-result-response'; export * from './get-goal-result-response-data'; export * from './get-goals-response'; export * from './get-goals-response-data'; -export * from './get-item-search-field-response'; -export * from './get-item-search-field-response-all-of'; -export * from './get-item-search-field-response-all-of-data-inner'; -export * from './get-item-search-response'; -export * from './get-item-search-response-all-of'; -export * from './get-item-search-response-all-of-data'; export * from './get-lead-id-response'; export * from './get-lead-id-response-data'; export * from './get-lead-labels-response'; export * from './get-lead-response'; export * from './get-lead-search-response'; export * from './get-lead-search-response-all-of'; +export * from './get-lead-search-response-all-of-additional-data'; +export * from './get-lead-search-response-all-of-additional-data-pagination'; export * from './get-lead-search-response-all-of-data'; export * from './get-leads-response'; export * from './get-leads-source-response'; @@ -396,31 +295,11 @@ export * from './get-note-fields-response-all-of-data-inner-all-of'; export * from './get-note-fields-response-all-of-data-inner-all-of-options-inner'; export * from './get-notes-response'; export * from './get-notes-response-additional-data'; -export * from './get-organization-item'; -export * from './get-organization-item-all-of'; export * from './get-organization-relationship-response'; export * from './get-organization-relationship-response-all-of'; export * from './get-organization-relationships-response'; export * from './get-organization-relationships-response-all-of'; export * from './get-organization-relationships-response-all-of-related-objects'; -export * from './get-organization-response'; -export * from './get-organization-response-all-of'; -export * from './get-organization-response-all-of-additional-data'; -export * from './get-organization-response-all-of-additional-data-followers'; -export * from './get-organization-response-all-of-additional-data-followers-followeruserid'; -export * from './get-organization-response-all-of-additional-data-followers-followeruseridall-of'; -export * from './get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of'; -export * from './get-organization-search-response'; -export * from './get-organization-search-response-all-of'; -export * from './get-organization-search-response-all-of-data'; -export * from './get-organization-search-response-all-of-data-items-inner'; -export * from './get-organization-search-response-all-of-data-items-inner-item'; -export * from './get-organizations-collection200-response'; -export * from './get-organizations-collection-response-object'; -export * from './get-organizations-collection-response-object-all-of'; -export * from './get-organizations-response'; -export * from './get-organizations-response-all-of'; -export * from './get-organizations-response-all-of-related-objects'; export * from './get-participants-changelog-response'; export * from './get-permission-set-response'; export * from './get-permission-set-response-all-of'; @@ -429,28 +308,12 @@ export * from './get-permission-sets-response-all-of'; export * from './get-permitted-users-response'; export * from './get-permitted-users-response1'; export * from './get-permitted-users-response1-all-of'; -export * from './get-person-details-response'; -export * from './get-person-details-response-all-of'; -export * from './get-person-details-response-all-of-additional-data'; export * from './get-person-products-response'; export * from './get-person-products-response-all-of'; export * from './get-person-products-response-all-of-data-inner'; export * from './get-person-products-response-all-of-data-inner-dealid'; export * from './get-person-products-response-all-of-data-inner-dealiddeal'; export * from './get-person-products-response-all-of-data-inner-dealidproduct'; -export * from './get-person-search-response'; -export * from './get-person-search-response-all-of'; -export * from './get-person-search-response-all-of-data'; -export * from './get-person-search-response-all-of-data-items-inner'; -export * from './get-person-search-response-all-of-data-items-inner-item'; -export * from './get-person-search-response-all-of-data-items-inner-item-organization'; -export * from './get-person-search-response-all-of-data-items-inner-item-owner'; -export * from './get-persons-collection200-response'; -export * from './get-persons-response'; -export * from './get-persons-response1'; -export * from './get-persons-response1-all-of'; -export * from './get-persons-response-all-of'; -export * from './get-persons-response-all-of-related-objects'; export * from './get-pipeline-deals-conversion-rates-in-response'; export * from './get-pipeline-deals-conversion-rates-in-response-all-of'; export * from './get-pipeline-deals-conversion-rates-in-response-all-of-data'; @@ -464,12 +327,6 @@ export * from './get-pipeline-deals-movements-statistics-response-all-of-data-mo export * from './get-pipeline-deals-movements-statistics-response-all-of-data-new-deals'; export * from './get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-formatted-values'; export * from './get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-values'; -export * from './get-pipeline-response'; -export * from './get-pipeline-response-all-of'; -export * from './get-pipelines-response'; -export * from './get-pipelines-response-all-of'; -export * from './get-product-attachment-details-response'; -export * from './get-product-attachment-details-response-data'; export * from './get-product-field-response'; export * from './get-product-field-response-data'; export * from './get-product-fields-response'; @@ -477,19 +334,6 @@ export * from './get-product-fields-response-data-inner'; export * from './get-product-followers-response'; export * from './get-product-followers-response-all-of'; export * from './get-product-followers-response-all-of-data-inner'; -export * from './get-product-response'; -export * from './get-product-search-response'; -export * from './get-product-search-response-all-of'; -export * from './get-product-search-response-all-of-data'; -export * from './get-product-search-response-all-of-data-items-inner'; -export * from './get-product-search-response-all-of-data-items-inner-item'; -export * from './get-product-search-response-all-of-data-items-inner-item-owner'; -export * from './get-products-response'; -export * from './get-products-response1'; -export * from './get-products-response-all-of'; -export * from './get-products-response-all-of-additional-data'; -export * from './get-products-response-all-of-additional-data-all-of'; -export * from './get-products-response-all-of-related-objects'; export * from './get-project-board-response'; export * from './get-project-boards-response'; export * from './get-project-boards-response-data-inner'; @@ -522,10 +366,6 @@ export * from './get-roles-response-all-of'; export * from './get-roles-response-all-of-additional-data'; export * from './get-roles-response-all-of-additional-data-pagination'; export * from './get-stage-deals-response'; -export * from './get-stage-response'; -export * from './get-stage-response-data'; -export * from './get-stages-response'; -export * from './get-stages-response-data-inner'; export * from './get-subscription-addons-response'; export * from './get-subscription-addons-response-all-of'; export * from './get-task-response'; @@ -592,7 +432,6 @@ export * from './merge-person-item'; export * from './merge-persons-request'; export * from './merge-persons-response'; export * from './merge-persons-response-all-of'; -export * from './new-deal-parameters'; export * from './note'; export * from './note-deal'; export * from './note-organization'; @@ -626,39 +465,29 @@ export * from './permission-set'; export * from './person'; export * from './person-all-of'; export * from './person-all-of-email-inner'; -export * from './person-all-of-picture-id'; export * from './person-count-and-email-info'; export * from './person-count-and-email-info-all-of'; export * from './person-count-and-email-info-all-of1'; export * from './person-count-email-deal-and-activity-info'; export * from './person-data-with-active-flag'; export * from './person-data-with-active-flag-all-of'; -export * from './person-data-with-id'; -export * from './person-data-with-idall-of'; -export * from './person-data-with-idall-of-email-inner'; +export * from './person-data-with-active-flag-all-of1'; +export * from './person-data-with-active-flag-all-of1-email-inner'; export * from './person-name-count-and-email-info'; export * from './person-name-count-and-email-info-with-ids'; export * from './person-name-count-and-email-info-with-ids-all-of'; export * from './person-name-info-with-org-and-owner-id'; export * from './person-name-info-with-org-and-owner-id-all-of'; export * from './person-name-info-with-org-and-owner-id-all-of1'; -export * from './persons-collection-response-object'; export * from './phone-data'; export * from './picture-data'; -export * from './picture-data-pictures'; export * from './picture-data-with-id'; +export * from './picture-data-with-id1'; +export * from './picture-data-with-idpictures'; export * from './picture-data-with-value'; -export * from './pipeline-details'; -export * from './pipeline-request'; -export * from './pipeline-request1'; export * from './product-field'; export * from './product-field-all-of'; export * from './product-field-all-of1'; -export * from './product-list-item'; -export * from './product-list-item-product'; -export * from './product-prices'; -export * from './product-request'; -export * from './product-request1'; export * from './project'; export * from './project-all-of'; export * from './project-all-of1'; @@ -692,21 +521,17 @@ export * from './related-organization-data'; export * from './related-organization-data-with-active-flag'; export * from './related-picture-data'; export * from './related-picture-data-pictureid'; +export * from './related-picture-data-pictureidall-of'; export * from './relationship-organization-info-item'; export * from './relationship-organization-info-item-all-of'; export * from './relationship-organization-info-item-with-active-flag'; -export * from './relationship-organization-info-item-with-active-flag-all-of'; export * from './required-post-project-parameters'; export * from './required-post-project-parameters1'; -export * from './required-title-parameter'; export * from './response-call-log-object'; export * from './response-call-log-object-all-of'; export * from './role-assignment'; export * from './role-assignment-data'; export * from './role-settings'; -export * from './search-item'; -export * from './stage'; -export * from './stage-with-pipeline-info'; export * from './sub-role'; export * from './sub-role-all-of'; export * from './task-response-object'; @@ -715,14 +540,7 @@ export * from './team-id'; export * from './template-response-object'; export * from './unathorized-response'; export * from './update-activity-plan-item-response'; -export * from './update-activity-request'; -export * from './update-activity-request-all-of'; -export * from './update-activity-response'; export * from './update-activity-type-request'; -export * from './update-deal-parameters'; -export * from './update-deal-product-request'; -export * from './update-deal-product-request-all-of'; -export * from './update-deal-request'; export * from './update-field-request'; export * from './update-file-response'; export * from './update-filter-request'; @@ -731,21 +549,7 @@ export * from './update-lead-request'; export * from './update-mail-thread-response'; export * from './update-mail-thread-response-all-of'; export * from './update-organization-relationship-response'; -export * from './update-organization-request'; -export * from './update-organization-request-all-of'; -export * from './update-organization-response'; -export * from './update-organization-response-all-of'; -export * from './update-person-request'; -export * from './update-person-request-all-of'; -export * from './update-person-response'; -export * from './update-pipeline-response'; -export * from './update-pipeline-response-all-of'; -export * from './update-pipeline-response-all-of-data'; export * from './update-product-field-response'; -export * from './update-product-request'; -export * from './update-product-request-all-of'; -export * from './update-product-request-all-of1'; -export * from './update-product-response'; export * from './update-project-request'; export * from './update-project-request1'; export * from './update-project-request1-all-of'; @@ -756,8 +560,6 @@ export * from './update-project-response'; export * from './update-role-response'; export * from './update-role-response-all-of'; export * from './update-role-response-data'; -export * from './update-stage-request'; -export * from './update-stage-request-all-of'; export * from './update-task-plan-item-response'; export * from './update-task-response'; export * from './update-team-request'; @@ -774,7 +576,6 @@ export * from './upsert-note-response'; export * from './upsert-role-settings-response'; export * from './upsert-role-settings-response-data'; export * from './upsert-role-settings-response-data-data'; -export * from './upsert-stage-response'; export * from './user-access'; export * from './user-access1'; export * from './user-data-with-id'; diff --git a/src/versions/v1/models/merge-person-item.ts b/src/versions/v1/models/merge-person-item.ts index 2d349d3f..e2e4a3d3 100644 --- a/src/versions/v1/models/merge-person-item.ts +++ b/src/versions/v1/models/merge-person-item.ts @@ -27,7 +27,7 @@ import { PersonAllOf } from './person-all-of'; import { PersonAllOfEmailInner } from './person-all-of-email-inner'; // May contain unused imports in some cases // @ts-ignore -import { PersonAllOfPictureId } from './person-all-of-picture-id'; +import { PictureDataWithID } from './picture-data-with-id'; /** * @type MergePersonItem diff --git a/src/versions/v1/models/new-deal-parameters.ts b/src/versions/v1/models/new-deal-parameters.ts deleted file mode 100644 index ab4f857c..00000000 --- a/src/versions/v1/models/new-deal-parameters.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface NewDealParameters -*/ -export interface NewDealParameters { - /** - * The value of the deal. If omitted, value will be set to 0. - * @type {string} - */ - 'value'?: string; - /** - * The array of the labels IDs. - * @type {Array} - */ - 'label'?: Array; - /** - * The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user. - * @type {string} - */ - 'currency'?: string; - /** - * The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used. - * @type {number} - */ - 'user_id'?: number; - /** - * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified. - * @type {number} - */ - 'person_id'?: number; - /** - * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified. - * @type {number} - */ - 'org_id'?: number; - /** - * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. - * @type {number} - */ - 'pipeline_id'?: number; - /** - * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline. - * @type {number} - */ - 'stage_id'?: number; - /** - * Whether the deal is archived or not. If omitted, is_archived will be set to false. - * @type {boolean} - */ - 'is_archived'?: boolean; - /** - * The optional date and time of archiving the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. If omitted and `is_archived` is true, it will be set to the current date and time. - * @type {string} - */ - 'archive_time'?: string; - /** - * open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open. - * @type {string} - */ - 'status'?: NewDealParametersStatusConst; - /** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null. - * @type {string} - */ - 'origin_id'?: string | null; - /** - * The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with GET /v1/dealFields. If omitted, channel will be set to null. - * @type {number} - */ - 'channel'?: number | null; - /** - * The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null. - * @type {string} - */ - 'channel_id'?: string | null; - /** - * The optional creation date & time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS - * @type {string} - */ - 'add_time'?: string; -} - - export const NewDealParametersStatusConst = { - open: 'open', - won: 'won', - lost: 'lost', - deleted: 'deleted' - } as const; - - export type NewDealParametersStatusConst = typeof NewDealParametersStatusConst[keyof typeof NewDealParametersStatusConst]; - - diff --git a/src/versions/v1/models/organization-data-with-id-all-of1.ts b/src/versions/v1/models/organization-data-with-id-all-of1.ts index 4176edd6..7a5a565b 100644 --- a/src/versions/v1/models/organization-data-with-id-all-of1.ts +++ b/src/versions/v1/models/organization-data-with-id-all-of1.ts @@ -39,11 +39,11 @@ export interface OrganizationDataWithIdAllOf1 { * The address of the organization * @type {string} */ - 'address'?: string; + 'address'?: string | null; /** * The BCC email of the organization associated with the item * @type {string} */ - 'cc_email'?: string; + 'cc_email'?: string | null; } diff --git a/src/versions/v1/models/person-all-of-phone-inner.ts b/src/versions/v1/models/person-all-of-phone-inner.ts deleted file mode 100644 index 5c49264c..00000000 --- a/src/versions/v1/models/person-all-of-phone-inner.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface PersonAllOfPhoneInner -*/ -export interface PersonAllOfPhoneInner { - /** - * The phone number - * @type {string} - */ - 'value'?: string; - /** - * Boolean that indicates if phone number is primary for the person or not - * @type {boolean} - */ - 'primary'?: boolean; - /** - * The label that indicates the type of the phone number. (Possible values - work, home, mobile or other) - * @type {string} - */ - 'label'?: string; -} - diff --git a/src/versions/v1/models/person-all-of.ts b/src/versions/v1/models/person-all-of.ts index bb5a5ff6..9246e9a7 100644 --- a/src/versions/v1/models/person-all-of.ts +++ b/src/versions/v1/models/person-all-of.ts @@ -21,7 +21,7 @@ import { DealParticipantItemPersonIdPhoneInner } from './deal-participant-item-p import { PersonAllOfEmailInner } from './person-all-of-email-inner'; // May contain unused imports in some cases // @ts-ignore -import { PersonAllOfPictureId } from './person-all-of-picture-id'; +import { PictureDataWithID } from './picture-data-with-id'; /** * @@ -76,14 +76,14 @@ export interface PersonAllOf { 'visible_to'?: string; /** * - * @type {PersonAllOfPictureId} + * @type {PictureDataWithID} */ - 'picture_id'?: PersonAllOfPictureId; + 'picture_id'?: PictureDataWithID | null; /** * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. * @type {number} */ - 'label'?: number; + 'label'?: number | null; /** * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. * @type {Array} @@ -93,7 +93,7 @@ export interface PersonAllOf { * The name of the organization associated with the person * @type {string} */ - 'org_name'?: string; + 'org_name'?: string | null; /** * The name of the owner associated with the person * @type {string} @@ -103,6 +103,6 @@ export interface PersonAllOf { * The BCC email associated with the person * @type {string} */ - 'cc_email'?: string; + 'cc_email'?: string | null; } diff --git a/src/versions/v1/models/person-count-and-email-info-all-of1.ts b/src/versions/v1/models/person-count-and-email-info-all-of1.ts index d10a24ff..a842d59f 100644 --- a/src/versions/v1/models/person-count-and-email-info-all-of1.ts +++ b/src/versions/v1/models/person-count-and-email-info-all-of1.ts @@ -24,11 +24,11 @@ export interface PersonCountAndEmailInfoAllOf1 { * The date and time of the last incoming email associated with the person * @type {string} */ - 'last_incoming_mail_time'?: string; + 'last_incoming_mail_time'?: string | null; /** * The date and time of the last outgoing email associated with the person * @type {string} */ - 'last_outgoing_mail_time'?: string; + 'last_outgoing_mail_time'?: string | null; } diff --git a/src/versions/v1/models/person-data-with-idall-of-email-inner.ts b/src/versions/v1/models/person-data-with-active-flag-all-of1-email-inner.ts similarity index 86% rename from src/versions/v1/models/person-data-with-idall-of-email-inner.ts rename to src/versions/v1/models/person-data-with-active-flag-all-of1-email-inner.ts index 0078e345..e0997d59 100644 --- a/src/versions/v1/models/person-data-with-idall-of-email-inner.ts +++ b/src/versions/v1/models/person-data-with-active-flag-all-of1-email-inner.ts @@ -17,9 +17,9 @@ /** * * @export -* @interface PersonDataWithIDAllOfEmailInner +* @interface PersonDataWithActiveFlagAllOf1EmailInner */ -export interface PersonDataWithIDAllOfEmailInner { +export interface PersonDataWithActiveFlagAllOf1EmailInner { /** * The type of the email * @type {string} diff --git a/src/versions/v1/models/person-data-with-idall-of.ts b/src/versions/v1/models/person-data-with-active-flag-all-of1.ts similarity index 77% rename from src/versions/v1/models/person-data-with-idall-of.ts rename to src/versions/v1/models/person-data-with-active-flag-all-of1.ts index 62b5b465..193d9924 100644 --- a/src/versions/v1/models/person-data-with-idall-of.ts +++ b/src/versions/v1/models/person-data-with-active-flag-all-of1.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { PersonDataWithIDAllOfEmailInner } from './person-data-with-idall-of-email-inner'; +import { PersonDataWithActiveFlagAllOf1EmailInner } from './person-data-with-active-flag-all-of1-email-inner'; // May contain unused imports in some cases // @ts-ignore import { PhoneData } from './phone-data'; @@ -23,9 +23,9 @@ import { PhoneData } from './phone-data'; /** * * @export -* @interface PersonDataWithIDAllOf +* @interface PersonDataWithActiveFlagAllOf1 */ -export interface PersonDataWithIDAllOf { +export interface PersonDataWithActiveFlagAllOf1 { /** * The ID of the person associated with the item * @type {number} @@ -38,9 +38,9 @@ export interface PersonDataWithIDAllOf { 'name'?: string; /** * The emails of the person associated with the item - * @type {Array} + * @type {Array} */ - 'email'?: Array; + 'email'?: Array; /** * The phone numbers of the person associated with the item * @type {Array} diff --git a/src/versions/v1/models/person-data-with-active-flag.ts b/src/versions/v1/models/person-data-with-active-flag.ts index 1f1e79e4..02d45442 100644 --- a/src/versions/v1/models/person-data-with-active-flag.ts +++ b/src/versions/v1/models/person-data-with-active-flag.ts @@ -18,10 +18,10 @@ import { PersonDataWithActiveFlagAllOf } from './person-data-with-active-flag-all-of'; // May contain unused imports in some cases // @ts-ignore -import { PersonDataWithIDAllOf } from './person-data-with-idall-of'; +import { PersonDataWithActiveFlagAllOf1 } from './person-data-with-active-flag-all-of1'; // May contain unused imports in some cases // @ts-ignore -import { PersonDataWithIDAllOfEmailInner } from './person-data-with-idall-of-email-inner'; +import { PersonDataWithActiveFlagAllOf1EmailInner } from './person-data-with-active-flag-all-of1-email-inner'; // May contain unused imports in some cases // @ts-ignore import { PhoneData } from './phone-data'; @@ -31,6 +31,6 @@ import { PhoneData } from './phone-data'; * The ID of the person associated with the item * @export */ -export type PersonDataWithActiveFlag = PersonDataWithActiveFlagAllOf & PersonDataWithIDAllOf; +export type PersonDataWithActiveFlag = PersonDataWithActiveFlagAllOf & PersonDataWithActiveFlagAllOf1; diff --git a/src/versions/v1/models/person-data-with-id.ts b/src/versions/v1/models/person-data-with-id.ts deleted file mode 100644 index 33af6caf..00000000 --- a/src/versions/v1/models/person-data-with-id.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { PersonDataWithIDAllOf } from './person-data-with-idall-of'; -// May contain unused imports in some cases -// @ts-ignore -import { PersonDataWithIDAllOfEmailInner } from './person-data-with-idall-of-email-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { PhoneData } from './phone-data'; - -/** - * @type PersonDataWithID - * The ID of the person associated with the item - * @export - */ -export type PersonDataWithID = PersonDataWithIDAllOf; - - diff --git a/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of.ts b/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of.ts index f9bee6a2..2ebe641c 100644 --- a/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of.ts +++ b/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of.ts @@ -35,6 +35,6 @@ export interface PersonNameInfoWithOrgAndOwnerIdAllOf { * * @type {RelationshipOrganizationInfoItemWithActiveFlag} */ - 'org_id'?: RelationshipOrganizationInfoItemWithActiveFlag; + 'org_id'?: RelationshipOrganizationInfoItemWithActiveFlag | null; } diff --git a/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of1.ts b/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of1.ts index a486c4e7..1c3da79a 100644 --- a/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of1.ts +++ b/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of1.ts @@ -34,6 +34,6 @@ export interface PersonNameInfoWithOrgAndOwnerIdAllOf1 { * The last name of the person * @type {string} */ - 'last_name'?: string; + 'last_name'?: string | null; } diff --git a/src/versions/v1/models/person.ts b/src/versions/v1/models/person.ts index 3010b98c..ab6a87e6 100644 --- a/src/versions/v1/models/person.ts +++ b/src/versions/v1/models/person.ts @@ -30,7 +30,7 @@ import { PersonAllOf } from './person-all-of'; import { PersonAllOfEmailInner } from './person-all-of-email-inner'; // May contain unused imports in some cases // @ts-ignore -import { PersonAllOfPictureId } from './person-all-of-picture-id'; +import { PictureDataWithID } from './picture-data-with-id'; // May contain unused imports in some cases // @ts-ignore import { RelationshipOrganizationInfoItemWithActiveFlag } from './relationship-organization-info-item-with-active-flag'; diff --git a/src/versions/v1/models/persons-collection-response-object.ts b/src/versions/v1/models/persons-collection-response-object.ts deleted file mode 100644 index ff42c876..00000000 --- a/src/versions/v1/models/persons-collection-response-object.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasicPersonRequestEmailInner } from './basic-person-request-email-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { DealParticipantItemPersonIdPhoneInner } from './deal-participant-item-person-id-phone-inner'; - -/** -* -* @export -* @interface PersonsCollectionResponseObject -*/ -export interface PersonsCollectionResponseObject { - /** - * The ID of the person - * @type {number} - */ - 'id': number; - /** - * Whether the person is active or not - * @type {boolean} - */ - 'active_flag': boolean; - /** - * The ID of the owner related to the person - * @type {number} - */ - 'owner_id': number; - /** - * The ID of the organization related to the person - * @type {number} - */ - 'org_id': number; - /** - * The name of the person - * @type {string} - */ - 'name': string; - /** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. - * @type {Array} - */ - 'email': Array; - /** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @type {Array} - */ - 'phone': Array; - /** - * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS - * @type {string} - */ - 'update_time': string; - /** - * The date and time this person was deleted. Format: YYYY-MM-DD HH:MM:SS - * @type {string} - */ - 'delete_time': string | null; - /** - * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS - * @type {string} - */ - 'add_time': string; - /** - * The visibility group ID of who can see the person - * @type {string} - */ - 'visible_to': string; - /** - * The ID of the picture associated with the item - * @type {number} - */ - 'picture_id': number | null; - /** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @type {number} - */ - 'label': number | null; - /** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @type {Array} - */ - 'label_ids': Array; - /** - * The BCC email associated with the person - * @type {string} - */ - 'cc_email': string; -} - diff --git a/src/versions/v1/models/picture-data-with-id.ts b/src/versions/v1/models/picture-data-with-id.ts index ed4de8a0..5be65369 100644 --- a/src/versions/v1/models/picture-data-with-id.ts +++ b/src/versions/v1/models/picture-data-with-id.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { PictureDataWithIDPictures } from './picture-data-with-idpictures'; /** * @@ -25,5 +28,40 @@ export interface PictureDataWithID { * @type {number} */ 'id'?: number; + /** + * The type of item the picture is related to + * @type {string} + */ + 'item_type'?: string; + /** + * The ID of related item + * @type {number} + */ + 'item_id'?: number; + /** + * Whether the associated picture is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The add time of the picture + * @type {string} + */ + 'add_time'?: string; + /** + * The update time of the picture + * @type {string} + */ + 'update_time'?: string; + /** + * The ID of the user who added the picture + * @type {number} + */ + 'added_by_user_id'?: number; + /** + * + * @type {PictureDataWithIDPictures} + */ + 'pictures'?: PictureDataWithIDPictures; } diff --git a/src/versions/v1/models/delete-stage-response-data.ts b/src/versions/v1/models/picture-data-with-id1.ts similarity index 79% rename from src/versions/v1/models/delete-stage-response-data.ts rename to src/versions/v1/models/picture-data-with-id1.ts index 50fb85c3..1c553918 100644 --- a/src/versions/v1/models/delete-stage-response-data.ts +++ b/src/versions/v1/models/picture-data-with-id1.ts @@ -17,11 +17,11 @@ /** * * @export -* @interface DeleteStageResponseData +* @interface PictureDataWithID1 */ -export interface DeleteStageResponseData { +export interface PictureDataWithID1 { /** - * Deleted stage ID + * The ID of the picture associated with the item * @type {number} */ 'id'?: number; diff --git a/src/versions/v1/models/picture-data-pictures.ts b/src/versions/v1/models/picture-data-with-idpictures.ts similarity index 87% rename from src/versions/v1/models/picture-data-pictures.ts rename to src/versions/v1/models/picture-data-with-idpictures.ts index 947f7a23..d0371ab4 100644 --- a/src/versions/v1/models/picture-data-pictures.ts +++ b/src/versions/v1/models/picture-data-with-idpictures.ts @@ -17,9 +17,9 @@ /** * * @export -* @interface PictureDataPictures +* @interface PictureDataWithIDPictures */ -export interface PictureDataPictures { +export interface PictureDataWithIDPictures { /** * The URL of the 128*128 picture * @type {string} diff --git a/src/versions/v1/models/picture-data.ts b/src/versions/v1/models/picture-data.ts index 80dfe2be..e9fe7b6e 100644 --- a/src/versions/v1/models/picture-data.ts +++ b/src/versions/v1/models/picture-data.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { PictureDataPictures } from './picture-data-pictures'; +import { PictureDataWithIDPictures } from './picture-data-with-idpictures'; /** * @@ -55,8 +55,8 @@ export interface PictureData { 'added_by_user_id'?: number; /** * - * @type {PictureDataPictures} + * @type {PictureDataWithIDPictures} */ - 'pictures'?: PictureDataPictures; + 'pictures'?: PictureDataWithIDPictures; } diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full-currencyid.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full-currencyid.ts deleted file mode 100644 index 1df5f095..00000000 --- a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full-currencyid.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The currency summary. This parameter is dynamic and changes according to `currency_id` value. -* @export -* @interface PipelineDetailsAllOfDealsSummaryPerCurrencyFullCURRENCYID -*/ -export interface PipelineDetailsAllOfDealsSummaryPerCurrencyFullCURRENCYID { - /** - * Deals count per currency - * @type {number} - */ - 'count'?: number; - /** - * Deals value per currency - * @type {number} - */ - 'value'?: number; -} - diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full.ts deleted file mode 100644 index f77cc559..00000000 --- a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { PipelineDetailsAllOfDealsSummaryPerCurrencyFullCURRENCYID } from './pipeline-details-all-of-deals-summary-per-currency-full-currencyid'; - -/** -* Full currency summaries -* @export -* @interface PipelineDetailsAllOfDealsSummaryPerCurrencyFull -*/ -export interface PipelineDetailsAllOfDealsSummaryPerCurrencyFull { - /** - * - * @type {PipelineDetailsAllOfDealsSummaryPerCurrencyFullCURRENCYID} - */ - 'CURRENCY_ID'?: PipelineDetailsAllOfDealsSummaryPerCurrencyFullCURRENCYID; -} - diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency.ts deleted file mode 100644 index 0b8633a8..00000000 --- a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The currency count summary -* @export -* @interface PipelineDetailsAllOfDealsSummaryPerCurrency -*/ -export interface PipelineDetailsAllOfDealsSummaryPerCurrency { - /** - * Deals count per currency. This parameter is dynamic and changes according to `currency_id` value. - * @type {number} - */ - 'CURRENCY_ID'?: number; -} - diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageid.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageid.ts deleted file mode 100644 index 5245244f..00000000 --- a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageid.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { PipelineDetailsAllOfDealsSummaryPerStagesSTAGEIDCURRENCYID } from './pipeline-details-all-of-deals-summary-per-stages-stageidcurrencyid'; - -/** -* The currency summaries per stage. This parameter is dynamic and changes according to `stage_id` value. -* @export -* @interface PipelineDetailsAllOfDealsSummaryPerStagesSTAGEID -*/ -export interface PipelineDetailsAllOfDealsSummaryPerStagesSTAGEID { - /** - * - * @type {PipelineDetailsAllOfDealsSummaryPerStagesSTAGEIDCURRENCYID} - */ - 'CURRENCY_ID'?: PipelineDetailsAllOfDealsSummaryPerStagesSTAGEIDCURRENCYID; -} - diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageidcurrencyid.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageidcurrencyid.ts deleted file mode 100644 index 3a01405b..00000000 --- a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageidcurrencyid.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The currency summary. This parameter is dynamic and changes according to `currency_id` value. -* @export -* @interface PipelineDetailsAllOfDealsSummaryPerStagesSTAGEIDCURRENCYID -*/ -export interface PipelineDetailsAllOfDealsSummaryPerStagesSTAGEIDCURRENCYID { - /** - * Deals count per currency - * @type {number} - */ - 'count'?: number; - /** - * Deals value per currency - * @type {number} - */ - 'value'?: number; - /** - * Deals value formatted per currency - * @type {string} - */ - 'value_formatted'?: string; - /** - * Deals weighted value per currency - * @type {number} - */ - 'weighted_value'?: number; - /** - * Deals weighted value formatted per currency - * @type {string} - */ - 'weighted_value_formatted'?: string; -} - diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages.ts deleted file mode 100644 index 198c1636..00000000 --- a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { PipelineDetailsAllOfDealsSummaryPerStagesSTAGEID } from './pipeline-details-all-of-deals-summary-per-stages-stageid'; - -/** -* The stage objects containing deals currency information -* @export -* @interface PipelineDetailsAllOfDealsSummaryPerStages -*/ -export interface PipelineDetailsAllOfDealsSummaryPerStages { - /** - * - * @type {PipelineDetailsAllOfDealsSummaryPerStagesSTAGEID} - */ - 'STAGE_ID'?: PipelineDetailsAllOfDealsSummaryPerStagesSTAGEID; -} - diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary.ts deleted file mode 100644 index 3f616c6c..00000000 --- a/src/versions/v1/models/pipeline-details-all-of-deals-summary.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { PipelineDetailsAllOfDealsSummaryPerCurrency } from './pipeline-details-all-of-deals-summary-per-currency'; -// May contain unused imports in some cases -// @ts-ignore -import { PipelineDetailsAllOfDealsSummaryPerCurrencyFull } from './pipeline-details-all-of-deals-summary-per-currency-full'; -// May contain unused imports in some cases -// @ts-ignore -import { PipelineDetailsAllOfDealsSummaryPerStages } from './pipeline-details-all-of-deals-summary-per-stages'; - -/** -* Deals summary -* @export -* @interface PipelineDetailsAllOfDealsSummary -*/ -export interface PipelineDetailsAllOfDealsSummary { - /** - * - * @type {PipelineDetailsAllOfDealsSummaryPerStages} - */ - 'per_stages'?: PipelineDetailsAllOfDealsSummaryPerStages; - /** - * - * @type {PipelineDetailsAllOfDealsSummaryPerCurrency} - */ - 'per_currency'?: PipelineDetailsAllOfDealsSummaryPerCurrency; - /** - * Deals count - * @type {number} - */ - 'total_count'?: number; - /** - * - * @type {PipelineDetailsAllOfDealsSummaryPerCurrencyFull} - */ - 'per_currency_full'?: PipelineDetailsAllOfDealsSummaryPerCurrencyFull; -} - diff --git a/src/versions/v1/models/pipeline-details-all-of.ts b/src/versions/v1/models/pipeline-details-all-of.ts deleted file mode 100644 index ee856bd5..00000000 --- a/src/versions/v1/models/pipeline-details-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { PipelineDetailsAllOfDealsSummary } from './pipeline-details-all-of-deals-summary'; - -/** -* -* @export -* @interface PipelineDetailsAllOf -*/ -export interface PipelineDetailsAllOf { - /** - * - * @type {PipelineDetailsAllOfDealsSummary} - */ - 'deals_summary'?: PipelineDetailsAllOfDealsSummary; -} - diff --git a/src/versions/v1/models/pipeline-details.ts b/src/versions/v1/models/pipeline-details.ts deleted file mode 100644 index 9a38be06..00000000 --- a/src/versions/v1/models/pipeline-details.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasePipelineWithSelectedFlag } from './base-pipeline-with-selected-flag'; - -/** - * @type PipelineDetails - * The pipeline object - * @export - */ -export type PipelineDetails = BasePipelineWithSelectedFlag; - - diff --git a/src/versions/v1/models/pipeline-request.ts b/src/versions/v1/models/pipeline-request.ts deleted file mode 100644 index 81e1a1d8..00000000 --- a/src/versions/v1/models/pipeline-request.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface PipelineRequest -*/ -export interface PipelineRequest { - /** - * The name of the pipeline - * @type {string} - */ - 'name': string; - /** - * - * @type {number} - */ - 'deal_probability'?: PipelineRequestDealProbabilityConst; - /** - * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. - * @type {number} - */ - 'order_nr'?: number; - /** - * - * @type {number} - */ - 'active'?: PipelineRequestActiveConst; -} - - export const PipelineRequestDealProbabilityConst = { - NUMBER_0: 0, - NUMBER_1: 1 - } as const; - - export type PipelineRequestDealProbabilityConst = typeof PipelineRequestDealProbabilityConst[keyof typeof PipelineRequestDealProbabilityConst]; - export const PipelineRequestActiveConst = { - NUMBER_0: 0, - NUMBER_1: 1 - } as const; - - export type PipelineRequestActiveConst = typeof PipelineRequestActiveConst[keyof typeof PipelineRequestActiveConst]; - - diff --git a/src/versions/v1/models/pipeline-request1.ts b/src/versions/v1/models/pipeline-request1.ts deleted file mode 100644 index 2d9cc692..00000000 --- a/src/versions/v1/models/pipeline-request1.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface PipelineRequest1 -*/ -export interface PipelineRequest1 { - /** - * The name of the pipeline - * @type {string} - */ - 'name'?: string; - /** - * - * @type {number} - */ - 'deal_probability'?: PipelineRequest1DealProbabilityConst; - /** - * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. - * @type {number} - */ - 'order_nr'?: number; - /** - * - * @type {number} - */ - 'active'?: PipelineRequest1ActiveConst; -} - - export const PipelineRequest1DealProbabilityConst = { - NUMBER_0: 0, - NUMBER_1: 1 - } as const; - - export type PipelineRequest1DealProbabilityConst = typeof PipelineRequest1DealProbabilityConst[keyof typeof PipelineRequest1DealProbabilityConst]; - export const PipelineRequest1ActiveConst = { - NUMBER_0: 0, - NUMBER_1: 1 - } as const; - - export type PipelineRequest1ActiveConst = typeof PipelineRequest1ActiveConst[keyof typeof PipelineRequest1ActiveConst]; - - diff --git a/src/versions/v1/models/product-list-item-product.ts b/src/versions/v1/models/product-list-item-product.ts deleted file mode 100644 index eeea6127..00000000 --- a/src/versions/v1/models/product-list-item-product.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseProduct } from './base-product'; -// May contain unused imports in some cases -// @ts-ignore -import { ProductPrices } from './product-prices'; - -/** - * @type ProductListItemProduct - * @export - */ -export type ProductListItemProduct = BaseProduct & ProductPrices; - - diff --git a/src/versions/v1/models/product-list-item.ts b/src/versions/v1/models/product-list-item.ts deleted file mode 100644 index 073edcc3..00000000 --- a/src/versions/v1/models/product-list-item.ts +++ /dev/null @@ -1,152 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ProductListItemProduct } from './product-list-item-product'; - -/** -* -* @export -* @interface ProductListItem -*/ -export interface ProductListItem { - /** - * The ID of the deal-product (the ID of the product attached to the deal) - * @type {number} - */ - 'id'?: number; - /** - * The ID of the deal - * @type {number} - */ - 'deal_id'?: number; - /** - * The order number of the product - * @type {number} - */ - 'order_nr'?: number; - /** - * The ID of the product - * @type {number} - */ - 'product_id'?: number; - /** - * The ID of the product variation - * @type {number} - */ - 'product_variation_id'?: number | null; - /** - * The price value of the product - * @type {number} - */ - 'item_price'?: number; - /** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @type {number} - */ - 'discount'?: number; - /** - * The type of the discount\'s value - * @type {string} - */ - 'discount_type'?: ProductListItemDiscountTypeConst; - /** - * The sum of all the products attached to the deal - * @type {number} - */ - 'sum'?: number; - /** - * The currency associated with the deal product - * @type {string} - */ - 'currency'?: string; - /** - * Whether the product is enabled or not - * @type {boolean} - */ - 'enabled_flag'?: boolean; - /** - * The date and time when the product was added to the deal - * @type {string} - */ - 'add_time'?: string; - /** - * The date and time when the deal product was last edited - * @type {string} - */ - 'last_edit'?: string; - /** - * The comments of the product - * @type {string} - */ - 'comments'?: string; - /** - * Whether the product is active or not - * @type {boolean} - */ - 'active_flag'?: boolean; - /** - * The product tax - * @type {number} - */ - 'tax'?: number; - /** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal - * @type {string} - */ - 'tax_method'?: ProductListItemTaxMethodConst; - /** - * The product name - * @type {string} - */ - 'name'?: string; - /** - * The formatted sum of the product - * @type {string} - */ - 'sum_formatted'?: string; - /** - * The formatted quantity of the product - * @type {string} - */ - 'quantity_formatted'?: string; - /** - * The quantity of the product - * @type {number} - */ - 'quantity'?: number; - /** - * - * @type {ProductListItemProduct} - */ - 'product'?: ProductListItemProduct; -} - - export const ProductListItemDiscountTypeConst = { - percentage: 'percentage', - amount: 'amount' - } as const; - - export type ProductListItemDiscountTypeConst = typeof ProductListItemDiscountTypeConst[keyof typeof ProductListItemDiscountTypeConst]; - export const ProductListItemTaxMethodConst = { - exclusive: 'exclusive', - inclusive: 'inclusive', - none: 'none' - } as const; - - export type ProductListItemTaxMethodConst = typeof ProductListItemTaxMethodConst[keyof typeof ProductListItemTaxMethodConst]; - - diff --git a/src/versions/v1/models/product-prices.ts b/src/versions/v1/models/product-prices.ts deleted file mode 100644 index 049cbf3d..00000000 --- a/src/versions/v1/models/product-prices.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface ProductPrices -*/ -export interface ProductPrices { - /** - * Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) - * @type {Array} - */ - 'prices'?: Array; -} - diff --git a/src/versions/v1/models/product-request.ts b/src/versions/v1/models/product-request.ts deleted file mode 100644 index 46ef5d81..00000000 --- a/src/versions/v1/models/product-request.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface ProductRequest -*/ -export interface ProductRequest { - /** - * The product code - * @type {string} - */ - 'code'?: string; - /** - * The product description - * @type {string} - */ - 'description'?: string; - /** - * The unit in which this product is sold - * @type {string} - */ - 'unit'?: string; - /** - * The tax percentage - * @type {number} - */ - 'tax'?: number; - /** - * Whether this product will be made active or not - * @type {boolean} - */ - 'active_flag'?: boolean; - /** - * Whether this product can be selected in deals or not - * @type {boolean} - */ - 'selectable'?: boolean; - /** - * - * @type {string} - */ - 'visible_to'?: ProductRequestVisibleToConst; - /** - * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used - * @type {number} - */ - 'owner_id'?: number; - /** - * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company\'s currency will be assigned. - * @type {Array} - */ - 'prices'?: Array; -} - - export const ProductRequestVisibleToConst = { - _1: '1', - _3: '3', - _5: '5', - _7: '7' - } as const; - - export type ProductRequestVisibleToConst = typeof ProductRequestVisibleToConst[keyof typeof ProductRequestVisibleToConst]; - - diff --git a/src/versions/v1/models/product-request1.ts b/src/versions/v1/models/product-request1.ts deleted file mode 100644 index d2750723..00000000 --- a/src/versions/v1/models/product-request1.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface ProductRequest1 -*/ -export interface ProductRequest1 { - [key: string]: any | any; - - /** - * The product code - * @type {string} - */ - 'code'?: string; - /** - * The product description - * @type {string} - */ - 'description'?: string; - /** - * The unit in which this product is sold - * @type {string} - */ - 'unit'?: string; - /** - * The tax percentage - * @type {number} - */ - 'tax'?: number; - /** - * Whether this product will be made active or not - * @type {boolean} - */ - 'active_flag'?: boolean; - /** - * Whether this product can be selected in deals or not - * @type {boolean} - */ - 'selectable'?: boolean; - /** - * - * @type {string} - */ - 'visible_to'?: ProductRequest1VisibleToConst; - /** - * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used - * @type {number} - */ - 'owner_id'?: number; - /** - * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company\'s currency will be assigned. - * @type {Array} - */ - 'prices'?: Array; -} - - export const ProductRequest1VisibleToConst = { - _1: '1', - _3: '3', - _5: '5', - _7: '7' - } as const; - - export type ProductRequest1VisibleToConst = typeof ProductRequest1VisibleToConst[keyof typeof ProductRequest1VisibleToConst]; - - diff --git a/src/versions/v1/models/related-picture-data-pictureid.ts b/src/versions/v1/models/related-picture-data-pictureid.ts index 608ad15f..75ffd7a6 100644 --- a/src/versions/v1/models/related-picture-data-pictureid.ts +++ b/src/versions/v1/models/related-picture-data-pictureid.ts @@ -15,16 +15,16 @@ // May contain unused imports in some cases // @ts-ignore -import { PersonAllOfPictureId } from './person-all-of-picture-id'; +import { PictureDataWithIDPictures } from './picture-data-with-idpictures'; // May contain unused imports in some cases // @ts-ignore -import { PictureDataPictures } from './picture-data-pictures'; +import { RelatedPictureDataPICTUREIDAllOf } from './related-picture-data-pictureidall-of'; /** * @type RelatedPictureDataPICTUREID * The ID of the picture * @export */ -export type RelatedPictureDataPICTUREID = PersonAllOfPictureId; +export type RelatedPictureDataPICTUREID = RelatedPictureDataPICTUREIDAllOf; diff --git a/src/versions/v1/models/person-all-of-picture-id.ts b/src/versions/v1/models/related-picture-data-pictureidall-of.ts similarity index 71% rename from src/versions/v1/models/person-all-of-picture-id.ts rename to src/versions/v1/models/related-picture-data-pictureidall-of.ts index 6c8ae8eb..abf234b3 100644 --- a/src/versions/v1/models/person-all-of-picture-id.ts +++ b/src/versions/v1/models/related-picture-data-pictureidall-of.ts @@ -18,15 +18,15 @@ import { PictureData } from './picture-data'; // May contain unused imports in some cases // @ts-ignore -import { PictureDataPictures } from './picture-data-pictures'; +import { PictureDataWithID1 } from './picture-data-with-id1'; // May contain unused imports in some cases // @ts-ignore -import { PictureDataWithID } from './picture-data-with-id'; +import { PictureDataWithIDPictures } from './picture-data-with-idpictures'; /** - * @type PersonAllOfPictureId + * @type RelatedPictureDataPICTUREIDAllOf * @export */ -export type PersonAllOfPictureId = PictureData & PictureDataWithID; +export type RelatedPictureDataPICTUREIDAllOf = PictureData & PictureDataWithID1; diff --git a/src/versions/v1/models/relationship-organization-info-item-with-active-flag-all-of.ts b/src/versions/v1/models/relationship-organization-info-item-with-active-flag-all-of.ts deleted file mode 100644 index 7579b0ea..00000000 --- a/src/versions/v1/models/relationship-organization-info-item-with-active-flag-all-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface RelationshipOrganizationInfoItemWithActiveFlagAllOf -*/ -export interface RelationshipOrganizationInfoItemWithActiveFlagAllOf { - /** - * Whether the associated organization is active or not - * @type {boolean} - */ - 'active_flag'?: boolean; -} - diff --git a/src/versions/v1/models/relationship-organization-info-item-with-active-flag.ts b/src/versions/v1/models/relationship-organization-info-item-with-active-flag.ts index d701db4b..e3e3ee37 100644 --- a/src/versions/v1/models/relationship-organization-info-item-with-active-flag.ts +++ b/src/versions/v1/models/relationship-organization-info-item-with-active-flag.ts @@ -13,17 +13,52 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { RelationshipOrganizationInfoItem } from './relationship-organization-info-item'; -// May contain unused imports in some cases -// @ts-ignore -import { RelationshipOrganizationInfoItemWithActiveFlagAllOf } from './relationship-organization-info-item-with-active-flag-all-of'; /** - * @type RelationshipOrganizationInfoItemWithActiveFlag - * @export - */ -export type RelationshipOrganizationInfoItemWithActiveFlag = RelationshipOrganizationInfoItem & RelationshipOrganizationInfoItemWithActiveFlagAllOf; - +* +* @export +* @interface RelationshipOrganizationInfoItemWithActiveFlag +*/ +export interface RelationshipOrganizationInfoItemWithActiveFlag { + /** + * The name of the organization associated with the item + * @type {string} + */ + 'name'?: string; + /** + * The number of people connected with the organization that is associated with the item + * @type {number} + */ + 'people_count'?: number; + /** + * The ID of the owner of the organization that is associated with the item + * @type {number} + */ + 'owner_id'?: number; + /** + * The address of the organization + * @type {string} + */ + 'address'?: string | null; + /** + * The BCC email of the organization associated with the item + * @type {string} + */ + 'cc_email'?: string | null; + /** + * The IDs of labels assigned to the organization + * @type {Array} + */ + 'label_ids'?: Array; + /** + * The ID of the organization + * @type {number} + */ + 'value'?: number; + /** + * Whether the associated organization is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; +} diff --git a/src/versions/v1/models/requied-post-project-parameters.ts b/src/versions/v1/models/requied-post-project-parameters.ts deleted file mode 100644 index 1f9253bb..00000000 --- a/src/versions/v1/models/requied-post-project-parameters.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface RequiedPostProjectParameters -*/ -export interface RequiedPostProjectParameters { - /** - * The title of the task - * @type {string} - */ - 'title': string; - /** - * The ID of a project - * @type {number} - */ - 'project_id': number; -} - diff --git a/src/versions/v1/models/required-title-parameter.ts b/src/versions/v1/models/required-title-parameter.ts deleted file mode 100644 index 9695ef93..00000000 --- a/src/versions/v1/models/required-title-parameter.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface RequiredTitleParameter -*/ -export interface RequiredTitleParameter { - /** - * The title of the deal - * @type {string} - */ - 'title': string; -} - diff --git a/src/versions/v1/models/requred-title-parameter.ts b/src/versions/v1/models/requred-title-parameter.ts deleted file mode 100644 index a13cbae3..00000000 --- a/src/versions/v1/models/requred-title-parameter.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface RequredTitleParameter -*/ -export interface RequredTitleParameter { - /** - * The title of the deal - * @type {string} - */ - 'title': string; -} - diff --git a/src/versions/v1/models/search-item.ts b/src/versions/v1/models/search-item.ts deleted file mode 100644 index fc196801..00000000 --- a/src/versions/v1/models/search-item.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface SearchItem -*/ -export interface SearchItem { - /** - * Search result relevancy - * @type {number} - */ - 'result_score'?: number; - /** - * Item - * @type {object} - */ - 'item'?: object; -} - diff --git a/src/versions/v1/models/stage-details-data.ts b/src/versions/v1/models/stage-details-data.ts deleted file mode 100644 index 62d22829..00000000 --- a/src/versions/v1/models/stage-details-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { PipelineDetailsAllOfDealsSummary } from './pipeline-details-all-of-deals-summary'; - -/** -* -* @export -* @interface StageDetailsData -*/ -export interface StageDetailsData { - /** - * - * @type {PipelineDetailsAllOfDealsSummary} - */ - 'deals_summary'?: PipelineDetailsAllOfDealsSummary; -} - diff --git a/src/versions/v1/models/stage-with-pipeline-info.ts b/src/versions/v1/models/stage-with-pipeline-info.ts deleted file mode 100644 index b452dc38..00000000 --- a/src/versions/v1/models/stage-with-pipeline-info.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface StageWithPipelineInfo -*/ -export interface StageWithPipelineInfo { - /** - * The name of the pipeline - * @type {string} - */ - 'pipeline_name'?: string; - /** - * The pipeline deal probability. When `true`, overrides the stage probability. - * @type {boolean} - */ - 'pipeline_deal_probability'?: boolean; -} - diff --git a/src/versions/v1/models/stage.ts b/src/versions/v1/models/stage.ts deleted file mode 100644 index be9b1ee2..00000000 --- a/src/versions/v1/models/stage.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface Stage -*/ -export interface Stage { - /** - * The name of the stage - * @type {string} - */ - 'name'?: string; - /** - * The ID of the pipeline to add stage to - * @type {number} - */ - 'pipeline_id'?: number; - /** - * The success probability percentage of the deal. Used/shown when deal weighted values are used. - * @type {number} - */ - 'deal_probability'?: number; - /** - * Whether deals in this stage can become rotten - * @type {boolean} - */ - 'rotten_flag'?: boolean; - /** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @type {number} - */ - 'rotten_days'?: number; -} - diff --git a/src/versions/v1/models/subscription-item.ts b/src/versions/v1/models/subscription-item.ts deleted file mode 100644 index 4294c229..00000000 --- a/src/versions/v1/models/subscription-item.ts +++ /dev/null @@ -1,104 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface SubscriptionItem -*/ -export interface SubscriptionItem { - /** - * The ID of the subscription - * @type {number} - */ - 'id'?: number; - /** - * The ID of the user who created the subscription - * @type {number} - */ - 'user_id'?: number; - /** - * The ID of the deal this subscription is associated with - * @type {number} - */ - 'deal_id'?: number; - /** - * The description of the recurring subscription - * @type {string} - */ - 'description'?: string; - /** - * The subscription status - * @type {boolean} - */ - 'is_active'?: boolean; - /** - * Shows how many payments a recurring subscription has - * @type {number} - */ - 'cycles_count'?: number; - /** - * The amount of each payment - * @type {number} - */ - 'cycle_amount'?: number; - /** - * Indicates that the recurring subscription will last until it is manually canceled or deleted - * @type {boolean} - */ - 'infinite'?: boolean; - /** - * The currency of the subscription - * @type {string} - */ - 'currency'?: string; - /** - * The interval between payments - * @type {string} - */ - 'cadence_type'?: string; - /** - * The start date of the recurring subscription - * @type {string} - */ - 'start_date'?: string; - /** - * The end date of the subscription - * @type {string} - */ - 'end_date'?: string; - /** - * The total value of all payments - * @type {number} - */ - 'lifetime_value'?: number; - /** - * The final status of the subscription - * @type {string} - */ - 'final_status'?: string | null; - /** - * The creation time of the subscription - * @type {string} - */ - 'add_time'?: string; - /** - * The update time of the subscription - * @type {string} - */ - 'update_time'?: string; -} - diff --git a/src/versions/v1/models/update-activity-request-all-of.ts b/src/versions/v1/models/update-activity-request-all-of.ts deleted file mode 100644 index c6c725e8..00000000 --- a/src/versions/v1/models/update-activity-request-all-of.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface UpdateActivityRequestAllOf -*/ -export interface UpdateActivityRequestAllOf { - [key: string]: any | any; - - /** - * The note of the activity (HTML format) - * @type {string} - */ - 'note'?: string; - /** - * The subject of the activity - * @type {string} - */ - 'subject'?: string; - /** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @type {string} - */ - 'type'?: string; - /** - * The ID of the user whom the activity is assigned to - * @type {number} - */ - 'user_id'?: number; - /** - * List of multiple persons (participants) this activity is associated with. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` - * @type {Array} - */ - 'participants'?: Array; - /** - * Set the activity as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time. - * @type {boolean} - */ - 'busy_flag'?: boolean; - /** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` - * @type {Array} - */ - 'attendees'?: Array; - /** - * - * @type {number} - */ - 'done'?: UpdateActivityRequestAllOfDoneConst; -} - - export const UpdateActivityRequestAllOfDoneConst = { - NUMBER_0: 0, - NUMBER_1: 1 - } as const; - - export type UpdateActivityRequestAllOfDoneConst = typeof UpdateActivityRequestAllOfDoneConst[keyof typeof UpdateActivityRequestAllOfDoneConst]; - - diff --git a/src/versions/v1/models/update-activity-request.ts b/src/versions/v1/models/update-activity-request.ts deleted file mode 100644 index a4855119..00000000 --- a/src/versions/v1/models/update-activity-request.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ActivityAllOf } from './activity-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdateActivityRequestAllOf } from './update-activity-request-all-of'; - -/** - * @type UpdateActivityRequest - * @export - */ -export type UpdateActivityRequest = ActivityAllOf & UpdateActivityRequestAllOf; - - diff --git a/src/versions/v1/models/update-activity-response.ts b/src/versions/v1/models/update-activity-response.ts deleted file mode 100644 index 3683af4e..00000000 --- a/src/versions/v1/models/update-activity-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Activity } from './activity'; -// May contain unused imports in some cases -// @ts-ignore -import { AddActivityResponseRelatedObjects } from './add-activity-response-related-objects'; - -/** -* -* @export -* @interface UpdateActivityResponse -*/ -export interface UpdateActivityResponse { - /** - * - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {Activity} - */ - 'data'?: Activity; - /** - * - * @type {AddActivityResponseRelatedObjects} - */ - 'related_objects'?: AddActivityResponseRelatedObjects; -} - diff --git a/src/versions/v1/models/update-deal-parameters.ts b/src/versions/v1/models/update-deal-parameters.ts deleted file mode 100644 index 44de8172..00000000 --- a/src/versions/v1/models/update-deal-parameters.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface UpdateDealParameters -*/ -export interface UpdateDealParameters { - /** - * The value of the deal. - * @type {string} - */ - 'value'?: string; - /** - * Array of the deal labels IDs. - * @type {Array} - */ - 'label'?: Array; - /** - * The currency of the deal. Accepts a 3-character currency code. - * @type {string} - */ - 'currency'?: string; - /** - * The ID of the user which will be the new owner of the deal. - * @type {number} - */ - 'user_id'?: number; - /** - * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. - * @type {number} - */ - 'person_id'?: number; - /** - * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. - * @type {number} - */ - 'org_id'?: number; - /** - * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. - * @type {number} - */ - 'pipeline_id'?: number; - /** - * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. - * @type {number} - */ - 'stage_id'?: number; - /** - * Whether the deal is archived or not - * @type {boolean} - */ - 'is_archived'?: boolean; - /** - * open = Open, won = Won, lost = Lost, deleted = Deleted. - * @type {string} - */ - 'status'?: UpdateDealParametersStatusConst; - /** - * The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company which you can fetch with GET /v1/dealFields. - * @type {number} - */ - 'channel'?: number | null; - /** - * The optional ID to further distinguish the Marketing channel. - * @type {string} - */ - 'channel_id'?: string | null; -} - - export const UpdateDealParametersStatusConst = { - open: 'open', - won: 'won', - lost: 'lost', - deleted: 'deleted' - } as const; - - export type UpdateDealParametersStatusConst = typeof UpdateDealParametersStatusConst[keyof typeof UpdateDealParametersStatusConst]; - - diff --git a/src/versions/v1/models/update-deal-product-request-all-of.ts b/src/versions/v1/models/update-deal-product-request-all-of.ts deleted file mode 100644 index c72fdd5e..00000000 --- a/src/versions/v1/models/update-deal-product-request-all-of.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface UpdateDealProductRequestAllOf -*/ -export interface UpdateDealProductRequestAllOf { - /** - * Only available in Growth and above plans How often a customer is billed for access to a service or product To set `billing_frequency` different than `one-time`, the deal must not have installments associated A deal can have up to 20 products attached with `billing_frequency` different than `one-time` - * @type {string} - */ - 'billing_frequency'?: UpdateDealProductRequestAllOfBillingFrequencyConst; -} - - export const UpdateDealProductRequestAllOfBillingFrequencyConst = { - one_time: 'one-time', - annually: 'annually', - semi_annually: 'semi-annually', - quarterly: 'quarterly', - monthly: 'monthly', - weekly: 'weekly' - } as const; - - export type UpdateDealProductRequestAllOfBillingFrequencyConst = typeof UpdateDealProductRequestAllOfBillingFrequencyConst[keyof typeof UpdateDealProductRequestAllOfBillingFrequencyConst]; - - diff --git a/src/versions/v1/models/update-deal-product-request.ts b/src/versions/v1/models/update-deal-product-request.ts deleted file mode 100644 index 23fc92d8..00000000 --- a/src/versions/v1/models/update-deal-product-request.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddDealProductRequestAllOf1 } from './add-deal-product-request-all-of1'; -// May contain unused imports in some cases -// @ts-ignore -import { AddDealProductRequestAllOf2 } from './add-deal-product-request-all-of2'; -// May contain unused imports in some cases -// @ts-ignore -import { DealProductRequestBody1 } from './deal-product-request-body1'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdateDealProductRequestAllOf } from './update-deal-product-request-all-of'; - -/** - * @type UpdateDealProductRequest - * @export - */ -export type UpdateDealProductRequest = AddDealProductRequestAllOf1 & AddDealProductRequestAllOf2 & DealProductRequestBody1 & UpdateDealProductRequestAllOf; - - diff --git a/src/versions/v1/models/update-deal-request.ts b/src/versions/v1/models/update-deal-request.ts deleted file mode 100644 index cb09a641..00000000 --- a/src/versions/v1/models/update-deal-request.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasicDeal } from './basic-deal'; -// May contain unused imports in some cases -// @ts-ignore -import { DealTitleParam } from './deal-title-param'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdateDealParameters } from './update-deal-parameters'; - -/** - * @type UpdateDealRequest - * @export - */ -export type UpdateDealRequest = BasicDeal & DealTitleParam & UpdateDealParameters; - - diff --git a/src/versions/v1/models/update-organization-request-all-of.ts b/src/versions/v1/models/update-organization-request-all-of.ts deleted file mode 100644 index 897a8bcd..00000000 --- a/src/versions/v1/models/update-organization-request-all-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface UpdateOrganizationRequestAllOf -*/ -export interface UpdateOrganizationRequestAllOf { - /** - * The name of the organization - * @type {string} - */ - 'name'?: string; -} - diff --git a/src/versions/v1/models/update-organization-request.ts b/src/versions/v1/models/update-organization-request.ts deleted file mode 100644 index 95f9d24f..00000000 --- a/src/versions/v1/models/update-organization-request.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasicOrganization } from './basic-organization'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdateOrganizationRequestAllOf } from './update-organization-request-all-of'; - -/** - * @type UpdateOrganizationRequest - * @export - */ -export type UpdateOrganizationRequest = BasicOrganization & UpdateOrganizationRequestAllOf; - - diff --git a/src/versions/v1/models/update-organization-response-all-of.ts b/src/versions/v1/models/update-organization-response-all-of.ts deleted file mode 100644 index 99e03070..00000000 --- a/src/versions/v1/models/update-organization-response-all-of.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItem } from './base-organization-item'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; - -/** -* -* @export -* @interface UpdateOrganizationResponseAllOf -*/ -export interface UpdateOrganizationResponseAllOf { - /** - * - * @type {BaseOrganizationItem} - */ - 'data': BaseOrganizationItem; - /** - * - * @type {GetOrganizationsResponseAllOfRelatedObjects} - */ - 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; -} - diff --git a/src/versions/v1/models/update-organization-response.ts b/src/versions/v1/models/update-organization-response.ts deleted file mode 100644 index 0a98861e..00000000 --- a/src/versions/v1/models/update-organization-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseOrganizationItem } from './base-organization-item'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdateOrganizationResponseAllOf } from './update-organization-response-all-of'; - -/** - * @type UpdateOrganizationResponse - * @export - */ -export type UpdateOrganizationResponse = BaseResponse & UpdateOrganizationResponseAllOf; - - diff --git a/src/versions/v1/models/update-person-request-all-of.ts b/src/versions/v1/models/update-person-request-all-of.ts deleted file mode 100644 index 7e266bd8..00000000 --- a/src/versions/v1/models/update-person-request-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface UpdatePersonRequestAllOf -*/ -export interface UpdatePersonRequestAllOf { - [key: string]: any | any; - - /** - * The name of the person - * @type {string} - */ - 'name'?: string; -} - diff --git a/src/versions/v1/models/update-person-request.ts b/src/versions/v1/models/update-person-request.ts deleted file mode 100644 index f2129618..00000000 --- a/src/versions/v1/models/update-person-request.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasicPersonRequest } from './basic-person-request'; -// May contain unused imports in some cases -// @ts-ignore -import { BasicPersonRequestEmailInner } from './basic-person-request-email-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { DealParticipantItemPersonIdPhoneInner } from './deal-participant-item-person-id-phone-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdatePersonRequestAllOf } from './update-person-request-all-of'; - -/** - * @type UpdatePersonRequest - * @export - */ -export type UpdatePersonRequest = BasicPersonRequest & UpdatePersonRequestAllOf; - - diff --git a/src/versions/v1/models/update-person-response.ts b/src/versions/v1/models/update-person-response.ts deleted file mode 100644 index e2d79869..00000000 --- a/src/versions/v1/models/update-person-response.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddPersonResponseAllOf } from './add-person-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { GetProductsResponseAllOfRelatedObjects } from './get-products-response-all-of-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { Person } from './person'; - -/** - * @type UpdatePersonResponse - * @export - */ -export type UpdatePersonResponse = AddPersonResponseAllOf & BaseResponse; - - diff --git a/src/versions/v1/models/update-pipeline-response-all-of-data.ts b/src/versions/v1/models/update-pipeline-response-all-of-data.ts deleted file mode 100644 index 858437f0..00000000 --- a/src/versions/v1/models/update-pipeline-response-all-of-data.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BasePipelineWithSelectedFlag } from './base-pipeline-with-selected-flag'; - -/** - * @type UpdatePipelineResponseAllOfData - * The pipeline object - * @export - */ -export type UpdatePipelineResponseAllOfData = BasePipelineWithSelectedFlag; - - diff --git a/src/versions/v1/models/update-pipeline-response-all-of.ts b/src/versions/v1/models/update-pipeline-response-all-of.ts deleted file mode 100644 index e6b01e61..00000000 --- a/src/versions/v1/models/update-pipeline-response-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { UpdatePipelineResponseAllOfData } from './update-pipeline-response-all-of-data'; - -/** -* -* @export -* @interface UpdatePipelineResponseAllOf -*/ -export interface UpdatePipelineResponseAllOf { - /** - * - * @type {UpdatePipelineResponseAllOfData} - */ - 'data'?: UpdatePipelineResponseAllOfData; -} - diff --git a/src/versions/v1/models/update-pipeline-response.ts b/src/versions/v1/models/update-pipeline-response.ts deleted file mode 100644 index 18274e8d..00000000 --- a/src/versions/v1/models/update-pipeline-response.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseResponse } from './base-response'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdatePipelineResponseAllOf } from './update-pipeline-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdatePipelineResponseAllOfData } from './update-pipeline-response-all-of-data'; - -/** - * @type UpdatePipelineResponse - * @export - */ -export type UpdatePipelineResponse = BaseResponse & UpdatePipelineResponseAllOf; - - diff --git a/src/versions/v1/models/update-product-request-all-of.ts b/src/versions/v1/models/update-product-request-all-of.ts deleted file mode 100644 index bbed6a95..00000000 --- a/src/versions/v1/models/update-product-request-all-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface UpdateProductRequestAllOf -*/ -export interface UpdateProductRequestAllOf { - /** - * The name of the product - * @type {string} - */ - 'name'?: string; -} - diff --git a/src/versions/v1/models/update-product-request-all-of1.ts b/src/versions/v1/models/update-product-request-all-of1.ts deleted file mode 100644 index d21672e9..00000000 --- a/src/versions/v1/models/update-product-request-all-of1.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface UpdateProductRequestAllOf1 -*/ -export interface UpdateProductRequestAllOf1 { - /** - * Only available in Growth and above plans How often a customer is billed for access to a service or product - * @type {string} - */ - 'billing_frequency'?: UpdateProductRequestAllOf1BillingFrequencyConst; -} - - export const UpdateProductRequestAllOf1BillingFrequencyConst = { - one_time: 'one-time', - annually: 'annually', - semi_annually: 'semi-annually', - quarterly: 'quarterly', - monthly: 'monthly', - weekly: 'weekly' - } as const; - - export type UpdateProductRequestAllOf1BillingFrequencyConst = typeof UpdateProductRequestAllOf1BillingFrequencyConst[keyof typeof UpdateProductRequestAllOf1BillingFrequencyConst]; - - diff --git a/src/versions/v1/models/update-product-request.ts b/src/versions/v1/models/update-product-request.ts deleted file mode 100644 index 58565464..00000000 --- a/src/versions/v1/models/update-product-request.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { AddProductRequestAllOf2 } from './add-product-request-all-of2'; -// May contain unused imports in some cases -// @ts-ignore -import { ProductRequest1 } from './product-request1'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdateProductRequestAllOf } from './update-product-request-all-of'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdateProductRequestAllOf1 } from './update-product-request-all-of1'; - -/** - * @type UpdateProductRequest - * @export - */ -export type UpdateProductRequest = AddProductRequestAllOf2 & ProductRequest1 & UpdateProductRequestAllOf & UpdateProductRequestAllOf1; - - diff --git a/src/versions/v1/models/update-product-response.ts b/src/versions/v1/models/update-product-response.ts deleted file mode 100644 index 14b0f1ac..00000000 --- a/src/versions/v1/models/update-product-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects'; -// May contain unused imports in some cases -// @ts-ignore -import { ProductListItemProduct } from './product-list-item-product'; - -/** -* -* @export -* @interface UpdateProductResponse -*/ -export interface UpdateProductResponse { - /** - * If the response is successful or not - * @type {boolean} - */ - 'success': boolean; - /** - * - * @type {ProductListItemProduct} - */ - 'data': ProductListItemProduct; - /** - * - * @type {GetActivitiesResponseRelatedObjects} - */ - 'related_objects': GetActivitiesResponseRelatedObjects; -} - diff --git a/src/versions/v1/models/update-recurring-subscription-request.ts b/src/versions/v1/models/update-recurring-subscription-request.ts deleted file mode 100644 index 17982353..00000000 --- a/src/versions/v1/models/update-recurring-subscription-request.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface UpdateRecurringSubscriptionRequest -*/ -export interface UpdateRecurringSubscriptionRequest { - /** - * All payments after that date will be affected. Format: YYYY-MM-DD - * @type {string} - */ - 'effective_date': string; - /** - * The description of the recurring subscription - * @type {string} - */ - 'description'?: string; - /** - * The amount of each payment - * @type {number} - */ - 'cycle_amount'?: number; - /** - * Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). - * @type {Array} - */ - 'payments'?: Array; - /** - * Indicates that the deal value must be set to recurring subscription\'s MRR value - * @type {boolean} - */ - 'update_deal_value'?: boolean; -} - diff --git a/src/versions/v1/models/update-stage-request-all-of.ts b/src/versions/v1/models/update-stage-request-all-of.ts deleted file mode 100644 index 0399ca09..00000000 --- a/src/versions/v1/models/update-stage-request-all-of.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface UpdateStageRequestAllOf -*/ -export interface UpdateStageRequestAllOf { - /** - * An order number for this stage. Order numbers should be used to order the stages in the pipeline. - * @type {number} - */ - 'order_nr'?: number; -} - diff --git a/src/versions/v1/models/update-stage-request.ts b/src/versions/v1/models/update-stage-request.ts deleted file mode 100644 index b253bbcb..00000000 --- a/src/versions/v1/models/update-stage-request.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { Stage } from './stage'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdateStageRequestAllOf } from './update-stage-request-all-of'; - -/** - * @type UpdateStageRequest - * @export - */ -export type UpdateStageRequest = Stage & UpdateStageRequestAllOf; - - diff --git a/src/versions/v1/models/update-subscription-installment-request.ts b/src/versions/v1/models/update-subscription-installment-request.ts deleted file mode 100644 index 1fb98e2a..00000000 --- a/src/versions/v1/models/update-subscription-installment-request.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface UpdateSubscriptionInstallmentRequest -*/ -export interface UpdateSubscriptionInstallmentRequest { - /** - * Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with a explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). - * @type {Array} - */ - 'payments': Array; - /** - * Indicates that the deal value must be set to installment subscription\'s total value - * @type {boolean} - */ - 'update_deal_value'?: boolean; -} - diff --git a/src/versions/v1/models/upsert-stage-response.ts b/src/versions/v1/models/upsert-stage-response.ts deleted file mode 100644 index 8809d02b..00000000 --- a/src/versions/v1/models/upsert-stage-response.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { BaseStage1 } from './base-stage1'; - -/** -* -* @export -* @interface UpsertStageResponse -*/ -export interface UpsertStageResponse { - /** - * If the request was successful or not - * @type {boolean} - */ - 'success'?: boolean; - /** - * - * @type {BaseStage1} - */ - 'data'?: BaseStage1; -} - diff --git a/src/versions/v2/api/beta-api.ts b/src/versions/v2/api/beta-api.ts deleted file mode 100644 index ae6f57c7..00000000 --- a/src/versions/v2/api/beta-api.ts +++ /dev/null @@ -1,1323 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import type { Configuration } from '../configuration'; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import globalAxios from 'axios'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { AddAInstallmentResponse } from '../models'; -// @ts-ignore -import { AddConvertDealToLeadResponse } from '../models'; -// @ts-ignore -import { AddConvertLeadToDealResponse } from '../models'; -// @ts-ignore -import { AddInstallmentRequestBody } from '../models'; -// @ts-ignore -import { AddProductImageResponse } from '../models'; -// @ts-ignore -import { ConvertLeadToDealRequest } from '../models'; -// @ts-ignore -import { DeleteInstallmentResponse } from '../models'; -// @ts-ignore -import { DeleteProductImageResponse } from '../models'; -// @ts-ignore -import { GetConvertResponse } from '../models'; -// @ts-ignore -import { GetConvertResponse1 } from '../models'; -// @ts-ignore -import { GetInstallmentsResponse } from '../models'; -// @ts-ignore -import { GetProductImageResponse } from '../models'; -// @ts-ignore -import { UpdateInstallmentRequestBody } from '../models'; -// @ts-ignore -import { UpdateInstallmentResponse } from '../models'; -// @ts-ignore -import { UpdateProductImageResponse } from '../models'; -/** - * BetaApi - axios parameter creator - * @export - */ -export const BetaApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the /api/v2/deals/{deal_id}/convert/status/{conversion_id} endpoint. - * @summary Convert a deal to a lead (BETA) - * @param {number} id The ID of the deal to convert - - * @throws {RequiredError} - */ - convertDealToLead: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('convertDealToLead', 'id', id) - const localVarPath = `/deals/{id}/convert/lead` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the /api/v2/leads/{lead_id}/convert/status/{conversion_id} endpoint. - * @summary Convert a lead to a deal (BETA) - * @param {string} id The ID of the lead to convert - * @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest] - - * @throws {RequiredError} - */ - convertLeadToDeal: async (id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('convertLeadToDeal', 'id', id) - const localVarPath = `/leads/{id}/convert/deal` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(ConvertLeadToDealRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Removes an installment from a deal. Only available in Growth and above plans. - * @summary Delete an installment from a deal - * @param {number} id The ID of the deal - * @param {number} installment_id The ID of the installment - - * @throws {RequiredError} - */ - deleteInstallment: async (id: number, installment_id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteInstallment', 'id', id) - // verify required parameter 'installment_id' is not null or undefined - assertParamExists('deleteInstallment', 'installment_id', installment_id) - const localVarPath = `/deals/{id}/installments/{installment_id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"installment_id"}}`, encodeURIComponent(String(installment_id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Deletes the image of a product. - * @summary Delete an image of a product - * @param {number} id The ID of the product - - * @throws {RequiredError} - */ - deleteProductImage: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteProductImage', 'id', id) - const localVarPath = `/products/{id}/images` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days. - * @summary Get Deal conversion status (BETA) - * @param {number} id The ID of a deal - * @param {string} conversion_id The ID of the conversion - - * @throws {RequiredError} - */ - getDealConversionStatus: async (id: number, conversion_id: string, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getDealConversionStatus', 'id', id) - // verify required parameter 'conversion_id' is not null or undefined - assertParamExists('getDealConversionStatus', 'conversion_id', conversion_id) - const localVarPath = `/deals/{id}/convert/status/{conversion_id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"conversion_id"}}`, encodeURIComponent(String(conversion_id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "deals:read"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists installments attached to a list of deals. Only available in Growth and above plans. - * @summary List installments added to a list of deals - * @param {Array} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided. - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`. - * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. - - * @throws {RequiredError} - */ - getInstallments: async (deal_ids: Array, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc', ): Promise => { - // verify required parameter 'deal_ids' is not null or undefined - assertParamExists('getInstallments', 'deal_ids', deal_ids) - const localVarPath = `/deals/installments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - if (deal_ids) { - localVarQueryParameter['deal_ids'] = deal_ids; - } - - if (cursor !== undefined) { - localVarQueryParameter['cursor'] = cursor; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (sort_by !== undefined) { - localVarQueryParameter['sort_by'] = sort_by; - } - - if (sort_direction !== undefined) { - localVarQueryParameter['sort_direction'] = sort_direction; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days. - * @summary Get Lead conversion status (BETA) - * @param {string} id The ID of a lead - * @param {string} conversion_id The ID of the conversion - - * @throws {RequiredError} - */ - getLeadConversionStatus: async (id: string, conversion_id: string, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getLeadConversionStatus', 'id', id) - // verify required parameter 'conversion_id' is not null or undefined - assertParamExists('getLeadConversionStatus', 'conversion_id', conversion_id) - const localVarPath = `/leads/{id}/convert/status/{conversion_id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"conversion_id"}}`, encodeURIComponent(String(conversion_id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full", "leads:read"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Retrieves the image of a product. The public URL has a limited lifetime of 7 days. - * @summary Get image of a product - * @param {number} id The ID of the product - - * @throws {RequiredError} - */ - getProductImage: async (id: number, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getProductImage', 'id', id) - const localVarPath = `/products/{id}/images` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans. - * @summary Add an installment to a deal - * @param {number} id The ID of the deal - * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody] - - * @throws {RequiredError} - */ - postInstallment: async (id: number, AddInstallmentRequestBody?: AddInstallmentRequestBody, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('postInstallment', 'id', id) - const localVarPath = `/deals/{id}/installments` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(AddInstallmentRequestBody, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Edits an installment added to a deal. Only available in Growth and above plans. - * @summary Update an installment added to a deal - * @param {number} id The ID of the deal - * @param {number} installment_id The ID of the installment - * @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody] - - * @throws {RequiredError} - */ - updateInstallment: async (id: number, installment_id: number, UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateInstallment', 'id', id) - // verify required parameter 'installment_id' is not null or undefined - assertParamExists('updateInstallment', 'installment_id', installment_id) - const localVarPath = `/deals/{id}/installments/{installment_id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"installment_id"}}`, encodeURIComponent(String(installment_id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = serializeDataIfNeeded(UpdateInstallmentRequestBody, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Updates the image of a product. - * @summary Update an image for a product - * @param {number} id The ID of the product - * @param {File} data One image supplied in the multipart/form-data encoding - - * @throws {RequiredError} - */ - updateProductImage: async (id: number, data: File, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateProductImage', 'id', id) - // verify required parameter 'data' is not null or undefined - assertParamExists('updateProductImage', 'data', data) - const localVarPath = `/products/{id}/images` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) - - - if (data !== undefined) { - localVarFormParams.append('data', data as any); - } - - - localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Uploads an image for a product. - * @summary Upload an image for a product - * @param {number} id The ID of the product - * @param {File} data One image supplied in the multipart/form-data encoding - - * @throws {RequiredError} - */ - uploadProductImage: async (id: number, data: File, ): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('uploadProductImage', 'id', id) - // verify required parameter 'data' is not null or undefined - assertParamExists('uploadProductImage', 'data', data) - const localVarPath = `/products/{id}/images` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); - - // authentication api_key required - await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration) - - // authentication oauth2 required - // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) - - - if (data !== undefined) { - localVarFormParams.append('data', data as any); - } - - - localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - - -/** - * BetaApi - functional programming interface - * @export - */ -export const BetaApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = BetaApiAxiosParamCreator(configuration) - return { - /** - * Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the /api/v2/deals/{deal_id}/convert/status/{conversion_id} endpoint. - * @summary Convert a deal to a lead (BETA) - * @param {number} id The ID of the deal to convert - - * @throws {RequiredError} - */ - async convertDealToLead(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.convertDealToLead(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the /api/v2/leads/{lead_id}/convert/status/{conversion_id} endpoint. - * @summary Convert a lead to a deal (BETA) - * @param {string} id The ID of the lead to convert - * @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest] - - * @throws {RequiredError} - */ - async convertLeadToDeal(id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.convertLeadToDeal(id, ConvertLeadToDealRequest, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Removes an installment from a deal. Only available in Growth and above plans. - * @summary Delete an installment from a deal - * @param {number} id The ID of the deal - * @param {number} installment_id The ID of the installment - - * @throws {RequiredError} - */ - async deleteInstallment(id: number, installment_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInstallment(id, installment_id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Deletes the image of a product. - * @summary Delete an image of a product - * @param {number} id The ID of the product - - * @throws {RequiredError} - */ - async deleteProductImage(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductImage(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days. - * @summary Get Deal conversion status (BETA) - * @param {number} id The ID of a deal - * @param {string} conversion_id The ID of the conversion - - * @throws {RequiredError} - */ - async getDealConversionStatus(id: number, conversion_id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDealConversionStatus(id, conversion_id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Lists installments attached to a list of deals. Only available in Growth and above plans. - * @summary List installments added to a list of deals - * @param {Array} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided. - * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`. - * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. - - * @throws {RequiredError} - */ - async getInstallments(deal_ids: Array, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getInstallments(deal_ids, cursor, limit, sort_by, sort_direction, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days. - * @summary Get Lead conversion status (BETA) - * @param {string} id The ID of a lead - * @param {string} conversion_id The ID of the conversion - - * @throws {RequiredError} - */ - async getLeadConversionStatus(id: string, conversion_id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLeadConversionStatus(id, conversion_id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Retrieves the image of a product. The public URL has a limited lifetime of 7 days. - * @summary Get image of a product - * @param {number} id The ID of the product - - * @throws {RequiredError} - */ - async getProductImage(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getProductImage(id, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans. - * @summary Add an installment to a deal - * @param {number} id The ID of the deal - * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody] - - * @throws {RequiredError} - */ - async postInstallment(id: number, AddInstallmentRequestBody?: AddInstallmentRequestBody, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.postInstallment(id, AddInstallmentRequestBody, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Edits an installment added to a deal. Only available in Growth and above plans. - * @summary Update an installment added to a deal - * @param {number} id The ID of the deal - * @param {number} installment_id The ID of the installment - * @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody] - - * @throws {RequiredError} - */ - async updateInstallment(id: number, installment_id: number, UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateInstallment(id, installment_id, UpdateInstallmentRequestBody, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Updates the image of a product. - * @summary Update an image for a product - * @param {number} id The ID of the product - * @param {File} data One image supplied in the multipart/form-data encoding - - * @throws {RequiredError} - */ - async updateProductImage(id: number, data: File, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductImage(id, data, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Uploads an image for a product. - * @summary Upload an image for a product - * @param {number} id The ID of the product - * @param {File} data One image supplied in the multipart/form-data encoding - - * @throws {RequiredError} - */ - async uploadProductImage(id: number, data: File, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.uploadProductImage(id, data, ); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * BetaApi - factory interface - * @export - */ -export const BetaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = BetaApiFp(configuration) - return { - /** - * Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the /api/v2/deals/{deal_id}/convert/status/{conversion_id} endpoint. - * @summary Convert a deal to a lead (BETA) - * @param {BetaApiConvertDealToLeadRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - convertDealToLead(requestParameters: BetaApiConvertDealToLeadRequest, ): Promise { - return localVarFp.convertDealToLead(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the /api/v2/leads/{lead_id}/convert/status/{conversion_id} endpoint. - * @summary Convert a lead to a deal (BETA) - * @param {BetaApiConvertLeadToDealRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - convertLeadToDeal(requestParameters: BetaApiConvertLeadToDealRequest, ): Promise { - return localVarFp.convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest, ).then((request) => request(axios, basePath)); - }, - /** - * Removes an installment from a deal. Only available in Growth and above plans. - * @summary Delete an installment from a deal - * @param {BetaApiDeleteInstallmentRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - deleteInstallment(requestParameters: BetaApiDeleteInstallmentRequest, ): Promise { - return localVarFp.deleteInstallment(requestParameters.id, requestParameters.installment_id, ).then((request) => request(axios, basePath)); - }, - /** - * Deletes the image of a product. - * @summary Delete an image of a product - * @param {BetaApiDeleteProductImageRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - deleteProductImage(requestParameters: BetaApiDeleteProductImageRequest, ): Promise { - return localVarFp.deleteProductImage(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days. - * @summary Get Deal conversion status (BETA) - * @param {BetaApiGetDealConversionStatusRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - getDealConversionStatus(requestParameters: BetaApiGetDealConversionStatusRequest, ): Promise { - return localVarFp.getDealConversionStatus(requestParameters.id, requestParameters.conversion_id, ).then((request) => request(axios, basePath)); - }, - /** - * Lists installments attached to a list of deals. Only available in Growth and above plans. - * @summary List installments added to a list of deals - * @param {BetaApiGetInstallmentsRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - getInstallments(requestParameters: BetaApiGetInstallmentsRequest, ): Promise { - return localVarFp.getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(axios, basePath)); - }, - /** - * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days. - * @summary Get Lead conversion status (BETA) - * @param {BetaApiGetLeadConversionStatusRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - getLeadConversionStatus(requestParameters: BetaApiGetLeadConversionStatusRequest, ): Promise { - return localVarFp.getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id, ).then((request) => request(axios, basePath)); - }, - /** - * Retrieves the image of a product. The public URL has a limited lifetime of 7 days. - * @summary Get image of a product - * @param {BetaApiGetProductImageRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - getProductImage(requestParameters: BetaApiGetProductImageRequest, ): Promise { - return localVarFp.getProductImage(requestParameters.id, ).then((request) => request(axios, basePath)); - }, - /** - * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans. - * @summary Add an installment to a deal - * @param {BetaApiPostInstallmentRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - postInstallment(requestParameters: BetaApiPostInstallmentRequest, ): Promise { - return localVarFp.postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody, ).then((request) => request(axios, basePath)); - }, - /** - * Edits an installment added to a deal. Only available in Growth and above plans. - * @summary Update an installment added to a deal - * @param {BetaApiUpdateInstallmentRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - updateInstallment(requestParameters: BetaApiUpdateInstallmentRequest, ): Promise { - return localVarFp.updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody, ).then((request) => request(axios, basePath)); - }, - /** - * Updates the image of a product. - * @summary Update an image for a product - * @param {BetaApiUpdateProductImageRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - updateProductImage(requestParameters: BetaApiUpdateProductImageRequest, ): Promise { - return localVarFp.updateProductImage(requestParameters.id, requestParameters.data, ).then((request) => request(axios, basePath)); - }, - /** - * Uploads an image for a product. - * @summary Upload an image for a product - * @param {BetaApiUploadProductImageRequest} requestParameters Request parameters. - - * @throws {RequiredError} - */ - uploadProductImage(requestParameters: BetaApiUploadProductImageRequest, ): Promise { - return localVarFp.uploadProductImage(requestParameters.id, requestParameters.data, ).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for convertDealToLead operation in BetaApi. - * @export - * @interface BetaApiConvertDealToLeadRequest - */ -export interface BetaApiConvertDealToLeadRequest { - /** - * The ID of the deal to convert - * @type {number} - * @memberof BetaApiConvertDealToLead - */ - readonly id: number -} - -/** - * Request parameters for convertLeadToDeal operation in BetaApi. - * @export - * @interface BetaApiConvertLeadToDealRequest - */ -export interface BetaApiConvertLeadToDealRequest { - /** - * The ID of the lead to convert - * @type {string} - * @memberof BetaApiConvertLeadToDeal - */ - readonly id: string - - /** - * - * @type {ConvertLeadToDealRequest} - * @memberof BetaApiConvertLeadToDeal - */ - readonly ConvertLeadToDealRequest?: ConvertLeadToDealRequest -} - -/** - * Request parameters for deleteInstallment operation in BetaApi. - * @export - * @interface BetaApiDeleteInstallmentRequest - */ -export interface BetaApiDeleteInstallmentRequest { - /** - * The ID of the deal - * @type {number} - * @memberof BetaApiDeleteInstallment - */ - readonly id: number - - /** - * The ID of the installment - * @type {number} - * @memberof BetaApiDeleteInstallment - */ - readonly installment_id: number -} - -/** - * Request parameters for deleteProductImage operation in BetaApi. - * @export - * @interface BetaApiDeleteProductImageRequest - */ -export interface BetaApiDeleteProductImageRequest { - /** - * The ID of the product - * @type {number} - * @memberof BetaApiDeleteProductImage - */ - readonly id: number -} - -/** - * Request parameters for getDealConversionStatus operation in BetaApi. - * @export - * @interface BetaApiGetDealConversionStatusRequest - */ -export interface BetaApiGetDealConversionStatusRequest { - /** - * The ID of a deal - * @type {number} - * @memberof BetaApiGetDealConversionStatus - */ - readonly id: number - - /** - * The ID of the conversion - * @type {string} - * @memberof BetaApiGetDealConversionStatus - */ - readonly conversion_id: string -} - -/** - * Request parameters for getInstallments operation in BetaApi. - * @export - * @interface BetaApiGetInstallmentsRequest - */ -export interface BetaApiGetInstallmentsRequest { - /** - * An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided. - * @type {Array} - * @memberof BetaApiGetInstallments - */ - readonly deal_ids: Array - - /** - * For pagination, the marker (an opaque string value) representing the first item on the next page - * @type {string} - * @memberof BetaApiGetInstallments - */ - readonly cursor?: string - - /** - * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @type {number} - * @memberof BetaApiGetInstallments - */ - readonly limit?: number - - /** - * The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`. - * @type {'id' | 'billing_date' | 'deal_id'} - * @memberof BetaApiGetInstallments - */ - readonly sort_by?: 'id' | 'billing_date' | 'deal_id' - - /** - * The sorting direction. Supported values: `asc`, `desc`. - * @type {'asc' | 'desc'} - * @memberof BetaApiGetInstallments - */ - readonly sort_direction?: 'asc' | 'desc' -} - -/** - * Request parameters for getLeadConversionStatus operation in BetaApi. - * @export - * @interface BetaApiGetLeadConversionStatusRequest - */ -export interface BetaApiGetLeadConversionStatusRequest { - /** - * The ID of a lead - * @type {string} - * @memberof BetaApiGetLeadConversionStatus - */ - readonly id: string - - /** - * The ID of the conversion - * @type {string} - * @memberof BetaApiGetLeadConversionStatus - */ - readonly conversion_id: string -} - -/** - * Request parameters for getProductImage operation in BetaApi. - * @export - * @interface BetaApiGetProductImageRequest - */ -export interface BetaApiGetProductImageRequest { - /** - * The ID of the product - * @type {number} - * @memberof BetaApiGetProductImage - */ - readonly id: number -} - -/** - * Request parameters for postInstallment operation in BetaApi. - * @export - * @interface BetaApiPostInstallmentRequest - */ -export interface BetaApiPostInstallmentRequest { - /** - * The ID of the deal - * @type {number} - * @memberof BetaApiPostInstallment - */ - readonly id: number - - /** - * - * @type {AddInstallmentRequestBody} - * @memberof BetaApiPostInstallment - */ - readonly AddInstallmentRequestBody?: AddInstallmentRequestBody -} - -/** - * Request parameters for updateInstallment operation in BetaApi. - * @export - * @interface BetaApiUpdateInstallmentRequest - */ -export interface BetaApiUpdateInstallmentRequest { - /** - * The ID of the deal - * @type {number} - * @memberof BetaApiUpdateInstallment - */ - readonly id: number - - /** - * The ID of the installment - * @type {number} - * @memberof BetaApiUpdateInstallment - */ - readonly installment_id: number - - /** - * - * @type {UpdateInstallmentRequestBody} - * @memberof BetaApiUpdateInstallment - */ - readonly UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody -} - -/** - * Request parameters for updateProductImage operation in BetaApi. - * @export - * @interface BetaApiUpdateProductImageRequest - */ -export interface BetaApiUpdateProductImageRequest { - /** - * The ID of the product - * @type {number} - * @memberof BetaApiUpdateProductImage - */ - readonly id: number - - /** - * One image supplied in the multipart/form-data encoding - * @type {File} - * @memberof BetaApiUpdateProductImage - */ - readonly data: File -} - -/** - * Request parameters for uploadProductImage operation in BetaApi. - * @export - * @interface BetaApiUploadProductImageRequest - */ -export interface BetaApiUploadProductImageRequest { - /** - * The ID of the product - * @type {number} - * @memberof BetaApiUploadProductImage - */ - readonly id: number - - /** - * One image supplied in the multipart/form-data encoding - * @type {File} - * @memberof BetaApiUploadProductImage - */ - readonly data: File -} - -/** - * BetaApi - object-oriented interface - * @export - * @class BetaApi - * @extends {BaseAPI} - */ -export class BetaApi extends BaseAPI { - /** - * Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the /api/v2/deals/{deal_id}/convert/status/{conversion_id} endpoint. - * @summary Convert a deal to a lead (BETA) - * @param {BetaApiConvertDealToLeadRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public convertDealToLead(requestParameters: BetaApiConvertDealToLeadRequest, ) { - return BetaApiFp(this.configuration).convertDealToLead(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the /api/v2/leads/{lead_id}/convert/status/{conversion_id} endpoint. - * @summary Convert a lead to a deal (BETA) - * @param {BetaApiConvertLeadToDealRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public convertLeadToDeal(requestParameters: BetaApiConvertLeadToDealRequest, ) { - return BetaApiFp(this.configuration).convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Removes an installment from a deal. Only available in Growth and above plans. - * @summary Delete an installment from a deal - * @param {BetaApiDeleteInstallmentRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public deleteInstallment(requestParameters: BetaApiDeleteInstallmentRequest, ) { - return BetaApiFp(this.configuration).deleteInstallment(requestParameters.id, requestParameters.installment_id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Deletes the image of a product. - * @summary Delete an image of a product - * @param {BetaApiDeleteProductImageRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public deleteProductImage(requestParameters: BetaApiDeleteProductImageRequest, ) { - return BetaApiFp(this.configuration).deleteProductImage(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days. - * @summary Get Deal conversion status (BETA) - * @param {BetaApiGetDealConversionStatusRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public getDealConversionStatus(requestParameters: BetaApiGetDealConversionStatusRequest, ) { - return BetaApiFp(this.configuration).getDealConversionStatus(requestParameters.id, requestParameters.conversion_id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Lists installments attached to a list of deals. Only available in Growth and above plans. - * @summary List installments added to a list of deals - * @param {BetaApiGetInstallmentsRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public getInstallments(requestParameters: BetaApiGetInstallmentsRequest, ) { - return BetaApiFp(this.configuration).getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days. - * @summary Get Lead conversion status (BETA) - * @param {BetaApiGetLeadConversionStatusRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public getLeadConversionStatus(requestParameters: BetaApiGetLeadConversionStatusRequest, ) { - return BetaApiFp(this.configuration).getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Retrieves the image of a product. The public URL has a limited lifetime of 7 days. - * @summary Get image of a product - * @param {BetaApiGetProductImageRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public getProductImage(requestParameters: BetaApiGetProductImageRequest, ) { - return BetaApiFp(this.configuration).getProductImage(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans. - * @summary Add an installment to a deal - * @param {BetaApiPostInstallmentRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public postInstallment(requestParameters: BetaApiPostInstallmentRequest, ) { - return BetaApiFp(this.configuration).postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Edits an installment added to a deal. Only available in Growth and above plans. - * @summary Update an installment added to a deal - * @param {BetaApiUpdateInstallmentRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public updateInstallment(requestParameters: BetaApiUpdateInstallmentRequest, ) { - return BetaApiFp(this.configuration).updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Updates the image of a product. - * @summary Update an image for a product - * @param {BetaApiUpdateProductImageRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public updateProductImage(requestParameters: BetaApiUpdateProductImageRequest, ) { - return BetaApiFp(this.configuration).updateProductImage(requestParameters.id, requestParameters.data, ).then((request) => request(this.axios, this.basePath)); - } - - /** - * Uploads an image for a product. - * @summary Upload an image for a product - * @param {BetaApiUploadProductImageRequest} requestParameters Request parameters. - - * @throws {RequiredError} - * @memberof BetaApi - */ - public uploadProductImage(requestParameters: BetaApiUploadProductImageRequest, ) { - return BetaApiFp(this.configuration).uploadProductImage(requestParameters.id, requestParameters.data, ).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/src/versions/v2/api/deals-api.ts b/src/versions/v2/api/deals-api.ts index 5f1289b4..c7032aa4 100644 --- a/src/versions/v2/api/deals-api.ts +++ b/src/versions/v2/api/deals-api.ts @@ -1242,7 +1242,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration }; }, /** - * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * Adds a discount to a deal, changing the deal value if the deal has one-time products attached. * @summary Add a discount to a deal * @param {number} id The ID of the deal * @param {AddAdditionalDiscountRequestBody} [AddAdditionalDiscountRequestBody] @@ -1907,7 +1907,7 @@ export const DealsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * Adds a discount to a deal, changing the deal value if the deal has one-time products attached. * @summary Add a discount to a deal * @param {number} id The ID of the deal * @param {AddAdditionalDiscountRequestBody} [AddAdditionalDiscountRequestBody] @@ -2221,7 +2221,7 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath return localVarFp.getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(axios, basePath)); }, /** - * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * Adds a discount to a deal, changing the deal value if the deal has one-time products attached. * @summary Add a discount to a deal * @param {DealsApiPostAdditionalDiscountRequest} requestParameters Request parameters. @@ -3463,7 +3463,7 @@ export class DealsApi extends BaseAPI { } /** - * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * Adds a discount to a deal, changing the deal value if the deal has one-time products attached. * @summary Add a discount to a deal * @param {DealsApiPostAdditionalDiscountRequest} requestParameters Request parameters. diff --git a/src/versions/v2/api/organizations-api.ts b/src/versions/v2/api/organizations-api.ts index 0691f51a..7b0ec5bb 100644 --- a/src/versions/v2/api/organizations-api.ts +++ b/src/versions/v2/api/organizations-api.ts @@ -379,7 +379,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi * @summary Get all organizations * @param {number} [filter_id] If supplied, only organizations matching the specified filter are returned * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. - * @param {number} [owner_id] If supplied, only organization owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {number} [owner_id] If supplied, only organizations owned by the specified user are returned. If filter_id is provided, this is ignored. * @param {string} [updated_since] If set, only organizations with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. * @param {string} [updated_until] If set, only organizations with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. @@ -676,7 +676,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) { * @summary Get all organizations * @param {number} [filter_id] If supplied, only organizations matching the specified filter are returned * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. - * @param {number} [owner_id] If supplied, only organization owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {number} [owner_id] If supplied, only organizations owned by the specified user are returned. If filter_id is provided, this is ignored. * @param {string} [updated_since] If set, only organizations with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. * @param {string} [updated_until] If set, only organizations with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. @@ -1007,7 +1007,7 @@ export interface OrganizationsApiGetOrganizationsRequest { readonly ids?: string /** - * If supplied, only organization owned by the specified user are returned. If filter_id is provided, this is ignored. + * If supplied, only organizations owned by the specified user are returned. If filter_id is provided, this is ignored. * @type {number} * @memberof OrganizationsApiGetOrganizations */ diff --git a/src/versions/v2/models/activity-item.ts b/src/versions/v2/models/activity-item.ts index e996606b..d847e1a1 100644 --- a/src/versions/v2/models/activity-item.ts +++ b/src/versions/v2/models/activity-item.ts @@ -15,13 +15,13 @@ // May contain unused imports in some cases // @ts-ignore -import { ActivityItemAttendeesInner } from './activity-item-attendees-inner'; +import { AddActivityRequestAttendeesInner } from './add-activity-request-attendees-inner'; // May contain unused imports in some cases // @ts-ignore -import { ActivityItemLocation } from './activity-item-location'; +import { AddActivityRequestLocation } from './add-activity-request-location'; // May contain unused imports in some cases // @ts-ignore -import { ActivityItemParticipantsInner } from './activity-item-participants-inner'; +import { AddActivityRequestParticipantsInner } from './add-activity-request-participants-inner'; /** * @@ -126,19 +126,19 @@ export interface ActivityItem { 'marked_as_done_time'?: string; /** * - * @type {ActivityItemLocation} + * @type {AddActivityRequestLocation} */ - 'location'?: ActivityItemLocation; + 'location'?: AddActivityRequestLocation; /** * The participants of the activity - * @type {Array} + * @type {Array} */ - 'participants'?: Array; + 'participants'?: Array; /** * The attendees of the activity - * @type {Array} + * @type {Array} */ - 'attendees'?: Array; + 'attendees'?: Array; /** * The client used for the conference meeting * @type {string} diff --git a/src/versions/v2/models/activity-item1.ts b/src/versions/v2/models/activity-item1.ts deleted file mode 100644 index 54d94d7f..00000000 --- a/src/versions/v2/models/activity-item1.ts +++ /dev/null @@ -1,173 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ActivityItemAttendeesInner } from './activity-item-attendees-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { ActivityItemLocation } from './activity-item-location'; -// May contain unused imports in some cases -// @ts-ignore -import { ActivityItemParticipantsInner } from './activity-item-participants-inner'; - -/** -* The activity object -* @export -* @interface ActivityItem1 -*/ -export interface ActivityItem1 { - /** - * The ID of the activity - * @type {number} - */ - 'id'?: number; - /** - * The subject of the activity - * @type {string} - */ - 'subject'?: string; - /** - * The type of the activity - * @type {string} - */ - 'type'?: string; - /** - * The ID of the user who owns the activity - * @type {number} - */ - 'owner_id'?: number; - /** - * The ID of the user who created the activity - * @type {number} - */ - 'creator_user_id'?: number; - /** - * Whether the activity is deleted or not - * @type {boolean} - */ - 'is_deleted'?: boolean; - /** - * The creation date and time of the activity - * @type {string} - */ - 'add_time'?: string; - /** - * The last updated date and time of the activity - * @type {string} - */ - 'update_time'?: string; - /** - * The ID of the deal linked to the activity - * @type {number} - */ - 'deal_id'?: number; - /** - * The ID of the lead linked to the activity - * @type {string} - */ - 'lead_id'?: string; - /** - * The ID of the person linked to the activity - * @type {number} - */ - 'person_id'?: number; - /** - * The ID of the organization linked to the activity - * @type {number} - */ - 'org_id'?: number; - /** - * The ID of the project linked to the activity - * @type {number} - */ - 'project_id'?: number; - /** - * The due date of the activity - * @type {string} - */ - 'due_date'?: string; - /** - * The due time of the activity - * @type {string} - */ - 'due_time'?: string; - /** - * The duration of the activity - * @type {string} - */ - 'duration'?: string; - /** - * Whether the activity marks the assignee as busy or not in their calendar - * @type {boolean} - */ - 'busy'?: boolean; - /** - * Whether the activity is marked as done or not - * @type {boolean} - */ - 'done'?: boolean; - /** - * The date and time when the activity was marked as done - * @type {string} - */ - 'marked_as_done_time'?: string; - /** - * - * @type {ActivityItemLocation} - */ - 'location'?: ActivityItemLocation; - /** - * The participants of the activity - * @type {Array} - */ - 'participants'?: Array; - /** - * The attendees of the activity - * @type {Array} - */ - 'attendees'?: Array; - /** - * The client used for the conference meeting - * @type {string} - */ - 'conference_meeting_client'?: string; - /** - * The URL of the conference meeting - * @type {string} - */ - 'conference_meeting_url'?: string; - /** - * The ID of the conference meeting - * @type {string} - */ - 'conference_meeting_id'?: string; - /** - * The public description of the activity - * @type {string} - */ - 'public_description'?: string; - /** - * The priority of the activity. Mappable to a specific string using activityFields API. - * @type {number} - */ - 'priority'?: number; - /** - * The note of the activity - * @type {string} - */ - 'note'?: string; -} - diff --git a/src/versions/v2/models/activity-item-attendees-inner.ts b/src/versions/v2/models/add-activity-request-attendees-inner.ts similarity index 91% rename from src/versions/v2/models/activity-item-attendees-inner.ts rename to src/versions/v2/models/add-activity-request-attendees-inner.ts index c82aaf29..56fd7629 100644 --- a/src/versions/v2/models/activity-item-attendees-inner.ts +++ b/src/versions/v2/models/add-activity-request-attendees-inner.ts @@ -17,9 +17,9 @@ /** * * @export -* @interface ActivityItemAttendeesInner +* @interface AddActivityRequestAttendeesInner */ -export interface ActivityItemAttendeesInner { +export interface AddActivityRequestAttendeesInner { /** * The email address of the attendee * @type {string} diff --git a/src/versions/v2/models/activity-item-location.ts b/src/versions/v2/models/add-activity-request-location.ts similarity index 94% rename from src/versions/v2/models/activity-item-location.ts rename to src/versions/v2/models/add-activity-request-location.ts index 2367be61..3e5345f6 100644 --- a/src/versions/v2/models/activity-item-location.ts +++ b/src/versions/v2/models/add-activity-request-location.ts @@ -17,9 +17,9 @@ /** * Location of the activity * @export -* @interface ActivityItemLocation +* @interface AddActivityRequestLocation */ -export interface ActivityItemLocation { +export interface AddActivityRequestLocation { /** * The full address of the activity * @type {string} diff --git a/src/versions/v2/models/activity-item-participants-inner.ts b/src/versions/v2/models/add-activity-request-participants-inner.ts similarity index 85% rename from src/versions/v2/models/activity-item-participants-inner.ts rename to src/versions/v2/models/add-activity-request-participants-inner.ts index c74fe421..d2bb347d 100644 --- a/src/versions/v2/models/activity-item-participants-inner.ts +++ b/src/versions/v2/models/add-activity-request-participants-inner.ts @@ -17,9 +17,9 @@ /** * * @export -* @interface ActivityItemParticipantsInner +* @interface AddActivityRequestParticipantsInner */ -export interface ActivityItemParticipantsInner { +export interface AddActivityRequestParticipantsInner { /** * The ID of the person * @type {number} diff --git a/src/versions/v2/models/add-activity-request.ts b/src/versions/v2/models/add-activity-request.ts index 06dee232..46d879df 100644 --- a/src/versions/v2/models/add-activity-request.ts +++ b/src/versions/v2/models/add-activity-request.ts @@ -15,13 +15,13 @@ // May contain unused imports in some cases // @ts-ignore -import { ActivityItemAttendeesInner } from './activity-item-attendees-inner'; +import { AddActivityRequestAttendeesInner } from './add-activity-request-attendees-inner'; // May contain unused imports in some cases // @ts-ignore -import { ActivityItemLocation } from './activity-item-location'; +import { AddActivityRequestLocation } from './add-activity-request-location'; // May contain unused imports in some cases // @ts-ignore -import { ActivityItemParticipantsInner } from './activity-item-participants-inner'; +import { AddActivityRequestParticipantsInner } from './add-activity-request-participants-inner'; /** * @@ -96,19 +96,19 @@ export interface AddActivityRequest { 'done'?: boolean; /** * - * @type {ActivityItemLocation} + * @type {AddActivityRequestLocation} */ - 'location'?: ActivityItemLocation; + 'location'?: AddActivityRequestLocation; /** * The participants of the activity - * @type {Array} + * @type {Array} */ - 'participants'?: Array; + 'participants'?: Array; /** * The attendees of the activity - * @type {Array} + * @type {Array} */ - 'attendees'?: Array; + 'attendees'?: Array; /** * The public description of the activity * @type {string} diff --git a/src/versions/v2/models/add-deal-field-request.ts b/src/versions/v2/models/add-deal-field-request.ts index 56273af7..8fa32190 100644 --- a/src/versions/v2/models/add-deal-field-request.ts +++ b/src/versions/v2/models/add-deal-field-request.ts @@ -38,7 +38,7 @@ export interface AddDealFieldRequest { */ 'field_name': string; /** - * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
+ * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
* @type {string} */ 'field_type': AddDealFieldRequestFieldTypeConst; diff --git a/src/versions/v2/models/add-follower-response-all-of.ts b/src/versions/v2/models/add-follower-response-all-of.ts index 3c069136..40191cd4 100644 --- a/src/versions/v2/models/add-follower-response-all-of.ts +++ b/src/versions/v2/models/add-follower-response-all-of.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { FollowerItem1 } from './follower-item1'; +import { FollowerItem } from './follower-item'; /** * @@ -25,8 +25,8 @@ import { FollowerItem1 } from './follower-item1'; export interface AddFollowerResponseAllOf { /** * - * @type {FollowerItem1} + * @type {FollowerItem} */ - 'data'?: FollowerItem1; + 'data'?: FollowerItem; } diff --git a/src/versions/v2/models/add-follower-response.ts b/src/versions/v2/models/add-follower-response.ts index fc644409..fc24ba7f 100644 --- a/src/versions/v2/models/add-follower-response.ts +++ b/src/versions/v2/models/add-follower-response.ts @@ -21,7 +21,7 @@ import { AddFollowerResponseAllOf } from './add-follower-response-all-of'; import { BaseResponse } from './base-response'; // May contain unused imports in some cases // @ts-ignore -import { FollowerItem1 } from './follower-item1'; +import { FollowerItem } from './follower-item'; /** * @type AddFollowerResponse diff --git a/src/versions/v2/models/add-installment-request-body.ts b/src/versions/v2/models/add-installment-request-body.ts index 2bb8ada6..8b1d2fdf 100644 --- a/src/versions/v2/models/add-installment-request-body.ts +++ b/src/versions/v2/models/add-installment-request-body.ts @@ -31,7 +31,7 @@ export interface AddInstallmentRequestBody { */ 'amount': number; /** - * The date which the installment will be charged. Must be in the format YYYY-MM-DD. + * The date on which the installment will be charged. Must be in the format YYYY-MM-DD. * @type {string} */ 'billing_date': string; diff --git a/src/versions/v2/models/add-organization-field-request.ts b/src/versions/v2/models/add-organization-field-request.ts index 23776480..c0e05674 100644 --- a/src/versions/v2/models/add-organization-field-request.ts +++ b/src/versions/v2/models/add-organization-field-request.ts @@ -38,7 +38,7 @@ export interface AddOrganizationFieldRequest { */ 'field_name': string; /** - * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
+ * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
* @type {string} */ 'field_type': AddOrganizationFieldRequestFieldTypeConst; diff --git a/src/versions/v2/models/add-person-field-request.ts b/src/versions/v2/models/add-person-field-request.ts index b7da0e63..10716437 100644 --- a/src/versions/v2/models/add-person-field-request.ts +++ b/src/versions/v2/models/add-person-field-request.ts @@ -38,7 +38,7 @@ export interface AddPersonFieldRequest { */ 'field_name': string; /** - * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
+ * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
* @type {string} */ 'field_type': AddPersonFieldRequestFieldTypeConst; diff --git a/src/versions/v2/models/add-person-request-emails-inner.ts b/src/versions/v2/models/add-person-request-emails-inner.ts index b5b4af5e..519ec805 100644 --- a/src/versions/v2/models/add-person-request-emails-inner.ts +++ b/src/versions/v2/models/add-person-request-emails-inner.ts @@ -32,8 +32,8 @@ export interface AddPersonRequestEmailsInner { 'primary'?: boolean; /** * The email address classification label - * @type {boolean} + * @type {string} */ - 'label'?: boolean; + 'label'?: string; } diff --git a/src/versions/v2/models/add-person-request-phones-inner.ts b/src/versions/v2/models/add-person-request-phones-inner.ts index fc88e9c9..ac7cb86a 100644 --- a/src/versions/v2/models/add-person-request-phones-inner.ts +++ b/src/versions/v2/models/add-person-request-phones-inner.ts @@ -32,8 +32,8 @@ export interface AddPersonRequestPhonesInner { 'primary'?: boolean; /** * The phone number classification label - * @type {boolean} + * @type {string} */ - 'label'?: boolean; + 'label'?: string; } diff --git a/src/versions/v2/models/add-person-request.ts b/src/versions/v2/models/add-person-request.ts index 71e92ea1..2b60c04c 100644 --- a/src/versions/v2/models/add-person-request.ts +++ b/src/versions/v2/models/add-person-request.ts @@ -15,10 +15,10 @@ // May contain unused imports in some cases // @ts-ignore -import { GetPersonsResponseAllOfDataInnerEmailsInner } from './get-persons-response-all-of-data-inner-emails-inner'; +import { AddPersonRequestEmailsInner } from './add-person-request-emails-inner'; // May contain unused imports in some cases // @ts-ignore -import { GetPersonsResponseAllOfDataInnerPhonesInner } from './get-persons-response-all-of-data-inner-phones-inner'; +import { AddPersonRequestPhonesInner } from './add-person-request-phones-inner'; /** * @@ -53,14 +53,14 @@ export interface AddPersonRequest { 'update_time'?: string; /** * The emails of the person - * @type {Array} + * @type {Array} */ - 'emails'?: Array; + 'emails'?: Array; /** * The phones of the person - * @type {Array} + * @type {Array} */ - 'phones'?: Array; + 'phones'?: Array; /** * The visibility of the person * @type {number} diff --git a/src/versions/v2/models/add-product-field-request.ts b/src/versions/v2/models/add-product-field-request.ts index f7d46075..3d2d315c 100644 --- a/src/versions/v2/models/add-product-field-request.ts +++ b/src/versions/v2/models/add-product-field-request.ts @@ -32,7 +32,7 @@ export interface AddProductFieldRequest { */ 'field_name': string; /** - * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
+ * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
* @type {string} */ 'field_type': AddProductFieldRequestFieldTypeConst; diff --git a/src/versions/v2/models/add-product-request.ts b/src/versions/v2/models/add-product-request.ts index afe04c7d..603ef368 100644 --- a/src/versions/v2/models/add-product-request.ts +++ b/src/versions/v2/models/add-product-request.ts @@ -18,7 +18,7 @@ import { AddProductRequestAllOf } from './add-product-request-all-of'; // May contain unused imports in some cases // @ts-ignore -import { BaseProductAllOf1 } from './base-product-all-of1'; +import { BaseProductAllOf } from './base-product-all-of'; // May contain unused imports in some cases // @ts-ignore import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-response-data-inner-all-of2'; @@ -30,6 +30,6 @@ import { ProductRequest } from './product-request'; * @type AddProductRequest * @export */ -export type AddProductRequest = AddProductRequestAllOf & BaseProductAllOf1 & GetDealsProductsResponseDataInnerAllOf2 & ProductRequest; +export type AddProductRequest = AddProductRequestAllOf & BaseProductAllOf & GetDealsProductsResponseDataInnerAllOf2 & ProductRequest; diff --git a/src/versions/v2/models/base-product-all-of.ts b/src/versions/v2/models/base-product-all-of.ts index adf2603a..84e20ae2 100644 --- a/src/versions/v2/models/base-product-all-of.ts +++ b/src/versions/v2/models/base-product-all-of.ts @@ -21,64 +21,21 @@ */ export interface BaseProductAllOf { /** - * The ID of the product - * @type {number} - */ - 'id'?: number; - /** - * The name of the product - * @type {string} - */ - 'name'?: string; - /** - * The product code + * Only available in Growth and above plans How often a customer is billed for access to a service or product * @type {string} */ - 'code'?: string; - /** - * The unit in which this product is sold - * @type {string} - */ - 'unit'?: string; - /** - * The tax percentage - * @type {number} - */ - 'tax'?: number; - /** - * Whether this product will be made marked as deleted or not - * @type {boolean} - */ - 'is_deleted'?: boolean; - /** - * Whether this product can be added to a deal or not - * @type {boolean} - */ - 'is_linkable'?: boolean; - /** - * - * @type {number} - */ - 'visible_to'?: BaseProductAllOfVisibleToConst; - /** - * Information about the Pipedrive user who owns the product - * @type {number} - */ - 'owner_id'?: number; - /** - * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes - * @type {{ [key: string]: any | undefined; }} - */ - 'custom_fields'?: { [key: string]: any | undefined; }; + 'billing_frequency'?: BaseProductAllOfBillingFrequencyConst; } - export const BaseProductAllOfVisibleToConst = { - NUMBER_1: 1, - NUMBER_3: 3, - NUMBER_5: 5, - NUMBER_7: 7 + export const BaseProductAllOfBillingFrequencyConst = { + one_time: 'one-time', + annually: 'annually', + semi_annually: 'semi-annually', + quarterly: 'quarterly', + monthly: 'monthly', + weekly: 'weekly' } as const; - export type BaseProductAllOfVisibleToConst = typeof BaseProductAllOfVisibleToConst[keyof typeof BaseProductAllOfVisibleToConst]; + export type BaseProductAllOfBillingFrequencyConst = typeof BaseProductAllOfBillingFrequencyConst[keyof typeof BaseProductAllOfBillingFrequencyConst]; diff --git a/src/versions/v2/models/base-product-all-of1.ts b/src/versions/v2/models/base-product-all-of1.ts deleted file mode 100644 index 8aa03b41..00000000 --- a/src/versions/v2/models/base-product-all-of1.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface BaseProductAllOf1 -*/ -export interface BaseProductAllOf1 { - /** - * Only available in Growth and above plans How often a customer is billed for access to a service or product - * @type {string} - */ - 'billing_frequency'?: BaseProductAllOf1BillingFrequencyConst; -} - - export const BaseProductAllOf1BillingFrequencyConst = { - one_time: 'one-time', - annually: 'annually', - semi_annually: 'semi-annually', - quarterly: 'quarterly', - monthly: 'monthly', - weekly: 'weekly' - } as const; - - export type BaseProductAllOf1BillingFrequencyConst = typeof BaseProductAllOf1BillingFrequencyConst[keyof typeof BaseProductAllOf1BillingFrequencyConst]; - - diff --git a/src/versions/v2/models/base-product.ts b/src/versions/v2/models/base-product.ts index e2bb6451..0b1ec114 100644 --- a/src/versions/v2/models/base-product.ts +++ b/src/versions/v2/models/base-product.ts @@ -18,15 +18,18 @@ import { BaseProductAllOf } from './base-product-all-of'; // May contain unused imports in some cases // @ts-ignore -import { BaseProductAllOf1 } from './base-product-all-of1'; +import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-response-data-inner-all-of2'; // May contain unused imports in some cases // @ts-ignore -import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-response-data-inner-all-of2'; +import { OrganizationItem } from './organization-item'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationItemAddress } from './organization-item-address'; /** * @type BaseProduct * @export */ -export type BaseProduct = BaseProductAllOf & BaseProductAllOf1 & GetDealsProductsResponseDataInnerAllOf2; +export type BaseProduct = BaseProductAllOf & GetDealsProductsResponseDataInnerAllOf2 & OrganizationItem; diff --git a/src/versions/v2/models/deal-item-custom-fields-value.ts b/src/versions/v2/models/deal-item-custom-fields-value.ts deleted file mode 100644 index 3dc1ca61..00000000 --- a/src/versions/v2/models/deal-item-custom-fields-value.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * @type DealItemCustomFieldsValue - * @export - */ -export type DealItemCustomFieldsValue = number | string | { [key: string]: any | undefined; }; - - diff --git a/src/versions/v2/models/deal-item1.ts b/src/versions/v2/models/deal-item1.ts deleted file mode 100644 index 2bba53b3..00000000 --- a/src/versions/v2/models/deal-item1.ts +++ /dev/null @@ -1,184 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The deal object -* @export -* @interface DealItem1 -*/ -export interface DealItem1 { - /** - * The ID of the deal - * @type {number} - */ - 'id'?: number; - /** - * The title of the deal - * @type {string} - */ - 'title'?: string; - /** - * The ID of the user who owns the deal - * @type {number} - */ - 'owner_id'?: number; - /** - * The ID of the person linked to the deal - * @type {number} - */ - 'person_id'?: number; - /** - * The ID of the organization linked to the deal - * @type {number} - */ - 'org_id'?: number; - /** - * The ID of the pipeline associated with the deal - * @type {number} - */ - 'pipeline_id'?: number; - /** - * The ID of the deal stage - * @type {number} - */ - 'stage_id'?: number; - /** - * The value of the deal - * @type {number} - */ - 'value'?: number; - /** - * The currency associated with the deal - * @type {string} - */ - 'currency'?: string; - /** - * The creation date and time of the deal - * @type {string} - */ - 'add_time'?: string; - /** - * The last updated date and time of the deal - * @type {string} - */ - 'update_time'?: string; - /** - * The last updated date and time of the deal stage - * @type {string} - */ - 'stage_change_time'?: string; - /** - * Whether the deal is deleted or not - * @type {boolean} - */ - 'is_deleted'?: boolean; - /** - * Whether the deal is archived or not - * @type {boolean} - */ - 'is_archived'?: boolean; - /** - * The status of the deal - * @type {string} - */ - 'status'?: string; - /** - * The success probability percentage of the deal - * @type {number} - */ - 'probability'?: number | null; - /** - * The reason for losing the deal - * @type {string} - */ - 'lost_reason'?: string | null; - /** - * The visibility of the deal - * @type {number} - */ - 'visible_to'?: number; - /** - * The date and time of closing the deal - * @type {string} - */ - 'close_time'?: string | null; - /** - * The date and time of changing the deal status as won - * @type {string} - */ - 'won_time'?: string; - /** - * The date and time of changing the deal status as lost - * @type {string} - */ - 'lost_time'?: string; - /** - * The expected close date of the deal - * @type {string} - */ - 'expected_close_date'?: string; - /** - * The IDs of labels assigned to the deal - * @type {Array} - */ - 'label_ids'?: Array; - /** - * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. - * @type {string} - */ - 'origin'?: string; - /** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. - * @type {string} - */ - 'origin_id'?: string | null; - /** - * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. - * @type {number} - */ - 'channel'?: number | null; - /** - * The optional ID to further distinguish the Marketing channel. - * @type {string} - */ - 'channel_id'?: string | null; - /** - * The ID of the lead if the deal was converted from a lead. Only included when requested via include_fields parameter. - * @type {string} - */ - 'source_lead_id'?: string | null; - /** - * Only available in Growth and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal - * @type {number} - */ - 'arr'?: number | null; - /** - * Only available in Growth and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal - * @type {number} - */ - 'mrr'?: number | null; - /** - * Only available in Growth and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal - * @type {number} - */ - 'acv'?: number | null; - /** - * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes - * @type {{ [key: string]: any | undefined; }} - */ - 'custom_fields'?: { [key: string]: any | undefined; }; -} - diff --git a/src/versions/v2/models/deal-item.ts b/src/versions/v2/models/deal.ts similarity index 98% rename from src/versions/v2/models/deal-item.ts rename to src/versions/v2/models/deal.ts index 57ccf86a..49032ccc 100644 --- a/src/versions/v2/models/deal-item.ts +++ b/src/versions/v2/models/deal.ts @@ -17,9 +17,9 @@ /** * * @export -* @interface DealItem +* @interface Deal */ -export interface DealItem { +export interface Deal { /** * The ID of the deal * @type {number} diff --git a/src/versions/v2/models/follower-item1.ts b/src/versions/v2/models/follower-item1.ts deleted file mode 100644 index 87b4f6f4..00000000 --- a/src/versions/v2/models/follower-item1.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The follower object -* @export -* @interface FollowerItem1 -*/ -export interface FollowerItem1 { - /** - * The ID of the user following the entity - * @type {number} - */ - 'user_id'?: number; - /** - * The add time of the following - * @type {string} - */ - 'add_time'?: string; -} - diff --git a/src/versions/v2/models/get-deals-response-all-of.ts b/src/versions/v2/models/get-deals-response-all-of.ts index 1bb76f83..cdfe26be 100644 --- a/src/versions/v2/models/get-deals-response-all-of.ts +++ b/src/versions/v2/models/get-deals-response-all-of.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { DealItem } from './deal-item'; +import { Deal } from './deal'; // May contain unused imports in some cases // @ts-ignore import { GetActivitiesResponseAllOfAdditionalData } from './get-activities-response-all-of-additional-data'; @@ -28,9 +28,9 @@ import { GetActivitiesResponseAllOfAdditionalData } from './get-activities-respo export interface GetDealsResponseAllOf { /** * Deals array - * @type {Array} + * @type {Array} */ - 'data'?: Array; + 'data'?: Array; /** * * @type {GetActivitiesResponseAllOfAdditionalData} diff --git a/src/versions/v2/models/get-deals-response.ts b/src/versions/v2/models/get-deals-response.ts index 0d11c8a7..8ea69b92 100644 --- a/src/versions/v2/models/get-deals-response.ts +++ b/src/versions/v2/models/get-deals-response.ts @@ -18,7 +18,7 @@ import { BaseResponse } from './base-response'; // May contain unused imports in some cases // @ts-ignore -import { DealItem } from './deal-item'; +import { Deal } from './deal'; // May contain unused imports in some cases // @ts-ignore import { GetActivitiesResponseAllOfAdditionalData } from './get-activities-response-all-of-additional-data'; diff --git a/src/versions/v2/models/get-installments-response-data-inner.ts b/src/versions/v2/models/get-installments-response-data-inner.ts index 9377f90b..2e8d61ff 100644 --- a/src/versions/v2/models/get-installments-response-data-inner.ts +++ b/src/versions/v2/models/get-installments-response-data-inner.ts @@ -31,7 +31,7 @@ export interface GetInstallmentsResponseDataInner { */ 'amount'?: number; /** - * The date which the installment will be charged. + * The date on which the installment will be charged. * @type {string} */ 'billing_date'?: string; diff --git a/src/versions/v2/models/get-persons-response-all-of-data-inner-emails-inner.ts b/src/versions/v2/models/get-persons-response-all-of-data-inner-emails-inner.ts deleted file mode 100644 index 266600ec..00000000 --- a/src/versions/v2/models/get-persons-response-all-of-data-inner-emails-inner.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetPersonsResponseAllOfDataInnerEmailsInner -*/ -export interface GetPersonsResponseAllOfDataInnerEmailsInner { - /** - * The email address of the person - * @type {string} - */ - 'value'?: string; - /** - * Whether the email is primary or not - * @type {boolean} - */ - 'primary'?: boolean; - /** - * The email address classification label - * @type {string} - */ - 'label'?: string; -} - diff --git a/src/versions/v2/models/get-persons-response-all-of-data-inner-im-inner.ts b/src/versions/v2/models/get-persons-response-all-of-data-inner-im-inner.ts deleted file mode 100644 index d6ec4e36..00000000 --- a/src/versions/v2/models/get-persons-response-all-of-data-inner-im-inner.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetPersonsResponseAllOfDataInnerImInner -*/ -export interface GetPersonsResponseAllOfDataInnerImInner { - /** - * The instant messaging account of the person - * @type {string} - */ - 'value'?: string; - /** - * Whether the instant messaging account is primary or not - * @type {boolean} - */ - 'primary'?: boolean; - /** - * The instant messaging account classification label - * @type {string} - */ - 'label'?: string; -} - diff --git a/src/versions/v2/models/get-persons-response-all-of-data-inner-phones-inner.ts b/src/versions/v2/models/get-persons-response-all-of-data-inner-phones-inner.ts deleted file mode 100644 index 2663ca81..00000000 --- a/src/versions/v2/models/get-persons-response-all-of-data-inner-phones-inner.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* -* @export -* @interface GetPersonsResponseAllOfDataInnerPhonesInner -*/ -export interface GetPersonsResponseAllOfDataInnerPhonesInner { - /** - * The phone number of the person - * @type {string} - */ - 'value'?: string; - /** - * Whether the phone number is primary or not - * @type {boolean} - */ - 'primary'?: boolean; - /** - * The phone number classification label - * @type {string} - */ - 'label'?: string; -} - diff --git a/src/versions/v2/models/get-persons-response-all-of-data-inner-postal-address.ts b/src/versions/v2/models/get-persons-response-all-of-data-inner-postal-address.ts deleted file mode 100644 index a2bbba57..00000000 --- a/src/versions/v2/models/get-persons-response-all-of-data-inner-postal-address.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* Postal address of the person, included if contact sync is enabled for the company -* @export -* @interface GetPersonsResponseAllOfDataInnerPostalAddress -*/ -export interface GetPersonsResponseAllOfDataInnerPostalAddress { - /** - * The full address of the person - * @type {string} - */ - 'value'?: string; - /** - * Country of the person - * @type {string} - */ - 'country'?: string; - /** - * Admin area level 1 (e.g. state) of the person - * @type {string} - */ - 'admin_area_level_1'?: string; - /** - * Admin area level 2 (e.g. county) of the person - * @type {string} - */ - 'admin_area_level_2'?: string; - /** - * Locality (e.g. city) of the person - * @type {string} - */ - 'locality'?: string; - /** - * Sublocality (e.g. neighborhood) of the person - * @type {string} - */ - 'sublocality'?: string; - /** - * Route (e.g. street) of the person - * @type {string} - */ - 'route'?: string; - /** - * Street number of the person - * @type {string} - */ - 'street_number'?: string; - /** - * Subpremise (e.g. apartment/suite number) of the person - * @type {string} - */ - 'subpremise'?: string; - /** - * Postal code of the person - * @type {string} - */ - 'postal_code'?: string; -} - diff --git a/src/versions/v2/models/get-persons-response-all-of-data-inner.ts b/src/versions/v2/models/get-persons-response-all-of-data-inner.ts deleted file mode 100644 index 3fa76cc7..00000000 --- a/src/versions/v2/models/get-persons-response-all-of-data-inner.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOfDataInnerEmailsInner } from './get-persons-response-all-of-data-inner-emails-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOfDataInnerImInner } from './get-persons-response-all-of-data-inner-im-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOfDataInnerPhonesInner } from './get-persons-response-all-of-data-inner-phones-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOfDataInnerPostalAddress } from './get-persons-response-all-of-data-inner-postal-address'; - -/** -* -* @export -* @interface GetPersonsResponseAllOfDataInner -*/ -export interface GetPersonsResponseAllOfDataInner { - /** - * The ID of the person - * @type {number} - */ - 'id'?: number; - /** - * The name of the person - * @type {string} - */ - 'name'?: string; - /** - * The first name of the person - * @type {string} - */ - 'first_name'?: string; - /** - * The last name of the person - * @type {string} - */ - 'last_name'?: string; - /** - * The ID of the user who owns the person - * @type {number} - */ - 'owner_id'?: number; - /** - * The ID of the organization linked to the person - * @type {number} - */ - 'org_id'?: number; - /** - * The creation date and time of the person - * @type {string} - */ - 'add_time'?: string; - /** - * The last updated date and time of the person - * @type {string} - */ - 'update_time'?: string; - /** - * The emails of the person - * @type {Array} - */ - 'emails'?: Array; - /** - * The phones of the person - * @type {Array} - */ - 'phones'?: Array; - /** - * Whether the person is deleted or not - * @type {boolean} - */ - 'is_deleted'?: boolean; - /** - * The visibility of the person - * @type {number} - */ - 'visible_to'?: number; - /** - * The IDs of labels assigned to the person - * @type {Array} - */ - 'label_ids'?: Array; - /** - * The ID of the picture associated with the person - * @type {number} - */ - 'picture_id'?: number; - /** - * - * @type {GetPersonsResponseAllOfDataInnerPostalAddress} - */ - 'postal_address'?: GetPersonsResponseAllOfDataInnerPostalAddress; - /** - * Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company - * @type {string} - */ - 'notes'?: string; - /** - * The instant messaging accounts of the person, included if contact sync is enabled for the company - * @type {Array} - */ - 'im'?: Array; - /** - * The birthday of the person, included if contact sync is enabled for the company - * @type {string} - */ - 'birthday'?: string; - /** - * The job title of the person, included if contact sync is enabled for the company - * @type {string} - */ - 'job_title'?: string; - /** - * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes - * @type {{ [key: string]: any | undefined; }} - */ - 'custom_fields'?: { [key: string]: any | undefined; }; -} - diff --git a/src/versions/v2/models/get-persons-response-all-of.ts b/src/versions/v2/models/get-persons-response-all-of.ts index 5f273675..0991cb68 100644 --- a/src/versions/v2/models/get-persons-response-all-of.ts +++ b/src/versions/v2/models/get-persons-response-all-of.ts @@ -18,7 +18,7 @@ import { GetActivitiesResponseAllOfAdditionalData } from './get-activities-response-all-of-additional-data'; // May contain unused imports in some cases // @ts-ignore -import { GetPersonsResponseAllOfDataInner } from './get-persons-response-all-of-data-inner'; +import { OrganizationItem } from './organization-item'; /** * @@ -28,9 +28,9 @@ import { GetPersonsResponseAllOfDataInner } from './get-persons-response-all-of- export interface GetPersonsResponseAllOf { /** * Persons array - * @type {Array} + * @type {Array} */ - 'data'?: Array; + 'data'?: Array; /** * * @type {GetActivitiesResponseAllOfAdditionalData} diff --git a/src/versions/v2/models/get-persons-response.ts b/src/versions/v2/models/get-persons-response.ts index b8f21a38..1f45098f 100644 --- a/src/versions/v2/models/get-persons-response.ts +++ b/src/versions/v2/models/get-persons-response.ts @@ -24,7 +24,7 @@ import { GetActivitiesResponseAllOfAdditionalData } from './get-activities-respo import { GetPersonsResponseAllOf } from './get-persons-response-all-of'; // May contain unused imports in some cases // @ts-ignore -import { GetPersonsResponseAllOfDataInner } from './get-persons-response-all-of-data-inner'; +import { OrganizationItem } from './organization-item'; /** * @type GetPersonsResponse diff --git a/src/versions/v2/models/get-product-response-data.ts b/src/versions/v2/models/get-product-response-data.ts index b644dce4..6d7236f8 100644 --- a/src/versions/v2/models/get-product-response-data.ts +++ b/src/versions/v2/models/get-product-response-data.ts @@ -18,6 +18,9 @@ import { BaseProduct } from './base-product'; // May contain unused imports in some cases // @ts-ignore +import { OrganizationItemAddress } from './organization-item-address'; +// May contain unused imports in some cases +// @ts-ignore import { PricesArray } from './prices-array'; /** diff --git a/src/versions/v2/models/index.ts b/src/versions/v2/models/index.ts index 2ff61464..3f0e0003 100644 --- a/src/versions/v2/models/index.ts +++ b/src/versions/v2/models/index.ts @@ -1,10 +1,9 @@ export * from './activity-item'; -export * from './activity-item1'; -export * from './activity-item-attendees-inner'; -export * from './activity-item-location'; -export * from './activity-item-participants-inner'; export * from './add-ainstallment-response'; export * from './add-activity-request'; +export * from './add-activity-request-attendees-inner'; +export * from './add-activity-request-location'; +export * from './add-activity-request-participants-inner'; export * from './add-additional-discount-request-body'; export * from './add-additional-discount-response'; export * from './add-convert-deal-to-lead-response'; @@ -43,6 +42,8 @@ export * from './add-person-field-request-required-fields'; export * from './add-person-field-request-ui-visibility'; export * from './add-person-field-request-ui-visibility-show-in-add-deal-dialog'; export * from './add-person-request'; +export * from './add-person-request-emails-inner'; +export * from './add-person-request-phones-inner'; export * from './add-pipeline-request'; export * from './add-product-field-request'; export * from './add-product-field-request-ui-visibility'; @@ -53,12 +54,10 @@ export * from './add-product-variation-request'; export * from './add-stage-request'; export * from './base-product'; export * from './base-product-all-of'; -export * from './base-product-all-of1'; export * from './base-response'; export * from './convert-lead-to-deal-request'; export * from './create-many-deal-product-request'; -export * from './deal-item'; -export * from './deal-item1'; +export * from './deal'; export * from './deal-product-request-body'; export * from './deal-product-request-body1'; export * from './delete-activity-response'; @@ -97,7 +96,6 @@ export * from './delete-stage-response'; export * from './delete-stage-response-data'; export * from './follower-changelog-item'; export * from './follower-item'; -export * from './follower-item1'; export * from './get-activities-response'; export * from './get-activities-response-all-of'; export * from './get-activities-response-all-of-additional-data'; @@ -180,11 +178,6 @@ export * from './get-person-search-response-all-of-data-items-inner-item-organiz export * from './get-person-search-response-all-of-data-items-inner-item-owner'; export * from './get-persons-response'; export * from './get-persons-response-all-of'; -export * from './get-persons-response-all-of-data-inner'; -export * from './get-persons-response-all-of-data-inner-emails-inner'; -export * from './get-persons-response-all-of-data-inner-im-inner'; -export * from './get-persons-response-all-of-data-inner-phones-inner'; -export * from './get-persons-response-all-of-data-inner-postal-address'; export * from './get-pipelines-response'; export * from './get-pipelines-response-all-of'; export * from './get-pipelines-response-all-of-data-inner'; @@ -210,7 +203,6 @@ export * from './lead-search-item-item-organization'; export * from './lead-search-item-item-owner'; export * from './lead-search-item-item-person'; export * from './organization-item'; -export * from './organization-item1'; export * from './organization-item-address'; export * from './prices-array'; export * from './product-request'; @@ -247,7 +239,6 @@ export * from './upsert-organization-response'; export * from './upsert-organization-response-data'; export * from './upsert-person-response'; export * from './upsert-person-response-data'; -export * from './upsert-person-response-data-data'; export * from './upsert-pipeline-response'; export * from './upsert-pipeline-response-data'; export * from './upsert-pipeline-response-data-data'; diff --git a/src/versions/v2/models/organization-item1.ts b/src/versions/v2/models/organization-item1.ts deleted file mode 100644 index 443f8181..00000000 --- a/src/versions/v2/models/organization-item1.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { OrganizationItemAddress } from './organization-item-address'; - -/** -* The organization object -* @export -* @interface OrganizationItem1 -*/ -export interface OrganizationItem1 { - /** - * The ID of the organization - * @type {number} - */ - 'id'?: number; - /** - * The name of the organization - * @type {string} - */ - 'name'?: string; - /** - * The ID of the user who owns the organization - * @type {number} - */ - 'owner_id'?: number; - /** - * The creation date and time of the organization - * @type {string} - */ - 'add_time'?: string; - /** - * The last updated date and time of the organization - * @type {string} - */ - 'update_time'?: string; - /** - * Whether the organization is deleted or not - * @type {boolean} - */ - 'is_deleted'?: boolean; - /** - * The visibility of the organization - * @type {number} - */ - 'visible_to'?: number; - /** - * - * @type {OrganizationItemAddress} - */ - 'address'?: OrganizationItemAddress; - /** - * The IDs of labels assigned to the organization - * @type {Array} - */ - 'label_ids'?: Array; - /** - * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes - * @type {{ [key: string]: any | undefined; }} - */ - 'custom_fields'?: { [key: string]: any | undefined; }; -} - diff --git a/src/versions/v2/models/stage.ts b/src/versions/v2/models/stage.ts deleted file mode 100644 index 1626248e..00000000 --- a/src/versions/v2/models/stage.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** -* The stage object -* @export -* @interface Stage -*/ -export interface Stage { - /** - * The ID of the stage - * @type {number} - */ - 'id'?: number; - /** - * Defines the order of the stage - * @type {number} - */ - 'order_nr'?: number; - /** - * The name of the stage - * @type {string} - */ - 'name'?: string; - /** - * Whether the stage is marked as deleted or not - * @type {boolean} - */ - 'is_deleted'?: boolean; - /** - * The success probability percentage of the deal. Used/shown when the deal weighted values are used. - * @type {number} - */ - 'deal_probability'?: number; - /** - * The ID of the pipeline to add the stage to - * @type {number} - */ - 'pipeline_id'?: number; - /** - * Whether deals in this stage can become rotten - * @type {boolean} - */ - 'is_deal_rot_enabled'?: boolean; - /** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `is_deal_rot_enabled` is set. - * @type {number} - */ - 'days_to_rotten'?: number | null; - /** - * The stage creation time - * @type {string} - */ - 'add_time'?: string; - /** - * The stage update time - * @type {string} - */ - 'update_time'?: string; -} - diff --git a/src/versions/v2/models/update-installment-request-body.ts b/src/versions/v2/models/update-installment-request-body.ts index 018bfa3c..4acaab7e 100644 --- a/src/versions/v2/models/update-installment-request-body.ts +++ b/src/versions/v2/models/update-installment-request-body.ts @@ -31,7 +31,7 @@ export interface UpdateInstallmentRequestBody { */ 'amount'?: number; /** - * The date which the installment will be charged. Must be in the format YYYY-MM-DD. + * The date on which the installment will be charged. Must be in the format YYYY-MM-DD. * @type {string} */ 'billing_date'?: string; diff --git a/src/versions/v2/models/update-person-request.ts b/src/versions/v2/models/update-person-request.ts index ad2e41d1..8cbacecb 100644 --- a/src/versions/v2/models/update-person-request.ts +++ b/src/versions/v2/models/update-person-request.ts @@ -15,10 +15,10 @@ // May contain unused imports in some cases // @ts-ignore -import { GetPersonsResponseAllOfDataInnerEmailsInner } from './get-persons-response-all-of-data-inner-emails-inner'; +import { AddPersonRequestEmailsInner } from './add-person-request-emails-inner'; // May contain unused imports in some cases // @ts-ignore -import { GetPersonsResponseAllOfDataInnerPhonesInner } from './get-persons-response-all-of-data-inner-phones-inner'; +import { AddPersonRequestPhonesInner } from './add-person-request-phones-inner'; /** * @@ -53,14 +53,14 @@ export interface UpdatePersonRequest { 'update_time'?: string; /** * The emails of the person - * @type {Array} + * @type {Array} */ - 'emails'?: Array; + 'emails'?: Array; /** * The phones of the person - * @type {Array} + * @type {Array} */ - 'phones'?: Array; + 'phones'?: Array; /** * The visibility of the person * @type {number} diff --git a/src/versions/v2/models/upsert-activity-response-data.ts b/src/versions/v2/models/upsert-activity-response-data.ts index d6ea8f9e..99d46956 100644 --- a/src/versions/v2/models/upsert-activity-response-data.ts +++ b/src/versions/v2/models/upsert-activity-response-data.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { ActivityItem1 } from './activity-item1'; +import { ActivityItem } from './activity-item'; /** * @@ -25,8 +25,8 @@ import { ActivityItem1 } from './activity-item1'; export interface UpsertActivityResponseData { /** * - * @type {ActivityItem1} + * @type {ActivityItem} */ - 'data'?: ActivityItem1; + 'data'?: ActivityItem; } diff --git a/src/versions/v2/models/upsert-activity-response.ts b/src/versions/v2/models/upsert-activity-response.ts index cc7fd317..3f848c7c 100644 --- a/src/versions/v2/models/upsert-activity-response.ts +++ b/src/versions/v2/models/upsert-activity-response.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { ActivityItem1 } from './activity-item1'; +import { ActivityItem } from './activity-item'; // May contain unused imports in some cases // @ts-ignore import { BaseResponse } from './base-response'; diff --git a/src/versions/v2/models/upsert-deal-response-data.ts b/src/versions/v2/models/upsert-deal-response-data.ts index 8ac73f4f..91a04fb9 100644 --- a/src/versions/v2/models/upsert-deal-response-data.ts +++ b/src/versions/v2/models/upsert-deal-response-data.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { DealItem1 } from './deal-item1'; +import { Deal } from './deal'; /** * @@ -25,8 +25,8 @@ import { DealItem1 } from './deal-item1'; export interface UpsertDealResponseData { /** * - * @type {DealItem1} + * @type {Deal} */ - 'data'?: DealItem1; + 'data'?: Deal; } diff --git a/src/versions/v2/models/upsert-deal-response.ts b/src/versions/v2/models/upsert-deal-response.ts index 5e095b49..6be214fb 100644 --- a/src/versions/v2/models/upsert-deal-response.ts +++ b/src/versions/v2/models/upsert-deal-response.ts @@ -18,7 +18,7 @@ import { BaseResponse } from './base-response'; // May contain unused imports in some cases // @ts-ignore -import { DealItem1 } from './deal-item1'; +import { Deal } from './deal'; // May contain unused imports in some cases // @ts-ignore import { UpsertDealResponseData } from './upsert-deal-response-data'; diff --git a/src/versions/v2/models/upsert-organization-response-data.ts b/src/versions/v2/models/upsert-organization-response-data.ts index 77fe0447..01ba34b9 100644 --- a/src/versions/v2/models/upsert-organization-response-data.ts +++ b/src/versions/v2/models/upsert-organization-response-data.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { OrganizationItem1 } from './organization-item1'; +import { OrganizationItem } from './organization-item'; /** * @@ -25,8 +25,8 @@ import { OrganizationItem1 } from './organization-item1'; export interface UpsertOrganizationResponseData { /** * - * @type {OrganizationItem1} + * @type {OrganizationItem} */ - 'data'?: OrganizationItem1; + 'data'?: OrganizationItem; } diff --git a/src/versions/v2/models/upsert-organization-response.ts b/src/versions/v2/models/upsert-organization-response.ts index f6c1a277..a32d8120 100644 --- a/src/versions/v2/models/upsert-organization-response.ts +++ b/src/versions/v2/models/upsert-organization-response.ts @@ -18,7 +18,7 @@ import { BaseResponse } from './base-response'; // May contain unused imports in some cases // @ts-ignore -import { OrganizationItem1 } from './organization-item1'; +import { OrganizationItem } from './organization-item'; // May contain unused imports in some cases // @ts-ignore import { UpsertOrganizationResponseData } from './upsert-organization-response-data'; diff --git a/src/versions/v2/models/upsert-person-response-data-data.ts b/src/versions/v2/models/upsert-person-response-data-data.ts deleted file mode 100644 index 2e87462b..00000000 --- a/src/versions/v2/models/upsert-person-response-data-data.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Pipedrive API v2 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOfDataInnerEmailsInner } from './get-persons-response-all-of-data-inner-emails-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOfDataInnerImInner } from './get-persons-response-all-of-data-inner-im-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOfDataInnerPhonesInner } from './get-persons-response-all-of-data-inner-phones-inner'; -// May contain unused imports in some cases -// @ts-ignore -import { GetPersonsResponseAllOfDataInnerPostalAddress } from './get-persons-response-all-of-data-inner-postal-address'; - -/** -* The person object -* @export -* @interface UpsertPersonResponseDataData -*/ -export interface UpsertPersonResponseDataData { - /** - * The ID of the person - * @type {number} - */ - 'id'?: number; - /** - * The name of the person - * @type {string} - */ - 'name'?: string; - /** - * The first name of the person - * @type {string} - */ - 'first_name'?: string; - /** - * The last name of the person - * @type {string} - */ - 'last_name'?: string; - /** - * The ID of the user who owns the person - * @type {number} - */ - 'owner_id'?: number; - /** - * The ID of the organization linked to the person - * @type {number} - */ - 'org_id'?: number; - /** - * The creation date and time of the person - * @type {string} - */ - 'add_time'?: string; - /** - * The last updated date and time of the person - * @type {string} - */ - 'update_time'?: string; - /** - * The emails of the person - * @type {Array} - */ - 'emails'?: Array; - /** - * The phones of the person - * @type {Array} - */ - 'phones'?: Array; - /** - * Whether the person is deleted or not - * @type {boolean} - */ - 'is_deleted'?: boolean; - /** - * The visibility of the person - * @type {number} - */ - 'visible_to'?: number; - /** - * The IDs of labels assigned to the person - * @type {Array} - */ - 'label_ids'?: Array; - /** - * The ID of the picture associated with the person - * @type {number} - */ - 'picture_id'?: number; - /** - * - * @type {GetPersonsResponseAllOfDataInnerPostalAddress} - */ - 'postal_address'?: GetPersonsResponseAllOfDataInnerPostalAddress; - /** - * Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company - * @type {string} - */ - 'notes'?: string; - /** - * The instant messaging accounts of the person, included if contact sync is enabled for the company - * @type {Array} - */ - 'im'?: Array; - /** - * The birthday of the person, included if contact sync is enabled for the company - * @type {string} - */ - 'birthday'?: string; - /** - * The job title of the person, included if contact sync is enabled for the company - * @type {string} - */ - 'job_title'?: string; - /** - * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes - * @type {{ [key: string]: any | undefined; }} - */ - 'custom_fields'?: { [key: string]: any | undefined; }; -} - diff --git a/src/versions/v2/models/upsert-person-response-data.ts b/src/versions/v2/models/upsert-person-response-data.ts index 1d4d83fd..3ad5cac2 100644 --- a/src/versions/v2/models/upsert-person-response-data.ts +++ b/src/versions/v2/models/upsert-person-response-data.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { UpsertPersonResponseDataData } from './upsert-person-response-data-data'; +import { OrganizationItem } from './organization-item'; /** * @@ -25,8 +25,8 @@ import { UpsertPersonResponseDataData } from './upsert-person-response-data-data export interface UpsertPersonResponseData { /** * - * @type {UpsertPersonResponseDataData} + * @type {OrganizationItem} */ - 'data'?: UpsertPersonResponseDataData; + 'data'?: OrganizationItem; } diff --git a/src/versions/v2/models/upsert-person-response.ts b/src/versions/v2/models/upsert-person-response.ts index 7a94570e..0da43731 100644 --- a/src/versions/v2/models/upsert-person-response.ts +++ b/src/versions/v2/models/upsert-person-response.ts @@ -18,10 +18,10 @@ import { BaseResponse } from './base-response'; // May contain unused imports in some cases // @ts-ignore -import { UpsertPersonResponseData } from './upsert-person-response-data'; +import { OrganizationItem } from './organization-item'; // May contain unused imports in some cases // @ts-ignore -import { UpsertPersonResponseDataData } from './upsert-person-response-data-data'; +import { UpsertPersonResponseData } from './upsert-person-response-data'; /** * @type UpsertPersonResponse