pipedrive 17.5.4 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +3 -0
- package/README.md +5 -4
- package/dist/ApiClient.js +71 -218
- package/dist/api/ActivitiesApi.js +21 -52
- package/dist/api/ActivityFieldsApi.js +3 -16
- package/dist/api/ActivityTypesApi.js +17 -45
- package/dist/api/BillingApi.js +3 -16
- package/dist/api/CallLogsApi.js +19 -52
- package/dist/api/ChannelsApi.js +15 -55
- package/dist/api/CurrenciesApi.js +3 -16
- package/dist/api/DealFieldsApi.js +21 -49
- package/dist/api/DealsApi.js +134 -234
- package/dist/api/FilesApi.js +45 -78
- package/dist/api/FiltersApi.js +25 -62
- package/dist/api/GlobalMessagesApi.js +6 -22
- package/dist/api/GoalsApi.js +36 -47
- package/dist/api/ItemSearchApi.js +19 -35
- package/dist/api/LeadLabelsApi.js +13 -40
- package/dist/api/LeadSourcesApi.js +3 -16
- package/dist/api/LeadsApi.js +23 -54
- package/dist/api/LegacyTeamsApi.js +29 -69
- package/dist/api/MailboxApi.js +25 -55
- package/dist/api/NoteFieldsApi.js +3 -16
- package/dist/api/NotesApi.js +43 -85
- package/dist/api/OrganizationFieldsApi.js +21 -49
- package/dist/api/OrganizationRelationshipsApi.js +19 -50
- package/dist/api/OrganizationsApi.js +75 -146
- package/dist/api/PermissionSetsApi.js +11 -30
- package/dist/api/PersonFieldsApi.js +21 -49
- package/dist/api/PersonsApi.js +85 -160
- package/dist/api/PipelinesApi.js +37 -73
- package/dist/api/ProductFieldsApi.js +21 -53
- package/dist/api/ProductsApi.js +51 -100
- package/dist/api/RecentsApi.js +5 -18
- package/dist/api/RolesApi.js +41 -95
- package/dist/api/SearchResultsApi.js +12 -31
- package/dist/api/StagesApi.js +25 -58
- package/dist/api/SubscriptionsApi.js +33 -80
- package/dist/api/TeamsApi.js +28 -68
- package/dist/api/UserConnectionsApi.js +3 -17
- package/dist/api/UserSettingsApi.js +3 -17
- package/dist/api/UsersApi.js +35 -80
- package/dist/api/WebhooksApi.js +9 -36
- package/dist/exceptions/FailResponseException.js +3 -8
- package/dist/exceptions/NotFoundException.js +3 -8
- package/dist/exceptions/OAuthProviderException.js +3 -8
- package/dist/exceptions/UnauthorizedException.js +3 -8
- package/dist/index.js +7 -755
- package/dist/model/ActivityDistributionData.js +2 -15
- package/dist/model/ActivityDistributionDataActivityDistribution.js +2 -15
- package/dist/model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.js +5 -21
- package/dist/model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.js +2 -14
- package/dist/model/ActivityDistributionDataWithAdditionalData.js +9 -35
- package/dist/model/ActivityInfo.js +6 -22
- package/dist/model/ActivityObjectFragment.js +11 -32
- package/dist/model/ActivityPostObject.js +23 -76
- package/dist/model/ActivityPostObjectAllOf.js +9 -29
- package/dist/model/ActivityPutObject.js +23 -76
- package/dist/model/ActivityPutObjectAllOf.js +9 -29
- package/dist/model/ActivityRecordAdditionalData.js +2 -14
- package/dist/model/ActivityResponseObject.js +68 -211
- package/dist/model/ActivityResponseObjectAllOf.js +55 -120
- package/dist/model/ActivityTypeBulkDeleteResponse.js +7 -29
- package/dist/model/ActivityTypeBulkDeleteResponseAllOf.js +2 -15
- package/dist/model/ActivityTypeBulkDeleteResponseAllOfData.js +2 -14
- package/dist/model/ActivityTypeCreateRequest.js +4 -19
- package/dist/model/ActivityTypeCreateUpdateDeleteResponse.js +7 -29
- package/dist/model/ActivityTypeCreateUpdateDeleteResponseAllOf.js +2 -15
- package/dist/model/ActivityTypeListResponse.js +7 -29
- package/dist/model/ActivityTypeListResponseAllOf.js +2 -15
- package/dist/model/ActivityTypeObjectResponse.js +11 -33
- package/dist/model/ActivityTypeUpdateRequest.js +5 -21
- package/dist/model/AddActivityResponse200.js +5 -23
- package/dist/model/AddActivityResponse200RelatedObjects.js +5 -24
- package/dist/model/AddCallLogAudioFileRequest.js +2 -14
- package/dist/model/AddDealFollowerRequest.js +2 -14
- package/dist/model/AddDealParticipantRequest.js +2 -14
- package/dist/model/AddFile.js +3 -17
- package/dist/model/AddFileAndLinkItRequest.js +9 -31
- package/dist/model/AddFileRequest.js +7 -24
- package/dist/model/AddFilterRequest.js +6 -21
- package/dist/model/AddFollowerToPersonResponse.js +7 -29
- package/dist/model/AddFollowerToPersonResponseAllOf.js +2 -15
- package/dist/model/AddFollowerToPersonResponseAllOfData.js +5 -20
- package/dist/model/AddLeadLabelRequest.js +3 -17
- package/dist/model/AddLeadRequest.js +11 -34
- package/dist/model/AddNewPipeline.js +7 -29
- package/dist/model/AddNewPipelineAllOf.js +2 -15
- package/dist/model/AddNoteRequest.js +16 -56
- package/dist/model/AddNoteRequestAllOf.js +6 -22
- package/dist/model/AddOrUpdateGoalResponse200.js +3 -17
- package/dist/model/AddOrUpdateLeadLabelResponse200.js +3 -17
- package/dist/model/AddOrUpdateRoleSettingRequest.js +5 -25
- package/dist/model/AddOrganizationFollowerRequest.js +2 -14
- package/dist/model/AddOrganizationRelationshipRequest.js +6 -22
- package/dist/model/AddPersonFollowerRequest.js +2 -14
- package/dist/model/AddPersonPictureRequest.js +6 -22
- package/dist/model/AddPersonPictureResponse.js +7 -29
- package/dist/model/AddPersonPictureResponseAllOf.js +2 -15
- package/dist/model/AddPersonResponse.js +8 -33
- package/dist/model/AddPersonResponseAllOf.js +3 -18
- package/dist/model/AddPersonResponseAllOfRelatedObjects.js +2 -15
- package/dist/model/AddProductAttachmentDetails.js +45 -105
- package/dist/model/AddProductAttachmentDetailsAllOf.js +2 -14
- package/dist/model/AddProductFollowerRequest.js +2 -14
- package/dist/model/AddProductRequestBody.js +14 -51
- package/dist/model/AddRole.js +3 -16
- package/dist/model/AddRoleAssignmentRequest.js +2 -14
- package/dist/model/AddTeamUserRequest.js +2 -14
- package/dist/model/AddUserBlacklistedEmailRequest.js +2 -14
- package/dist/model/AddUserRequest.js +5 -21
- package/dist/model/AddUserRoleAssignmentRequest.js +2 -14
- package/dist/model/AddWebhookRequest.js +9 -40
- package/dist/model/AddedDealFollower.js +3 -17
- package/dist/model/AddedDealFollowerData.js +5 -20
- package/dist/model/AdditionalBaseOrganizationItemInfo.js +37 -118
- package/dist/model/AdditionalData.js +4 -18
- package/dist/model/AdditionalDataWithPagination.js +2 -15
- package/dist/model/AdditionalDataWithPaginationDetails.js +2 -15
- package/dist/model/AdditionalMergePersonInfo.js +35 -112
- package/dist/model/AdditionalPersonInfo.js +32 -105
- package/dist/model/AllOrganizationRelationshipsGetResponse.js +9 -37
- package/dist/model/AllOrganizationRelationshipsGetResponseAllOf.js +4 -21
- package/dist/model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.js +2 -15
- package/dist/model/AllOrganizationsGetResponse.js +9 -37
- package/dist/model/AllOrganizationsGetResponseAllOf.js +4 -21
- package/dist/model/AllOrganizationsGetResponseAllOfRelatedObjects.js +4 -21
- package/dist/model/AnyOfRecents.js +1 -7
- package/dist/model/AnyOfRecentsActivityRecentsActivityTypeRecentsDealRecentsFileRecentsFilterRecentsNoteRecentsPersonRecentsOrganizationRecentsPipelineRecentsProductRecentsStageRecentsUser.js +1 -7
- package/dist/model/AnyType.js +1 -7
- package/dist/model/ArrayPrices.js +2 -14
- package/dist/model/Assignee.js +3 -16
- package/dist/model/BaseComment.js +11 -32
- package/dist/model/BaseCurrency.js +8 -26
- package/dist/model/BaseDeal.js +55 -118
- package/dist/model/BaseFollowerItem.js +4 -18
- package/dist/model/BaseMailThread.js +42 -135
- package/dist/model/BaseMailThreadAllOf.js +24 -60
- package/dist/model/BaseMailThreadAllOfParties.js +3 -17
- package/dist/model/BaseMailThreadMessages.js +32 -105
- package/dist/model/BaseMailThreadMessagesAllOf.js +14 -40
- package/dist/model/BaseNote.js +19 -52
- package/dist/model/BaseNoteDealTitle.js +2 -14
- package/dist/model/BaseNoteOrganization.js +2 -14
- package/dist/model/BaseNotePerson.js +2 -14
- package/dist/model/BaseOrganizationItem.js +51 -162
- package/dist/model/BaseOrganizationItemFields.js +15 -42
- package/dist/model/BaseOrganizationItemWithEditNameFlag.js +52 -165
- package/dist/model/BaseOrganizationItemWithEditNameFlagAllOf.js +2 -14
- package/dist/model/BaseOrganizationRelationshipItem.js +8 -27
- package/dist/model/BasePersonItem.js +16 -55
- package/dist/model/BasePersonItemEmail.js +4 -18
- package/dist/model/BasePersonItemPhone.js +4 -18
- package/dist/model/BasePipeline.js +9 -28
- package/dist/model/BasePipelineWithSelectedFlag.js +14 -49
- package/dist/model/BasePipelineWithSelectedFlagAllOf.js +2 -14
- package/dist/model/BaseProduct.js +10 -32
- package/dist/model/BaseResponse.js +2 -14
- package/dist/model/BaseResponseWithStatus.js +7 -28
- package/dist/model/BaseResponseWithStatusAllOf.js +2 -14
- package/dist/model/BaseRole.js +3 -16
- package/dist/model/BaseStage.js +12 -34
- package/dist/model/BaseTeam.js +14 -50
- package/dist/model/BaseTeamAdditionalProperties.js +3 -16
- package/dist/model/BaseUser.js +20 -51
- package/dist/model/BaseUserMe.js +30 -99
- package/dist/model/BaseUserMeAllOf.js +7 -25
- package/dist/model/BaseUserMeAllOfLanguage.js +3 -16
- package/dist/model/BaseWebhook.js +20 -51
- package/dist/model/BasicDeal.js +14 -41
- package/dist/model/BasicDealProduct.js +24 -32
- package/dist/model/BasicGoal.js +12 -32
- package/dist/model/BasicOrganization.js +3 -17
- package/dist/model/BasicPerson.js +9 -42
- package/dist/model/BasicPersonEmail.js +4 -18
- package/dist/model/BasicProductField.js +3 -16
- package/dist/model/BulkDeleteResponse.js +7 -29
- package/dist/model/BulkDeleteResponseAllOf.js +2 -15
- package/dist/model/BulkDeleteResponseAllOfData.js +2 -14
- package/dist/model/CalculatedFields.js +3 -16
- package/dist/model/CallLogObject.js +15 -44
- package/dist/model/CallLogResponse400.js +6 -22
- package/dist/model/CallLogResponse403.js +6 -22
- package/dist/model/CallLogResponse404.js +6 -22
- package/dist/model/CallLogResponse409.js +6 -22
- package/dist/model/CallLogResponse410.js +6 -22
- package/dist/model/CallLogResponse500.js +6 -22
- package/dist/model/ChannelObject.js +7 -25
- package/dist/model/ChannelObjectResponse.js +3 -17
- package/dist/model/ChannelObjectResponseData.js +12 -35
- package/dist/model/CommentPostPutObject.js +2 -14
- package/dist/model/CommonMailThread.js +15 -41
- package/dist/model/CreateRemoteFileAndLinkItToItem.js +3 -17
- package/dist/model/CreateTeam.js +5 -20
- package/dist/model/Currencies.js +3 -17
- package/dist/model/DealCountAndActivityInfo.js +18 -61
- package/dist/model/DealFlowResponse.js +9 -37
- package/dist/model/DealFlowResponseAllOf.js +4 -21
- package/dist/model/DealFlowResponseAllOfData.js +4 -18
- package/dist/model/DealFlowResponseAllOfRelatedObjects.js +5 -24
- package/dist/model/DealListActivitiesResponse.js +9 -37
- package/dist/model/DealListActivitiesResponseAllOf.js +4 -21
- package/dist/model/DealListActivitiesResponseAllOfRelatedObjects.js +5 -24
- package/dist/model/DealNonStrict.js +65 -200
- package/dist/model/DealNonStrictModeFields.js +6 -26
- package/dist/model/DealNonStrictModeFieldsCreatorUserId.js +8 -26
- package/dist/model/DealNonStrictWithDetails.js +71 -221
- package/dist/model/DealNonStrictWithDetailsAllOf.js +7 -27
- package/dist/model/DealNonStrictWithDetailsAllOfAge.js +8 -26
- package/dist/model/DealNonStrictWithDetailsAllOfAverageTimeToWon.js +8 -26
- package/dist/model/DealNonStrictWithDetailsAllOfStayInPipelineStages.js +3 -16
- package/dist/model/DealOrganizationData.js +7 -24
- package/dist/model/DealOrganizationDataWithId.js +12 -43
- package/dist/model/DealOrganizationDataWithIdAllOf.js +2 -14
- package/dist/model/DealParticipantCountInfo.js +3 -16
- package/dist/model/DealParticipants.js +5 -23
- package/dist/model/DealPersonData.js +6 -24
- package/dist/model/DealPersonDataEmail.js +4 -18
- package/dist/model/DealPersonDataPhone.js +4 -18
- package/dist/model/DealPersonDataWithId.js +11 -42
- package/dist/model/DealPersonDataWithIdAllOf.js +2 -14
- package/dist/model/DealSearchItem.js +3 -17
- package/dist/model/DealSearchItemItem.js +14 -42
- package/dist/model/DealSearchItemItemOrganization.js +3 -16
- package/dist/model/DealSearchItemItemOwner.js +2 -14
- package/dist/model/DealSearchItemItemPerson.js +3 -16
- package/dist/model/DealSearchItemItemStage.js +3 -16
- package/dist/model/DealSearchResponse.js +8 -33
- package/dist/model/DealSearchResponseAllOf.js +3 -18
- package/dist/model/DealSearchResponseAllOfData.js +2 -15
- package/dist/model/DealStrict.js +65 -196
- package/dist/model/DealStrictModeFields.js +6 -22
- package/dist/model/DealStrictWithMergeId.js +66 -199
- package/dist/model/DealStrictWithMergeIdAllOf.js +2 -14
- package/dist/model/DealSummary.js +5 -23
- package/dist/model/DealSummaryPerCurrency.js +2 -14
- package/dist/model/DealSummaryPerCurrencyFull.js +2 -15
- package/dist/model/DealSummaryPerCurrencyFullCURRENCYID.js +3 -16
- package/dist/model/DealSummaryPerStages.js +2 -15
- package/dist/model/DealSummaryPerStagesSTAGEID.js +2 -15
- package/dist/model/DealSummaryPerStagesSTAGEIDCURRENCYID.js +6 -22
- package/dist/model/DealTitleParameter.js +2 -14
- package/dist/model/DealUserData.js +7 -24
- package/dist/model/DealUserDataWithId.js +12 -43
- package/dist/model/DealUserDataWithIdAllOf.js +2 -14
- package/dist/model/DealsCountAndActivityInfo.js +18 -61
- package/dist/model/DealsCountInfo.js +9 -28
- package/dist/model/DealsMovementsInfo.js +5 -22
- package/dist/model/DealsMovementsInfoFormattedValues.js +2 -14
- package/dist/model/DealsMovementsInfoValues.js +2 -14
- package/dist/model/DeleteActivitiesResponse200.js +3 -17
- package/dist/model/DeleteActivitiesResponse200Data.js +2 -14
- package/dist/model/DeleteActivityResponse200.js +3 -17
- package/dist/model/DeleteActivityResponse200Data.js +2 -14
- package/dist/model/DeleteChannelSuccess.js +2 -14
- package/dist/model/DeleteComment.js +3 -16
- package/dist/model/DeleteConversationSuccess.js +2 -14
- package/dist/model/DeleteDeal.js +3 -17
- package/dist/model/DeleteDealData.js +2 -14
- package/dist/model/DeleteDealFollower.js +3 -17
- package/dist/model/DeleteDealFollowerData.js +2 -14
- package/dist/model/DeleteDealParticipant.js +3 -17
- package/dist/model/DeleteDealParticipantData.js +2 -14
- package/dist/model/DeleteDealProduct.js +3 -17
- package/dist/model/DeleteDealProductData.js +3 -16
- package/dist/model/DeleteFile.js +3 -17
- package/dist/model/DeleteFileData.js +2 -14
- package/dist/model/DeleteGoalResponse200.js +2 -14
- package/dist/model/DeleteMultipleDeals.js +3 -17
- package/dist/model/DeleteMultipleDealsData.js +2 -14
- package/dist/model/DeleteMultipleProductFieldsResponse.js +3 -17
- package/dist/model/DeleteMultipleProductFieldsResponseData.js +2 -14
- package/dist/model/DeleteNote.js +3 -16
- package/dist/model/DeletePersonResponse.js +7 -29
- package/dist/model/DeletePersonResponseAllOf.js +2 -15
- package/dist/model/DeletePersonResponseAllOfData.js +2 -14
- package/dist/model/DeletePersonsInBulkResponse.js +7 -29
- package/dist/model/DeletePersonsInBulkResponseAllOf.js +2 -15
- package/dist/model/DeletePersonsInBulkResponseAllOfData.js +2 -14
- package/dist/model/DeletePipelineResponse200.js +3 -17
- package/dist/model/DeletePipelineResponse200Data.js +2 -14
- package/dist/model/DeleteProductFieldResponse.js +3 -17
- package/dist/model/DeleteProductFieldResponseData.js +2 -14
- package/dist/model/DeleteProductFollowerResponse.js +3 -17
- package/dist/model/DeleteProductFollowerResponseData.js +2 -14
- package/dist/model/DeleteProductResponse.js +3 -17
- package/dist/model/DeleteProductResponseData.js +2 -14
- package/dist/model/DeleteResponse.js +7 -29
- package/dist/model/DeleteResponseAllOf.js +2 -15
- package/dist/model/DeleteResponseAllOfData.js +2 -14
- package/dist/model/DeleteRole.js +7 -29
- package/dist/model/DeleteRoleAllOf.js +2 -15
- package/dist/model/DeleteRoleAllOfData.js +2 -14
- package/dist/model/DeleteRoleAssignment.js +7 -29
- package/dist/model/DeleteRoleAssignmentAllOf.js +2 -15
- package/dist/model/DeleteRoleAssignmentAllOfData.js +2 -14
- package/dist/model/DeleteRoleAssignmentRequest.js +2 -14
- package/dist/model/DeleteStageResponse200.js +3 -17
- package/dist/model/DeleteStageResponse200Data.js +2 -14
- package/dist/model/DeleteStagesResponse200.js +3 -17
- package/dist/model/DeleteStagesResponse200Data.js +2 -14
- package/dist/model/DeleteTeamUserRequest.js +2 -14
- package/dist/model/Duration.js +3 -16
- package/dist/model/EditPipeline.js +7 -29
- package/dist/model/EditPipelineAllOf.js +2 -15
- package/dist/model/EmailInfo.js +3 -16
- package/dist/model/ExpectedOutcome.js +3 -16
- package/dist/model/FailResponse.js +3 -16
- package/dist/model/Field.js +24 -59
- package/dist/model/FieldCreateRequest.js +10 -37
- package/dist/model/FieldCreateRequestAllOf.js +5 -20
- package/dist/model/FieldResponse.js +7 -29
- package/dist/model/FieldResponseAllOf.js +2 -15
- package/dist/model/FieldType.js +2 -15
- package/dist/model/FieldTypeAsString.js +1 -10
- package/dist/model/FieldUpdateRequest.js +5 -20
- package/dist/model/FieldsResponse.js +8 -33
- package/dist/model/FieldsResponseAllOf.js +3 -18
- package/dist/model/FileData.js +27 -64
- package/dist/model/FileItem.js +27 -64
- package/dist/model/FilterGetItem.js +10 -30
- package/dist/model/FilterType.js +1 -10
- package/dist/model/FiltersBulkDeleteResponse.js +7 -29
- package/dist/model/FiltersBulkDeleteResponseAllOf.js +2 -15
- package/dist/model/FiltersBulkDeleteResponseAllOfData.js +2 -14
- package/dist/model/FiltersBulkGetResponse.js +7 -29
- package/dist/model/FiltersBulkGetResponseAllOf.js +2 -15
- package/dist/model/FiltersDeleteResponse.js +7 -29
- package/dist/model/FiltersDeleteResponseAllOf.js +2 -15
- package/dist/model/FiltersDeleteResponseAllOfData.js +2 -14
- package/dist/model/FiltersGetResponse.js +7 -29
- package/dist/model/FiltersGetResponseAllOf.js +2 -15
- package/dist/model/FiltersPostResponse.js +7 -29
- package/dist/model/FiltersPostResponseAllOf.js +2 -15
- package/dist/model/FiltersPostResponseAllOfData.js +12 -35
- package/dist/model/FindGoalResponse.js +2 -15
- package/dist/model/FindProductsByNameResponse.js +4 -19
- package/dist/model/FindProductsByNameResponseData.js +8 -26
- package/dist/model/FollowerData.js +5 -20
- package/dist/model/FollowerDataWithID.js +10 -37
- package/dist/model/FollowerDataWithIDAllOf.js +2 -14
- package/dist/model/FullRole.js +12 -43
- package/dist/model/FullRoleAllOf.js +2 -14
- package/dist/model/GetActivitiesResponse200.js +5 -23
- package/dist/model/GetActivitiesResponse200RelatedObjects.js +5 -24
- package/dist/model/GetActivityResponse200.js +4 -20
- package/dist/model/GetAddProductAttachementDetails.js +3 -17
- package/dist/model/GetAddUpdateStage.js +3 -17
- package/dist/model/GetAddedDeal.js +4 -20
- package/dist/model/GetAddedDealAdditionalData.js +2 -14
- package/dist/model/GetAllFiles.js +4 -20
- package/dist/model/GetAllPersonsResponse.js +9 -37
- package/dist/model/GetAllPersonsResponseAllOf.js +4 -21
- package/dist/model/GetAllPipelines.js +7 -29
- package/dist/model/GetAllPipelinesAllOf.js +2 -15
- package/dist/model/GetAllProductFieldsResponse.js +4 -19
- package/dist/model/GetComments.js +4 -20
- package/dist/model/GetDeal.js +5 -23
- package/dist/model/GetDealAdditionalData.js +2 -14
- package/dist/model/GetDeals.js +5 -23
- package/dist/model/GetDealsByName.js +4 -20
- package/dist/model/GetDealsByNameAdditionalData.js +2 -15
- package/dist/model/GetDealsByNameData.js +14 -38
- package/dist/model/GetDealsConversionRatesInPipeline.js +7 -29
- package/dist/model/GetDealsConversionRatesInPipelineAllOf.js +2 -15
- package/dist/model/GetDealsConversionRatesInPipelineAllOfData.js +4 -19
- package/dist/model/GetDealsMovementsInPipeline.js +7 -29
- package/dist/model/GetDealsMovementsInPipelineAllOf.js +2 -15
- package/dist/model/GetDealsMovementsInPipelineAllOfData.js +7 -27
- package/dist/model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.js +3 -17
- package/dist/model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.js +3 -16
- package/dist/model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.js +2 -14
- package/dist/model/GetDealsRelatedObjects.js +4 -21
- package/dist/model/GetDealsSummary.js +3 -17
- package/dist/model/GetDealsSummaryData.js +8 -28
- package/dist/model/GetDealsSummaryDataValuesTotal.js +6 -22
- package/dist/model/GetDealsSummaryDataWeightedValuesTotal.js +4 -18
- package/dist/model/GetDealsTimeline.js +3 -17
- package/dist/model/GetDealsTimelineData.js +5 -22
- package/dist/model/GetDealsTimelineDataTotals.js +9 -28
- package/dist/model/GetDuplicatedDeal.js +3 -17
- package/dist/model/GetGoalResultResponse200.js +3 -17
- package/dist/model/GetGoalsResponse200.js +3 -17
- package/dist/model/GetLeadLabelsResponse200.js +3 -17
- package/dist/model/GetLeadSourcesResponse200.js +3 -17
- package/dist/model/GetLeadSourcesResponse200Data.js +2 -14
- package/dist/model/GetLeadsResponse200.js +4 -20
- package/dist/model/GetMergedDeal.js +3 -17
- package/dist/model/GetNotes.js +4 -20
- package/dist/model/GetOneFile.js +3 -17
- package/dist/model/GetOnePipeline.js +7 -29
- package/dist/model/GetOnePipelineAllOf.js +2 -15
- package/dist/model/GetOneStage.js +3 -17
- package/dist/model/GetPersonDetailsResponse.js +9 -37
- package/dist/model/GetPersonDetailsResponseAllOf.js +4 -21
- package/dist/model/GetPersonDetailsResponseAllOfAdditionalData.js +2 -14
- package/dist/model/GetProductAttachementDetails.js +3 -17
- package/dist/model/GetProductFieldResponse.js +3 -17
- package/dist/model/GetRecents.js +4 -20
- package/dist/model/GetRecentsAdditionalData.js +4 -19
- package/dist/model/GetRole.js +8 -33
- package/dist/model/GetRoleAllOf.js +3 -18
- package/dist/model/GetRoleAllOfAdditionalData.js +2 -15
- package/dist/model/GetRoleAssignments.js +8 -33
- package/dist/model/GetRoleAssignmentsAllOf.js +3 -18
- package/dist/model/GetRoleSettings.js +7 -29
- package/dist/model/GetRoleSettingsAllOf.js +2 -15
- package/dist/model/GetRoleSubroles.js +8 -33
- package/dist/model/GetRoleSubrolesAllOf.js +3 -18
- package/dist/model/GetRoles.js +8 -33
- package/dist/model/GetRolesAllOf.js +3 -18
- package/dist/model/GetStageDeals.js +4 -20
- package/dist/model/GetStages.js +3 -17
- package/dist/model/GlobalMessageBaseResponse.js +2 -14
- package/dist/model/GlobalMessageData.js +7 -25
- package/dist/model/GlobalMessageDelete.js +9 -35
- package/dist/model/GlobalMessageDeleteAllOf.js +4 -19
- package/dist/model/GlobalMessageGet.js +9 -35
- package/dist/model/GlobalMessageGetAllOf.js +4 -19
- package/dist/model/GlobalMessageUserData.js +4 -18
- package/dist/model/GoalResults.js +3 -17
- package/dist/model/GoalType.js +3 -17
- package/dist/model/GoalsResponseComponent.js +11 -36
- package/dist/model/IconKey.js +1 -10
- package/dist/model/InlineResponse200.js +3 -17
- package/dist/model/InlineResponse400.js +5 -21
- package/dist/model/InlineResponse4001.js +5 -21
- package/dist/model/InlineResponse4001AdditionalData.js +2 -14
- package/dist/model/InlineResponse400AdditionalData.js +2 -14
- package/dist/model/InlineResponse403.js +5 -21
- package/dist/model/InlineResponse4031.js +5 -21
- package/dist/model/InlineResponse4031AdditionalData.js +2 -14
- package/dist/model/InlineResponse403AdditionalData.js +2 -14
- package/dist/model/InlineResponse404.js +5 -21
- package/dist/model/InlineResponse404AdditionalData.js +2 -14
- package/dist/model/ItemSearchAdditionalData.js +2 -15
- package/dist/model/ItemSearchAdditionalDataPagination.js +5 -20
- package/dist/model/ItemSearchFieldResponse.js +8 -33
- package/dist/model/ItemSearchFieldResponseAllOf.js +3 -18
- package/dist/model/ItemSearchFieldResponseAllOfData.js +3 -16
- package/dist/model/ItemSearchItem.js +3 -16
- package/dist/model/ItemSearchResponse.js +8 -33
- package/dist/model/ItemSearchResponseAllOf.js +3 -18
- package/dist/model/ItemSearchResponseAllOfData.js +3 -17
- package/dist/model/LeadIdResponse200.js +3 -17
- package/dist/model/LeadIdResponse200Data.js +2 -14
- package/dist/model/LeadLabelColor.js +1 -10
- package/dist/model/LeadLabelResponse.js +6 -23
- package/dist/model/LeadResponse.js +18 -48
- package/dist/model/LeadResponse404.js +6 -22
- package/dist/model/LeadSearchItem.js +3 -17
- package/dist/model/LeadSearchItemItem.js +15 -43
- package/dist/model/LeadSearchItemItemOrganization.js +3 -16
- package/dist/model/LeadSearchItemItemOwner.js +2 -14
- package/dist/model/LeadSearchItemItemPerson.js +3 -16
- package/dist/model/LeadSearchResponse.js +8 -33
- package/dist/model/LeadSearchResponseAllOf.js +3 -18
- package/dist/model/LeadSearchResponseAllOfData.js +2 -15
- package/dist/model/LeadValue.js +3 -16
- package/dist/model/LinkFileToItemRequest.js +7 -24
- package/dist/model/LinkRemoteFileToItem.js +3 -17
- package/dist/model/ListActivitiesResponse.js +8 -33
- package/dist/model/ListActivitiesResponseAllOf.js +3 -18
- package/dist/model/ListDealsResponse.js +9 -37
- package/dist/model/ListDealsResponseAllOf.js +4 -21
- package/dist/model/ListDealsResponseAllOfRelatedObjects.js +6 -27
- package/dist/model/ListFilesResponse.js +8 -33
- package/dist/model/ListFilesResponseAllOf.js +3 -18
- package/dist/model/ListFollowersResponse.js +8 -33
- package/dist/model/ListFollowersResponseAllOf.js +3 -18
- package/dist/model/ListFollowersResponseAllOfData.js +5 -20
- package/dist/model/ListMailMessagesResponse.js +8 -33
- package/dist/model/ListMailMessagesResponseAllOf.js +3 -18
- package/dist/model/ListMailMessagesResponseAllOfData.js +4 -19
- package/dist/model/ListPermittedUsersResponse.js +7 -29
- package/dist/model/ListPermittedUsersResponse1.js +7 -28
- package/dist/model/ListPermittedUsersResponse1AllOf.js +2 -14
- package/dist/model/ListPermittedUsersResponse2.js +7 -28
- package/dist/model/ListPermittedUsersResponse2AllOf.js +2 -14
- package/dist/model/ListPermittedUsersResponseAllOf.js +2 -15
- package/dist/model/ListPermittedUsersResponseAllOfData.js +2 -14
- package/dist/model/ListPersonProductsResponse.js +8 -33
- package/dist/model/ListPersonProductsResponseAllOf.js +3 -18
- package/dist/model/ListPersonProductsResponseAllOfDEALID.js +3 -18
- package/dist/model/ListPersonProductsResponseAllOfData.js +2 -15
- package/dist/model/ListPersonsResponse.js +9 -37
- package/dist/model/ListPersonsResponseAllOf.js +4 -21
- package/dist/model/ListPersonsResponseAllOfRelatedObjects.js +3 -18
- package/dist/model/ListProductAdditionalData.js +11 -41
- package/dist/model/ListProductAdditionalDataAllOf.js +6 -22
- package/dist/model/ListProductFollowersResponse.js +8 -33
- package/dist/model/ListProductFollowersResponseAllOf.js +3 -18
- package/dist/model/ListProductFollowersResponseAllOfData.js +5 -20
- package/dist/model/ListProductsResponse.js +9 -37
- package/dist/model/ListProductsResponseAllOf.js +4 -21
- package/dist/model/ListProductsResponseAllOfData.js +2 -15
- package/dist/model/ListProductsResponseAllOfRelatedObjects.js +2 -15
- package/dist/model/MailMessage.js +10 -38
- package/dist/model/MailMessageAllOf.js +2 -15
- package/dist/model/MailMessageData.js +30 -72
- package/dist/model/MailMessageItemForList.js +43 -137
- package/dist/model/MailMessageItemForListAllOf.js +10 -30
- package/dist/model/MailParticipant.js +7 -24
- package/dist/model/MailServiceBaseResponse.js +5 -20
- package/dist/model/MailThread.js +7 -29
- package/dist/model/MailThreadAllOf.js +2 -15
- package/dist/model/MailThreadDelete.js +11 -35
- package/dist/model/MailThreadDeleteAllOf.js +5 -19
- package/dist/model/MailThreadDeleteAllOfData.js +78 -0
- package/dist/model/MailThreadMessages.js +7 -29
- package/dist/model/MailThreadMessagesAllOf.js +2 -15
- package/dist/model/MailThreadOne.js +7 -29
- package/dist/model/MailThreadOneAllOf.js +2 -15
- package/dist/model/MailThreadParticipant.js +10 -30
- package/dist/model/MailThreadPut.js +7 -29
- package/dist/model/MailThreadPutAllOf.js +2 -15
- package/dist/model/MarketingStatus.js +1 -10
- package/dist/model/MergeDealsRequest.js +2 -14
- package/dist/model/MergeOrganizationsRequest.js +2 -14
- package/dist/model/MergePersonDealRelatedInfo.js +20 -67
- package/dist/model/MergePersonItem.js +52 -177
- package/dist/model/MergePersonsRequest.js +2 -14
- package/dist/model/MergePersonsResponse.js +7 -29
- package/dist/model/MergePersonsResponseAllOf.js +2 -15
- package/dist/model/MessageObject.js +12 -37
- package/dist/model/MessageObjectAttachments.js +8 -26
- package/dist/model/NewDeal.js +22 -74
- package/dist/model/NewDealAllOf.js +2 -14
- package/dist/model/NewDealProduct.js +32 -46
- package/dist/model/NewDealProductAllOf.js +2 -14
- package/dist/model/NewFollowerResponse.js +3 -17
- package/dist/model/NewFollowerResponseData.js +5 -20
- package/dist/model/NewGoal.js +26 -80
- package/dist/model/NewOrganization.js +9 -35
- package/dist/model/NewOrganizationAllOf.js +3 -16
- package/dist/model/NewPerson.js +16 -70
- package/dist/model/NewPersonAllOf.js +2 -14
- package/dist/model/NewProductField.js +5 -34
- package/dist/model/NewProductFieldAllOf.js +5 -34
- package/dist/model/Note.js +18 -61
- package/dist/model/NoteAllOf.js +2 -14
- package/dist/model/NoteConnectToParams.js +5 -20
- package/dist/model/NoteCreatorUser.js +5 -20
- package/dist/model/NoteField.js +10 -32
- package/dist/model/NoteFieldOptions.js +3 -16
- package/dist/model/NoteFieldsResponse.js +8 -33
- package/dist/model/NoteFieldsResponseAllOf.js +3 -18
- package/dist/model/NoteParams.js +7 -25
- package/dist/model/NumberBoolean.js +1 -10
- package/dist/model/NumberBooleanDefault0.js +1 -10
- package/dist/model/NumberBooleanDefault1.js +1 -10
- package/dist/model/ObjectPrices.js +2 -14
- package/dist/model/OneLeadResponse200.js +3 -17
- package/dist/model/OptionalNameObject.js +2 -14
- package/dist/model/OrgAndOwnerId.js +3 -18
- package/dist/model/OrganizationAddressInfo.js +12 -34
- package/dist/model/OrganizationCountAndAddressInfo.js +24 -79
- package/dist/model/OrganizationCountInfo.js +9 -28
- package/dist/model/OrganizationData.js +6 -22
- package/dist/model/OrganizationDataWithId.js +11 -40
- package/dist/model/OrganizationDataWithIdAllOf.js +2 -14
- package/dist/model/OrganizationDataWithIdAndActiveFlag.js +12 -43
- package/dist/model/OrganizationDataWithIdAndActiveFlagAllOf.js +2 -14
- package/dist/model/OrganizationDeleteResponse.js +3 -17
- package/dist/model/OrganizationDeleteResponseData.js +2 -14
- package/dist/model/OrganizationDetailsGetResponse.js +9 -37
- package/dist/model/OrganizationDetailsGetResponseAllOf.js +4 -21
- package/dist/model/OrganizationDetailsGetResponseAllOfAdditionalData.js +3 -17
- package/dist/model/OrganizationFlowResponse.js +9 -37
- package/dist/model/OrganizationFlowResponseAllOf.js +4 -21
- package/dist/model/OrganizationFlowResponseAllOfData.js +4 -18
- package/dist/model/OrganizationFlowResponseAllOfRelatedObjects.js +3 -18
- package/dist/model/OrganizationFollowerDeleteResponse.js +3 -17
- package/dist/model/OrganizationFollowerDeleteResponseData.js +2 -14
- package/dist/model/OrganizationFollowerItem.js +9 -34
- package/dist/model/OrganizationFollowerItemAllOf.js +2 -14
- package/dist/model/OrganizationFollowerPostResponse.js +3 -17
- package/dist/model/OrganizationFollowersListResponse.js +4 -20
- package/dist/model/OrganizationItem.js +54 -171
- package/dist/model/OrganizationItemAllOf.js +3 -16
- package/dist/model/OrganizationPostResponse.js +8 -33
- package/dist/model/OrganizationPostResponseAllOf.js +3 -18
- package/dist/model/OrganizationRelationship.js +6 -22
- package/dist/model/OrganizationRelationshipDeleteResponse.js +7 -29
- package/dist/model/OrganizationRelationshipDeleteResponseAllOf.js +2 -15
- package/dist/model/OrganizationRelationshipDeleteResponseAllOfData.js +2 -14
- package/dist/model/OrganizationRelationshipDetails.js +15 -53
- package/dist/model/OrganizationRelationshipGetResponse.js +8 -33
- package/dist/model/OrganizationRelationshipGetResponseAllOf.js +3 -18
- package/dist/model/OrganizationRelationshipPostResponse.js +8 -33
- package/dist/model/OrganizationRelationshipPostResponseAllOf.js +3 -18
- package/dist/model/OrganizationRelationshipUpdateResponse.js +8 -33
- package/dist/model/OrganizationRelationshipWithCalculatedFields.js +14 -50
- package/dist/model/OrganizationSearchItem.js +3 -17
- package/dist/model/OrganizationSearchItemItem.js +9 -29
- package/dist/model/OrganizationSearchResponse.js +8 -33
- package/dist/model/OrganizationSearchResponseAllOf.js +3 -18
- package/dist/model/OrganizationSearchResponseAllOfData.js +2 -15
- package/dist/model/OrganizationUpdateResponse.js +8 -33
- package/dist/model/OrganizationUpdateResponseAllOf.js +3 -18
- package/dist/model/OrganizationsDeleteResponse.js +3 -17
- package/dist/model/OrganizationsDeleteResponseData.js +2 -14
- package/dist/model/OrganizationsMergeResponse.js +3 -17
- package/dist/model/OrganizationsMergeResponseData.js +2 -14
- package/dist/model/Owner.js +12 -43
- package/dist/model/OwnerAllOf.js +2 -14
- package/dist/model/PaginationDetails.js +9 -34
- package/dist/model/PaginationDetailsAllOf.js +2 -14
- package/dist/model/Params.js +3 -16
- package/dist/model/PaymentItem.js +16 -47
- package/dist/model/PaymentsResponse.js +7 -29
- package/dist/model/PaymentsResponseAllOf.js +2 -15
- package/dist/model/PaymentsResponseAllOfData.js +2 -15
- package/dist/model/PermissionSets.js +7 -29
- package/dist/model/PermissionSetsAllOf.js +2 -15
- package/dist/model/PermissionSetsItem.js +9 -33
- package/dist/model/PersonCountAndEmailInfo.js +14 -49
- package/dist/model/PersonCountEmailDealAndActivityInfo.js +27 -88
- package/dist/model/PersonCountInfo.js +8 -26
- package/dist/model/PersonData.js +6 -24
- package/dist/model/PersonDataEmail.js +4 -18
- package/dist/model/PersonDataPhone.js +4 -18
- package/dist/model/PersonDataWithActiveFlag.js +11 -42
- package/dist/model/PersonDataWithActiveFlagAllOf.js +2 -14
- package/dist/model/PersonFlowResponse.js +9 -37
- package/dist/model/PersonFlowResponseAllOf.js +4 -21
- package/dist/model/PersonFlowResponseAllOfData.js +4 -18
- package/dist/model/PersonItem.js +49 -170
- package/dist/model/PersonListProduct.js +19 -50
- package/dist/model/PersonNameCountAndEmailInfo.js +17 -58
- package/dist/model/PersonNameCountAndEmailInfoWithIds.js +20 -67
- package/dist/model/PersonNameCountAndEmailInfoWithIdsAllOf.js +4 -18
- package/dist/model/PersonNameInfo.js +4 -18
- package/dist/model/PersonNameInfoWithOrgAndOwnerId.js +10 -39
- package/dist/model/PersonSearchItem.js +3 -17
- package/dist/model/PersonSearchItemItem.js +11 -34
- package/dist/model/PersonSearchItemItemOrganization.js +3 -16
- package/dist/model/PersonSearchItemItemOwner.js +2 -14
- package/dist/model/PersonSearchResponse.js +8 -33
- package/dist/model/PersonSearchResponseAllOf.js +3 -18
- package/dist/model/PersonSearchResponseAllOfData.js +2 -15
- package/dist/model/PictureData.js +8 -27
- package/dist/model/PictureDataPictures.js +3 -16
- package/dist/model/PictureDataWithID.js +13 -47
- package/dist/model/PictureDataWithIDAllOf.js +2 -14
- package/dist/model/PictureDataWithValue.js +13 -47
- package/dist/model/PictureDataWithValueAllOf.js +2 -14
- package/dist/model/Pipeline.js +5 -21
- package/dist/model/PipelineDetails.js +15 -53
- package/dist/model/PipelineDetailsAllOf.js +2 -15
- package/dist/model/PostComment.js +3 -17
- package/dist/model/PostDealParticipants.js +4 -20
- package/dist/model/PostGoalResponse.js +2 -15
- package/dist/model/PostNote.js +3 -17
- package/dist/model/PostRoleAssignment.js +7 -29
- package/dist/model/PostRoleAssignmentAllOf.js +2 -15
- package/dist/model/PostRoleAssignmentAllOfData.js +3 -16
- package/dist/model/PostRoleSettings.js +7 -29
- package/dist/model/PostRoleSettingsAllOf.js +2 -15
- package/dist/model/PostRoleSettingsAllOfData.js +4 -20
- package/dist/model/PostRoles.js +7 -29
- package/dist/model/PostRolesAllOf.js +2 -15
- package/dist/model/PostRolesAllOfData.js +2 -14
- package/dist/model/Product.js +11 -34
- package/dist/model/ProductAttachementFields.js +14 -38
- package/dist/model/ProductAttachmentDetails.js +44 -98
- package/dist/model/ProductBaseDeal.js +44 -98
- package/dist/model/ProductField.js +24 -92
- package/dist/model/ProductFieldAllOf.js +16 -42
- package/dist/model/ProductListItem.js +24 -59
- package/dist/model/ProductRequest.js +9 -30
- package/dist/model/ProductResponse.js +4 -20
- package/dist/model/ProductSearchItem.js +3 -17
- package/dist/model/ProductSearchItemItem.js +8 -27
- package/dist/model/ProductSearchItemItemOwner.js +2 -14
- package/dist/model/ProductSearchResponse.js +8 -33
- package/dist/model/ProductSearchResponseAllOf.js +3 -18
- package/dist/model/ProductSearchResponseAllOfData.js +2 -15
- package/dist/model/ProductWithArrayPrices.js +15 -54
- package/dist/model/ProductWithObjectPrices.js +15 -54
- package/dist/model/ProductsResponse.js +5 -23
- package/dist/model/PutRole.js +7 -29
- package/dist/model/PutRoleAllOf.js +2 -15
- package/dist/model/PutRoleAllOfData.js +2 -14
- package/dist/model/RecentDataProduct.js +18 -46
- package/dist/model/RecentsActivity.js +5 -20
- package/dist/model/RecentsActivityType.js +5 -20
- package/dist/model/RecentsDeal.js +5 -20
- package/dist/model/RecentsFile.js +5 -20
- package/dist/model/RecentsFilter.js +5 -20
- package/dist/model/RecentsNote.js +5 -20
- package/dist/model/RecentsOrganization.js +5 -20
- package/dist/model/RecentsPerson.js +5 -20
- package/dist/model/RecentsPipeline.js +5 -20
- package/dist/model/RecentsProduct.js +5 -20
- package/dist/model/RecentsStage.js +5 -20
- package/dist/model/RecentsUser.js +5 -20
- package/dist/model/RelatedDealData.js +2 -15
- package/dist/model/RelatedDealDataDEALID.js +8 -26
- package/dist/model/RelatedFollowerData.js +2 -15
- package/dist/model/RelatedOrganizationData.js +2 -15
- package/dist/model/RelatedOrganizationDataWithActiveFlag.js +2 -15
- package/dist/model/RelatedOrganizationName.js +2 -14
- package/dist/model/RelatedPersonData.js +2 -15
- package/dist/model/RelatedPersonDataWithActiveFlag.js +2 -15
- package/dist/model/RelatedPictureData.js +2 -15
- package/dist/model/RelatedUserData.js +2 -15
- package/dist/model/RelationshipOrganizationInfoItem.js +11 -40
- package/dist/model/RelationshipOrganizationInfoItemAllOf.js +2 -14
- package/dist/model/RelationshipOrganizationInfoItemWithActiveFlag.js +12 -43
- package/dist/model/RequiredNameObject.js +2 -14
- package/dist/model/RequredTitleParameter.js +2 -14
- package/dist/model/ResponseCallLogObject.js +22 -76
- package/dist/model/ResponseCallLogObjectAllOf.js +4 -18
- package/dist/model/RoleAssignment.js +11 -40
- package/dist/model/RoleAssignmentAllOf.js +5 -20
- package/dist/model/RoleSettings.js +10 -30
- package/dist/model/RolesAdditionalData.js +2 -15
- package/dist/model/RolesAdditionalDataPagination.js +4 -18
- package/dist/model/SinglePermissionSetsItem.js +14 -52
- package/dist/model/SinglePermissionSetsItemAllOf.js +2 -14
- package/dist/model/Stage.js +7 -24
- package/dist/model/StageConversions.js +4 -18
- package/dist/model/StageDetails.js +17 -58
- package/dist/model/StageWithPipelineInfo.js +18 -60
- package/dist/model/StageWithPipelineInfoAllOf.js +3 -16
- package/dist/model/SubRole.js +11 -40
- package/dist/model/SubRoleAllOf.js +5 -20
- package/dist/model/SubscriptionAddonsResponse.js +7 -28
- package/dist/model/SubscriptionAddonsResponseAllOf.js +2 -14
- package/dist/model/SubscriptionInstallmentCreateRequest.js +5 -20
- package/dist/model/SubscriptionInstallmentUpdateRequest.js +3 -16
- package/dist/model/SubscriptionItem.js +17 -44
- package/dist/model/SubscriptionRecurringCancelRequest.js +2 -14
- package/dist/model/SubscriptionRecurringCreateRequest.js +12 -36
- package/dist/model/SubscriptionRecurringUpdateRequest.js +6 -22
- package/dist/model/SubscriptionsIdResponse.js +7 -29
- package/dist/model/SubscriptionsIdResponseAllOf.js +2 -15
- package/dist/model/Team.js +7 -29
- package/dist/model/TeamAllOf.js +2 -15
- package/dist/model/TeamId.js +2 -14
- package/dist/model/Teams.js +7 -29
- package/dist/model/TeamsAllOf.js +2 -15
- package/dist/model/Unauthorized.js +4 -18
- package/dist/model/UpdateActivityResponse200.js +4 -20
- package/dist/model/UpdateDealRequest.js +19 -66
- package/dist/model/UpdateFile.js +3 -17
- package/dist/model/UpdateFileRequest.js +3 -16
- package/dist/model/UpdateFilterRequest.js +5 -18
- package/dist/model/UpdateLeadLabelRequest.js +3 -17
- package/dist/model/UpdateLeadRequest.js +12 -36
- package/dist/model/UpdateMailThreadDetailsRequest.js +6 -23
- package/dist/model/UpdateOrganization.js +8 -32
- package/dist/model/UpdateOrganizationAllOf.js +2 -14
- package/dist/model/UpdatePerson.js +16 -70
- package/dist/model/UpdatePersonAllOf.js +2 -14
- package/dist/model/UpdatePersonResponse.js +8 -33
- package/dist/model/UpdateProductField.js +3 -16
- package/dist/model/UpdateProductRequestBody.js +14 -51
- package/dist/model/UpdateProductResponse.js +4 -20
- package/dist/model/UpdateStageRequest.js +12 -42
- package/dist/model/UpdateStageRequestAllOf.js +2 -14
- package/dist/model/UpdateTeam.js +11 -41
- package/dist/model/UpdateTeamAllOf.js +3 -17
- package/dist/model/UpdateTeamWithAdditionalProperties.js +13 -47
- package/dist/model/UpdateUserRequest.js +2 -14
- package/dist/model/User.js +7 -29
- package/dist/model/UserAccess.js +5 -23
- package/dist/model/UserAllOf.js +2 -15
- package/dist/model/UserAssignmentToPermissionSet.js +4 -18
- package/dist/model/UserAssignmentsToPermissionSet.js +7 -29
- package/dist/model/UserAssignmentsToPermissionSetAllOf.js +2 -15
- package/dist/model/UserConnections.js +7 -29
- package/dist/model/UserConnectionsAllOf.js +2 -15
- package/dist/model/UserConnectionsAllOfData.js +2 -14
- package/dist/model/UserData.js +7 -24
- package/dist/model/UserDataWithId.js +9 -35
- package/dist/model/UserIDs.js +7 -28
- package/dist/model/UserIDsAllOf.js +2 -14
- package/dist/model/UserMe.js +7 -29
- package/dist/model/UserMeAllOf.js +2 -15
- package/dist/model/UserPermissions.js +7 -29
- package/dist/model/UserPermissionsAllOf.js +2 -15
- package/dist/model/UserPermissionsItem.js +32 -74
- package/dist/model/UserSettings.js +7 -29
- package/dist/model/UserSettingsAllOf.js +2 -15
- package/dist/model/UserSettingsItem.js +11 -32
- package/dist/model/Users.js +7 -29
- package/dist/model/UsersAllOf.js +2 -15
- package/dist/model/VisibleTo.js +1 -10
- package/dist/model/Webhook.js +8 -32
- package/dist/model/WebhookAllOf.js +2 -15
- package/dist/model/WebhookBadRequest.js +8 -31
- package/dist/model/WebhookBadRequestAllOf.js +2 -14
- package/dist/model/Webhooks.js +8 -32
- package/dist/model/WebhooksAllOf.js +2 -15
- package/dist/model/WebhooksDeleteForbiddenSchema.js +7 -28
- package/dist/model/WebhooksDeleteForbiddenSchemaAllOf.js +2 -14
- package/package.json +25 -11
package/dist/api/PersonsApi.js
CHANGED
@@ -1,70 +1,39 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports["default"] = void 0;
|
9
|
-
|
10
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
11
|
-
|
12
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
13
|
-
|
14
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
15
|
-
|
16
11
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
17
|
-
|
18
12
|
var _AddFollowerToPersonResponse = _interopRequireDefault(require("../model/AddFollowerToPersonResponse"));
|
19
|
-
|
20
13
|
var _AddPersonFollowerRequest = _interopRequireDefault(require("../model/AddPersonFollowerRequest"));
|
21
|
-
|
22
14
|
var _AddPersonPictureResponse = _interopRequireDefault(require("../model/AddPersonPictureResponse"));
|
23
|
-
|
24
15
|
var _AddPersonResponse = _interopRequireDefault(require("../model/AddPersonResponse"));
|
25
|
-
|
26
16
|
var _DeletePersonResponse = _interopRequireDefault(require("../model/DeletePersonResponse"));
|
27
|
-
|
28
17
|
var _DeletePersonsInBulkResponse = _interopRequireDefault(require("../model/DeletePersonsInBulkResponse"));
|
29
|
-
|
30
18
|
var _GetAllPersonsResponse = _interopRequireDefault(require("../model/GetAllPersonsResponse"));
|
31
|
-
|
32
19
|
var _GetPersonDetailsResponse = _interopRequireDefault(require("../model/GetPersonDetailsResponse"));
|
33
|
-
|
34
20
|
var _ListActivitiesResponse = _interopRequireDefault(require("../model/ListActivitiesResponse"));
|
35
|
-
|
36
21
|
var _ListDealsResponse = _interopRequireDefault(require("../model/ListDealsResponse"));
|
37
|
-
|
38
22
|
var _ListFilesResponse = _interopRequireDefault(require("../model/ListFilesResponse"));
|
39
|
-
|
40
23
|
var _ListFollowersResponse = _interopRequireDefault(require("../model/ListFollowersResponse"));
|
41
|
-
|
42
24
|
var _ListMailMessagesResponse = _interopRequireDefault(require("../model/ListMailMessagesResponse"));
|
43
|
-
|
44
25
|
var _ListPermittedUsersResponse = _interopRequireDefault(require("../model/ListPermittedUsersResponse1"));
|
45
|
-
|
46
26
|
var _ListPersonProductsResponse = _interopRequireDefault(require("../model/ListPersonProductsResponse"));
|
47
|
-
|
48
27
|
var _MergePersonsRequest = _interopRequireDefault(require("../model/MergePersonsRequest"));
|
49
|
-
|
50
28
|
var _MergePersonsResponse = _interopRequireDefault(require("../model/MergePersonsResponse"));
|
51
|
-
|
52
29
|
var _NewPerson = _interopRequireDefault(require("../model/NewPerson"));
|
53
|
-
|
54
30
|
var _NumberBoolean = _interopRequireDefault(require("../model/NumberBoolean"));
|
55
|
-
|
56
31
|
var _PersonFlowResponse = _interopRequireDefault(require("../model/PersonFlowResponse"));
|
57
|
-
|
58
32
|
var _PersonSearchResponse = _interopRequireDefault(require("../model/PersonSearchResponse"));
|
59
|
-
|
60
33
|
var _UpdatePerson = _interopRequireDefault(require("../model/UpdatePerson"));
|
61
|
-
|
62
34
|
var _UpdatePersonResponse = _interopRequireDefault(require("../model/UpdatePersonResponse"));
|
63
|
-
|
64
35
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
65
|
-
|
66
36
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
67
|
-
|
68
37
|
/**
|
69
38
|
* Persons service.
|
70
39
|
* @module api/PersonsApi
|
@@ -80,8 +49,9 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
80
49
|
*/
|
81
50
|
function PersonsApi(apiClient) {
|
82
51
|
(0, _classCallCheck2["default"])(this, PersonsApi);
|
83
|
-
this.apiClient = apiClient
|
52
|
+
this.apiClient = apiClient;
|
84
53
|
}
|
54
|
+
|
85
55
|
/**
|
86
56
|
* Add a person
|
87
57
|
* 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.<br>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.
|
@@ -89,8 +59,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
89
59
|
* @param {module:model/NewPerson} opts.newPerson
|
90
60
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddPersonResponse} and HTTP response
|
91
61
|
*/
|
92
|
-
|
93
|
-
|
94
62
|
(0, _createClass2["default"])(PersonsApi, [{
|
95
63
|
key: "addPersonWithHttpInfo",
|
96
64
|
value: function addPersonWithHttpInfo(opts) {
|
@@ -104,7 +72,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
104
72
|
var contentTypes = ['application/json'];
|
105
73
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
106
74
|
var isJSON = contentTypes.includes('application/json');
|
107
|
-
|
108
75
|
if (isJSON) {
|
109
76
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
110
77
|
} else if (isURLEncoded) {
|
@@ -114,12 +81,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
114
81
|
}
|
115
82
|
}
|
116
83
|
}
|
117
|
-
|
118
84
|
var authNames = ['api_key', 'oauth2'];
|
119
85
|
var accepts = ['application/json'];
|
120
86
|
var returnType = _AddPersonResponse["default"];
|
121
87
|
return this.apiClient.callApi('/persons', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
122
88
|
}
|
89
|
+
|
123
90
|
/**
|
124
91
|
* Add a person
|
125
92
|
* 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.<br>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.
|
@@ -127,7 +94,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
127
94
|
* @param {module:model/NewPerson} opts.newPerson
|
128
95
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddPersonResponse}
|
129
96
|
*/
|
130
|
-
|
131
97
|
}, {
|
132
98
|
key: "addPerson",
|
133
99
|
value: function addPerson(opts) {
|
@@ -135,6 +101,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
135
101
|
return response_and_data;
|
136
102
|
});
|
137
103
|
}
|
104
|
+
|
138
105
|
/**
|
139
106
|
* Add a follower to a person
|
140
107
|
* Adds a follower to a person.
|
@@ -143,21 +110,19 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
143
110
|
* @param {module:model/AddPersonFollowerRequest} opts.addPersonFollowerRequest
|
144
111
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddFollowerToPersonResponse} and HTTP response
|
145
112
|
*/
|
146
|
-
|
147
113
|
}, {
|
148
114
|
key: "addPersonFollowerWithHttpInfo",
|
149
115
|
value: function addPersonFollowerWithHttpInfo(id, opts) {
|
150
116
|
opts = opts || {};
|
151
|
-
var postBody = opts['addPersonFollowerRequest'];
|
117
|
+
var postBody = opts['addPersonFollowerRequest'];
|
152
118
|
|
119
|
+
// verify the required parameter 'id' is set
|
153
120
|
if (id === undefined || id === null) {
|
154
121
|
throw new Error("Missing the required parameter 'id' when calling addPersonFollower");
|
155
122
|
}
|
156
|
-
|
157
123
|
if (opts['user_id'] === undefined || opts['user_id'] === null) {
|
158
124
|
throw new Error("Missing the required parameter 'user_id' when calling addPersonFollower");
|
159
125
|
}
|
160
|
-
|
161
126
|
var pathParams = {
|
162
127
|
'id': id
|
163
128
|
};
|
@@ -168,7 +133,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
168
133
|
var contentTypes = ['application/json'];
|
169
134
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
170
135
|
var isJSON = contentTypes.includes('application/json');
|
171
|
-
|
172
136
|
if (isJSON) {
|
173
137
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
174
138
|
} else if (isURLEncoded) {
|
@@ -178,12 +142,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
178
142
|
}
|
179
143
|
}
|
180
144
|
}
|
181
|
-
|
182
145
|
var authNames = ['api_key', 'oauth2'];
|
183
146
|
var accepts = ['application/json'];
|
184
147
|
var returnType = _AddFollowerToPersonResponse["default"];
|
185
148
|
return this.apiClient.callApi('/persons/{id}/followers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
186
149
|
}
|
150
|
+
|
187
151
|
/**
|
188
152
|
* Add a follower to a person
|
189
153
|
* Adds a follower to a person.
|
@@ -192,7 +156,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
192
156
|
* @param {module:model/AddPersonFollowerRequest} opts.addPersonFollowerRequest
|
193
157
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddFollowerToPersonResponse}
|
194
158
|
*/
|
195
|
-
|
196
159
|
}, {
|
197
160
|
key: "addPersonFollower",
|
198
161
|
value: function addPersonFollower(id, opts) {
|
@@ -200,6 +163,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
200
163
|
return response_and_data;
|
201
164
|
});
|
202
165
|
}
|
166
|
+
|
203
167
|
/**
|
204
168
|
* Add person picture
|
205
169
|
* Adds a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares.
|
@@ -212,22 +176,21 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
212
176
|
* @param {Number} opts.cropHeight The height of the cropping area (in pixels)
|
213
177
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddPersonPictureResponse} and HTTP response
|
214
178
|
*/
|
215
|
-
|
216
179
|
}, {
|
217
180
|
key: "addPersonPictureWithHttpInfo",
|
218
181
|
value: function addPersonPictureWithHttpInfo(id, file, opts) {
|
219
182
|
opts = opts || {};
|
220
|
-
var postBody = null;
|
183
|
+
var postBody = null;
|
221
184
|
|
185
|
+
// verify the required parameter 'id' is set
|
222
186
|
if (id === undefined || id === null) {
|
223
187
|
throw new Error("Missing the required parameter 'id' when calling addPersonPicture");
|
224
|
-
}
|
225
|
-
|
188
|
+
}
|
226
189
|
|
190
|
+
// verify the required parameter 'file' is set
|
227
191
|
if (file === undefined || file === null) {
|
228
192
|
throw new Error("Missing the required parameter 'file' when calling addPersonPicture");
|
229
193
|
}
|
230
|
-
|
231
194
|
var pathParams = {
|
232
195
|
'id': id
|
233
196
|
};
|
@@ -244,7 +207,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
244
207
|
var contentTypes = ['multipart/form-data'];
|
245
208
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
246
209
|
var isJSON = contentTypes.includes('application/json');
|
247
|
-
|
248
210
|
if (isJSON) {
|
249
211
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
250
212
|
} else if (isURLEncoded) {
|
@@ -254,12 +216,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
254
216
|
}
|
255
217
|
}
|
256
218
|
}
|
257
|
-
|
258
219
|
var authNames = ['api_key', 'oauth2'];
|
259
220
|
var accepts = ['application/json'];
|
260
221
|
var returnType = _AddPersonPictureResponse["default"];
|
261
222
|
return this.apiClient.callApi('/persons/{id}/picture', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
262
223
|
}
|
224
|
+
|
263
225
|
/**
|
264
226
|
* Add person picture
|
265
227
|
* Adds a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares.
|
@@ -272,7 +234,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
272
234
|
* @param {Number} opts.cropHeight The height of the cropping area (in pixels)
|
273
235
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddPersonPictureResponse}
|
274
236
|
*/
|
275
|
-
|
276
237
|
}, {
|
277
238
|
key: "addPersonPicture",
|
278
239
|
value: function addPersonPicture(id, file, opts) {
|
@@ -280,23 +241,23 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
280
241
|
return response_and_data;
|
281
242
|
});
|
282
243
|
}
|
244
|
+
|
283
245
|
/**
|
284
246
|
* Delete a person
|
285
247
|
* Marks a person as deleted. After 30 days, the person will be permanently deleted.
|
286
248
|
* @param {Number} id The ID of the person
|
287
249
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonResponse} and HTTP response
|
288
250
|
*/
|
289
|
-
|
290
251
|
}, {
|
291
252
|
key: "deletePersonWithHttpInfo",
|
292
253
|
value: function deletePersonWithHttpInfo(id) {
|
293
254
|
var opts = {};
|
294
|
-
var postBody = null;
|
255
|
+
var postBody = null;
|
295
256
|
|
257
|
+
// verify the required parameter 'id' is set
|
296
258
|
if (id === undefined || id === null) {
|
297
259
|
throw new Error("Missing the required parameter 'id' when calling deletePerson");
|
298
260
|
}
|
299
|
-
|
300
261
|
var pathParams = {
|
301
262
|
'id': id
|
302
263
|
};
|
@@ -307,7 +268,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
307
268
|
var contentTypes = [];
|
308
269
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
309
270
|
var isJSON = contentTypes.includes('application/json');
|
310
|
-
|
311
271
|
if (isJSON) {
|
312
272
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
313
273
|
} else if (isURLEncoded) {
|
@@ -317,19 +277,18 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
317
277
|
}
|
318
278
|
}
|
319
279
|
}
|
320
|
-
|
321
280
|
var authNames = ['api_key', 'oauth2'];
|
322
281
|
var accepts = ['application/json'];
|
323
282
|
var returnType = _DeletePersonResponse["default"];
|
324
283
|
return this.apiClient.callApi('/persons/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
325
284
|
}
|
285
|
+
|
326
286
|
/**
|
327
287
|
* Delete a person
|
328
288
|
* Marks a person as deleted. After 30 days, the person will be permanently deleted.
|
329
289
|
* @param {Number} id The ID of the person
|
330
290
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonResponse}
|
331
291
|
*/
|
332
|
-
|
333
292
|
}, {
|
334
293
|
key: "deletePerson",
|
335
294
|
value: function deletePerson(id) {
|
@@ -337,6 +296,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
337
296
|
return response_and_data;
|
338
297
|
});
|
339
298
|
}
|
299
|
+
|
340
300
|
/**
|
341
301
|
* Delete a follower from a person
|
342
302
|
* Deletes a follower from a person.
|
@@ -344,22 +304,21 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
344
304
|
* @param {Number} followerId The ID of the follower
|
345
305
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonResponse} and HTTP response
|
346
306
|
*/
|
347
|
-
|
348
307
|
}, {
|
349
308
|
key: "deletePersonFollowerWithHttpInfo",
|
350
309
|
value: function deletePersonFollowerWithHttpInfo(id, followerId) {
|
351
310
|
var opts = {};
|
352
|
-
var postBody = null;
|
311
|
+
var postBody = null;
|
353
312
|
|
313
|
+
// verify the required parameter 'id' is set
|
354
314
|
if (id === undefined || id === null) {
|
355
315
|
throw new Error("Missing the required parameter 'id' when calling deletePersonFollower");
|
356
|
-
}
|
357
|
-
|
316
|
+
}
|
358
317
|
|
318
|
+
// verify the required parameter 'followerId' is set
|
359
319
|
if (followerId === undefined || followerId === null) {
|
360
320
|
throw new Error("Missing the required parameter 'followerId' when calling deletePersonFollower");
|
361
321
|
}
|
362
|
-
|
363
322
|
var pathParams = {
|
364
323
|
'id': id,
|
365
324
|
'follower_id': followerId
|
@@ -371,7 +330,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
371
330
|
var contentTypes = [];
|
372
331
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
373
332
|
var isJSON = contentTypes.includes('application/json');
|
374
|
-
|
375
333
|
if (isJSON) {
|
376
334
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
377
335
|
} else if (isURLEncoded) {
|
@@ -381,12 +339,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
381
339
|
}
|
382
340
|
}
|
383
341
|
}
|
384
|
-
|
385
342
|
var authNames = ['api_key'];
|
386
343
|
var accepts = ['application/json'];
|
387
344
|
var returnType = _DeletePersonResponse["default"];
|
388
345
|
return this.apiClient.callApi('/persons/{id}/followers/{follower_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
389
346
|
}
|
347
|
+
|
390
348
|
/**
|
391
349
|
* Delete a follower from a person
|
392
350
|
* Deletes a follower from a person.
|
@@ -394,7 +352,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
394
352
|
* @param {Number} followerId The ID of the follower
|
395
353
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonResponse}
|
396
354
|
*/
|
397
|
-
|
398
355
|
}, {
|
399
356
|
key: "deletePersonFollower",
|
400
357
|
value: function deletePersonFollower(id, followerId) {
|
@@ -402,23 +359,23 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
402
359
|
return response_and_data;
|
403
360
|
});
|
404
361
|
}
|
362
|
+
|
405
363
|
/**
|
406
364
|
* Delete person picture
|
407
365
|
* Deletes a person’s picture.
|
408
366
|
* @param {Number} id The ID of the person
|
409
367
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonResponse} and HTTP response
|
410
368
|
*/
|
411
|
-
|
412
369
|
}, {
|
413
370
|
key: "deletePersonPictureWithHttpInfo",
|
414
371
|
value: function deletePersonPictureWithHttpInfo(id) {
|
415
372
|
var opts = {};
|
416
|
-
var postBody = null;
|
373
|
+
var postBody = null;
|
417
374
|
|
375
|
+
// verify the required parameter 'id' is set
|
418
376
|
if (id === undefined || id === null) {
|
419
377
|
throw new Error("Missing the required parameter 'id' when calling deletePersonPicture");
|
420
378
|
}
|
421
|
-
|
422
379
|
var pathParams = {
|
423
380
|
'id': id
|
424
381
|
};
|
@@ -429,7 +386,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
429
386
|
var contentTypes = [];
|
430
387
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
431
388
|
var isJSON = contentTypes.includes('application/json');
|
432
|
-
|
433
389
|
if (isJSON) {
|
434
390
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
435
391
|
} else if (isURLEncoded) {
|
@@ -439,19 +395,18 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
439
395
|
}
|
440
396
|
}
|
441
397
|
}
|
442
|
-
|
443
398
|
var authNames = ['api_key', 'oauth2'];
|
444
399
|
var accepts = ['application/json'];
|
445
400
|
var returnType = _DeletePersonResponse["default"];
|
446
401
|
return this.apiClient.callApi('/persons/{id}/picture', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
447
402
|
}
|
403
|
+
|
448
404
|
/**
|
449
405
|
* Delete person picture
|
450
406
|
* Deletes a person’s picture.
|
451
407
|
* @param {Number} id The ID of the person
|
452
408
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonResponse}
|
453
409
|
*/
|
454
|
-
|
455
410
|
}, {
|
456
411
|
key: "deletePersonPicture",
|
457
412
|
value: function deletePersonPicture(id) {
|
@@ -459,23 +414,23 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
459
414
|
return response_and_data;
|
460
415
|
});
|
461
416
|
}
|
417
|
+
|
462
418
|
/**
|
463
419
|
* Delete multiple persons in bulk
|
464
420
|
* Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted.
|
465
421
|
* @param {String} ids The comma-separated IDs that will be deleted
|
466
422
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonsInBulkResponse} and HTTP response
|
467
423
|
*/
|
468
|
-
|
469
424
|
}, {
|
470
425
|
key: "deletePersonsWithHttpInfo",
|
471
426
|
value: function deletePersonsWithHttpInfo(ids) {
|
472
427
|
var opts = {};
|
473
|
-
var postBody = null;
|
428
|
+
var postBody = null;
|
474
429
|
|
430
|
+
// verify the required parameter 'ids' is set
|
475
431
|
if (ids === undefined || ids === null) {
|
476
432
|
throw new Error("Missing the required parameter 'ids' when calling deletePersons");
|
477
433
|
}
|
478
|
-
|
479
434
|
var pathParams = {};
|
480
435
|
var queryParams = {
|
481
436
|
'ids': ids
|
@@ -486,7 +441,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
486
441
|
var contentTypes = [];
|
487
442
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
488
443
|
var isJSON = contentTypes.includes('application/json');
|
489
|
-
|
490
444
|
if (isJSON) {
|
491
445
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
492
446
|
} else if (isURLEncoded) {
|
@@ -496,19 +450,18 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
496
450
|
}
|
497
451
|
}
|
498
452
|
}
|
499
|
-
|
500
453
|
var authNames = ['api_key', 'oauth2'];
|
501
454
|
var accepts = ['application/json'];
|
502
455
|
var returnType = _DeletePersonsInBulkResponse["default"];
|
503
456
|
return this.apiClient.callApi('/persons', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
504
457
|
}
|
458
|
+
|
505
459
|
/**
|
506
460
|
* Delete multiple persons in bulk
|
507
461
|
* Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted.
|
508
462
|
* @param {String} ids The comma-separated IDs that will be deleted
|
509
463
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonsInBulkResponse}
|
510
464
|
*/
|
511
|
-
|
512
465
|
}, {
|
513
466
|
key: "deletePersons",
|
514
467
|
value: function deletePersons(ids) {
|
@@ -516,23 +469,23 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
516
469
|
return response_and_data;
|
517
470
|
});
|
518
471
|
}
|
472
|
+
|
519
473
|
/**
|
520
474
|
* Get details of a person
|
521
475
|
* 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.<br>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.
|
522
476
|
* @param {Number} id The ID of the person
|
523
477
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPersonDetailsResponse} and HTTP response
|
524
478
|
*/
|
525
|
-
|
526
479
|
}, {
|
527
480
|
key: "getPersonWithHttpInfo",
|
528
481
|
value: function getPersonWithHttpInfo(id) {
|
529
482
|
var opts = {};
|
530
|
-
var postBody = null;
|
483
|
+
var postBody = null;
|
531
484
|
|
485
|
+
// verify the required parameter 'id' is set
|
532
486
|
if (id === undefined || id === null) {
|
533
487
|
throw new Error("Missing the required parameter 'id' when calling getPerson");
|
534
488
|
}
|
535
|
-
|
536
489
|
var pathParams = {
|
537
490
|
'id': id
|
538
491
|
};
|
@@ -543,7 +496,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
543
496
|
var contentTypes = [];
|
544
497
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
545
498
|
var isJSON = contentTypes.includes('application/json');
|
546
|
-
|
547
499
|
if (isJSON) {
|
548
500
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
549
501
|
} else if (isURLEncoded) {
|
@@ -553,19 +505,18 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
553
505
|
}
|
554
506
|
}
|
555
507
|
}
|
556
|
-
|
557
508
|
var authNames = ['api_key', 'oauth2'];
|
558
509
|
var accepts = ['application/json'];
|
559
510
|
var returnType = _GetPersonDetailsResponse["default"];
|
560
511
|
return this.apiClient.callApi('/persons/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
561
512
|
}
|
513
|
+
|
562
514
|
/**
|
563
515
|
* Get details of a person
|
564
516
|
* 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.<br>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.
|
565
517
|
* @param {Number} id The ID of the person
|
566
518
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPersonDetailsResponse}
|
567
519
|
*/
|
568
|
-
|
569
520
|
}, {
|
570
521
|
key: "getPerson",
|
571
522
|
value: function getPerson(id) {
|
@@ -573,6 +524,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
573
524
|
return response_and_data;
|
574
525
|
});
|
575
526
|
}
|
527
|
+
|
576
528
|
/**
|
577
529
|
* List activities associated with a person
|
578
530
|
* Lists activities associated with a person.
|
@@ -584,17 +536,16 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
584
536
|
* @param {String} opts.exclude A comma-separated string of activity IDs to exclude from result
|
585
537
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListActivitiesResponse} and HTTP response
|
586
538
|
*/
|
587
|
-
|
588
539
|
}, {
|
589
540
|
key: "getPersonActivitiesWithHttpInfo",
|
590
541
|
value: function getPersonActivitiesWithHttpInfo(id, opts) {
|
591
542
|
opts = opts || {};
|
592
|
-
var postBody = null;
|
543
|
+
var postBody = null;
|
593
544
|
|
545
|
+
// verify the required parameter 'id' is set
|
594
546
|
if (id === undefined || id === null) {
|
595
547
|
throw new Error("Missing the required parameter 'id' when calling getPersonActivities");
|
596
548
|
}
|
597
|
-
|
598
549
|
var pathParams = {
|
599
550
|
'id': id
|
600
551
|
};
|
@@ -610,7 +561,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
610
561
|
var contentTypes = [];
|
611
562
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
612
563
|
var isJSON = contentTypes.includes('application/json');
|
613
|
-
|
614
564
|
if (isJSON) {
|
615
565
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
616
566
|
} else if (isURLEncoded) {
|
@@ -620,12 +570,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
620
570
|
}
|
621
571
|
}
|
622
572
|
}
|
623
|
-
|
624
573
|
var authNames = ['api_key', 'oauth2'];
|
625
574
|
var accepts = ['application/json'];
|
626
575
|
var returnType = _ListActivitiesResponse["default"];
|
627
576
|
return this.apiClient.callApi('/persons/{id}/activities', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
628
577
|
}
|
578
|
+
|
629
579
|
/**
|
630
580
|
* List activities associated with a person
|
631
581
|
* Lists activities associated with a person.
|
@@ -637,7 +587,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
637
587
|
* @param {String} opts.exclude A comma-separated string of activity IDs to exclude from result
|
638
588
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListActivitiesResponse}
|
639
589
|
*/
|
640
|
-
|
641
590
|
}, {
|
642
591
|
key: "getPersonActivities",
|
643
592
|
value: function getPersonActivities(id, opts) {
|
@@ -645,6 +594,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
645
594
|
return response_and_data;
|
646
595
|
});
|
647
596
|
}
|
597
|
+
|
648
598
|
/**
|
649
599
|
* List deals associated with a person
|
650
600
|
* Lists deals associated with a person.
|
@@ -652,21 +602,20 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
652
602
|
* @param {Object} opts Optional parameters
|
653
603
|
* @param {Number} opts.start Pagination start (default to 0)
|
654
604
|
* @param {Number} opts.limit Items shown per page
|
655
|
-
* @param {module:model/String} opts.status Only fetch deals with a specific status. If omitted, all not deleted deals are
|
605
|
+
* @param {module:model/String} opts.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. (default to 'all_not_deleted')
|
656
606
|
* @param {String} opts.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).
|
657
607
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDealsResponse} and HTTP response
|
658
608
|
*/
|
659
|
-
|
660
609
|
}, {
|
661
610
|
key: "getPersonDealsWithHttpInfo",
|
662
611
|
value: function getPersonDealsWithHttpInfo(id, opts) {
|
663
612
|
opts = opts || {};
|
664
|
-
var postBody = null;
|
613
|
+
var postBody = null;
|
665
614
|
|
615
|
+
// verify the required parameter 'id' is set
|
666
616
|
if (id === undefined || id === null) {
|
667
617
|
throw new Error("Missing the required parameter 'id' when calling getPersonDeals");
|
668
618
|
}
|
669
|
-
|
670
619
|
var pathParams = {
|
671
620
|
'id': id
|
672
621
|
};
|
@@ -682,7 +631,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
682
631
|
var contentTypes = [];
|
683
632
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
684
633
|
var isJSON = contentTypes.includes('application/json');
|
685
|
-
|
686
634
|
if (isJSON) {
|
687
635
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
688
636
|
} else if (isURLEncoded) {
|
@@ -692,12 +640,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
692
640
|
}
|
693
641
|
}
|
694
642
|
}
|
695
|
-
|
696
643
|
var authNames = ['api_key', 'oauth2'];
|
697
644
|
var accepts = ['application/json'];
|
698
645
|
var returnType = _ListDealsResponse["default"];
|
699
646
|
return this.apiClient.callApi('/persons/{id}/deals', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
700
647
|
}
|
648
|
+
|
701
649
|
/**
|
702
650
|
* List deals associated with a person
|
703
651
|
* Lists deals associated with a person.
|
@@ -705,11 +653,10 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
705
653
|
* @param {Object} opts Optional parameters
|
706
654
|
* @param {Number} opts.start Pagination start (default to 0)
|
707
655
|
* @param {Number} opts.limit Items shown per page
|
708
|
-
* @param {module:model/String} opts.status Only fetch deals with a specific status. If omitted, all not deleted deals are
|
656
|
+
* @param {module:model/String} opts.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. (default to 'all_not_deleted')
|
709
657
|
* @param {String} opts.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).
|
710
658
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDealsResponse}
|
711
659
|
*/
|
712
|
-
|
713
660
|
}, {
|
714
661
|
key: "getPersonDeals",
|
715
662
|
value: function getPersonDeals(id, opts) {
|
@@ -717,6 +664,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
717
664
|
return response_and_data;
|
718
665
|
});
|
719
666
|
}
|
667
|
+
|
720
668
|
/**
|
721
669
|
* List files attached to a person
|
722
670
|
* Lists files associated with a person.
|
@@ -727,17 +675,16 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
727
675
|
* @param {String} opts.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). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `product_id`, `add_time`, `update_time`, `file_name`, `file_type`, `file_size`, `comment`.
|
728
676
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListFilesResponse} and HTTP response
|
729
677
|
*/
|
730
|
-
|
731
678
|
}, {
|
732
679
|
key: "getPersonFilesWithHttpInfo",
|
733
680
|
value: function getPersonFilesWithHttpInfo(id, opts) {
|
734
681
|
opts = opts || {};
|
735
|
-
var postBody = null;
|
682
|
+
var postBody = null;
|
736
683
|
|
684
|
+
// verify the required parameter 'id' is set
|
737
685
|
if (id === undefined || id === null) {
|
738
686
|
throw new Error("Missing the required parameter 'id' when calling getPersonFiles");
|
739
687
|
}
|
740
|
-
|
741
688
|
var pathParams = {
|
742
689
|
'id': id
|
743
690
|
};
|
@@ -752,7 +699,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
752
699
|
var contentTypes = [];
|
753
700
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
754
701
|
var isJSON = contentTypes.includes('application/json');
|
755
|
-
|
756
702
|
if (isJSON) {
|
757
703
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
758
704
|
} else if (isURLEncoded) {
|
@@ -762,12 +708,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
762
708
|
}
|
763
709
|
}
|
764
710
|
}
|
765
|
-
|
766
711
|
var authNames = ['api_key', 'oauth2'];
|
767
712
|
var accepts = ['application/json'];
|
768
713
|
var returnType = _ListFilesResponse["default"];
|
769
714
|
return this.apiClient.callApi('/persons/{id}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
770
715
|
}
|
716
|
+
|
771
717
|
/**
|
772
718
|
* List files attached to a person
|
773
719
|
* Lists files associated with a person.
|
@@ -778,7 +724,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
778
724
|
* @param {String} opts.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). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `product_id`, `add_time`, `update_time`, `file_name`, `file_type`, `file_size`, `comment`.
|
779
725
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListFilesResponse}
|
780
726
|
*/
|
781
|
-
|
782
727
|
}, {
|
783
728
|
key: "getPersonFiles",
|
784
729
|
value: function getPersonFiles(id, opts) {
|
@@ -786,23 +731,23 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
786
731
|
return response_and_data;
|
787
732
|
});
|
788
733
|
}
|
734
|
+
|
789
735
|
/**
|
790
736
|
* List followers of a person
|
791
737
|
* Lists the followers of a person.
|
792
738
|
* @param {Number} id The ID of the person
|
793
739
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListFollowersResponse} and HTTP response
|
794
740
|
*/
|
795
|
-
|
796
741
|
}, {
|
797
742
|
key: "getPersonFollowersWithHttpInfo",
|
798
743
|
value: function getPersonFollowersWithHttpInfo(id) {
|
799
744
|
var opts = {};
|
800
|
-
var postBody = null;
|
745
|
+
var postBody = null;
|
801
746
|
|
747
|
+
// verify the required parameter 'id' is set
|
802
748
|
if (id === undefined || id === null) {
|
803
749
|
throw new Error("Missing the required parameter 'id' when calling getPersonFollowers");
|
804
750
|
}
|
805
|
-
|
806
751
|
var pathParams = {
|
807
752
|
'id': id
|
808
753
|
};
|
@@ -813,7 +758,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
813
758
|
var contentTypes = [];
|
814
759
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
815
760
|
var isJSON = contentTypes.includes('application/json');
|
816
|
-
|
817
761
|
if (isJSON) {
|
818
762
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
819
763
|
} else if (isURLEncoded) {
|
@@ -823,19 +767,18 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
823
767
|
}
|
824
768
|
}
|
825
769
|
}
|
826
|
-
|
827
770
|
var authNames = ['api_key', 'oauth2'];
|
828
771
|
var accepts = ['application/json'];
|
829
772
|
var returnType = _ListFollowersResponse["default"];
|
830
773
|
return this.apiClient.callApi('/persons/{id}/followers', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
831
774
|
}
|
775
|
+
|
832
776
|
/**
|
833
777
|
* List followers of a person
|
834
778
|
* Lists the followers of a person.
|
835
779
|
* @param {Number} id The ID of the person
|
836
780
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListFollowersResponse}
|
837
781
|
*/
|
838
|
-
|
839
782
|
}, {
|
840
783
|
key: "getPersonFollowers",
|
841
784
|
value: function getPersonFollowers(id) {
|
@@ -843,6 +786,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
843
786
|
return response_and_data;
|
844
787
|
});
|
845
788
|
}
|
789
|
+
|
846
790
|
/**
|
847
791
|
* List mail messages associated with a person
|
848
792
|
* Lists mail messages associated with a person.
|
@@ -852,17 +796,16 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
852
796
|
* @param {Number} opts.limit Items shown per page
|
853
797
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMailMessagesResponse} and HTTP response
|
854
798
|
*/
|
855
|
-
|
856
799
|
}, {
|
857
800
|
key: "getPersonMailMessagesWithHttpInfo",
|
858
801
|
value: function getPersonMailMessagesWithHttpInfo(id, opts) {
|
859
802
|
opts = opts || {};
|
860
|
-
var postBody = null;
|
803
|
+
var postBody = null;
|
861
804
|
|
805
|
+
// verify the required parameter 'id' is set
|
862
806
|
if (id === undefined || id === null) {
|
863
807
|
throw new Error("Missing the required parameter 'id' when calling getPersonMailMessages");
|
864
808
|
}
|
865
|
-
|
866
809
|
var pathParams = {
|
867
810
|
'id': id
|
868
811
|
};
|
@@ -876,7 +819,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
876
819
|
var contentTypes = [];
|
877
820
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
878
821
|
var isJSON = contentTypes.includes('application/json');
|
879
|
-
|
880
822
|
if (isJSON) {
|
881
823
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
882
824
|
} else if (isURLEncoded) {
|
@@ -886,12 +828,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
886
828
|
}
|
887
829
|
}
|
888
830
|
}
|
889
|
-
|
890
831
|
var authNames = ['api_key', 'oauth2'];
|
891
832
|
var accepts = ['application/json'];
|
892
833
|
var returnType = _ListMailMessagesResponse["default"];
|
893
834
|
return this.apiClient.callApi('/persons/{id}/mailMessages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
894
835
|
}
|
836
|
+
|
895
837
|
/**
|
896
838
|
* List mail messages associated with a person
|
897
839
|
* Lists mail messages associated with a person.
|
@@ -901,7 +843,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
901
843
|
* @param {Number} opts.limit Items shown per page
|
902
844
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMailMessagesResponse}
|
903
845
|
*/
|
904
|
-
|
905
846
|
}, {
|
906
847
|
key: "getPersonMailMessages",
|
907
848
|
value: function getPersonMailMessages(id, opts) {
|
@@ -909,6 +850,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
909
850
|
return response_and_data;
|
910
851
|
});
|
911
852
|
}
|
853
|
+
|
912
854
|
/**
|
913
855
|
* List products associated with a person
|
914
856
|
* Lists products associated with a person.
|
@@ -918,17 +860,16 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
918
860
|
* @param {Number} opts.limit Items shown per page
|
919
861
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPersonProductsResponse} and HTTP response
|
920
862
|
*/
|
921
|
-
|
922
863
|
}, {
|
923
864
|
key: "getPersonProductsWithHttpInfo",
|
924
865
|
value: function getPersonProductsWithHttpInfo(id, opts) {
|
925
866
|
opts = opts || {};
|
926
|
-
var postBody = null;
|
867
|
+
var postBody = null;
|
927
868
|
|
869
|
+
// verify the required parameter 'id' is set
|
928
870
|
if (id === undefined || id === null) {
|
929
871
|
throw new Error("Missing the required parameter 'id' when calling getPersonProducts");
|
930
872
|
}
|
931
|
-
|
932
873
|
var pathParams = {
|
933
874
|
'id': id
|
934
875
|
};
|
@@ -942,7 +883,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
942
883
|
var contentTypes = [];
|
943
884
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
944
885
|
var isJSON = contentTypes.includes('application/json');
|
945
|
-
|
946
886
|
if (isJSON) {
|
947
887
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
948
888
|
} else if (isURLEncoded) {
|
@@ -952,12 +892,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
952
892
|
}
|
953
893
|
}
|
954
894
|
}
|
955
|
-
|
956
895
|
var authNames = ['api_key'];
|
957
896
|
var accepts = ['application/json'];
|
958
897
|
var returnType = _ListPersonProductsResponse["default"];
|
959
898
|
return this.apiClient.callApi('/persons/{id}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
960
899
|
}
|
900
|
+
|
961
901
|
/**
|
962
902
|
* List products associated with a person
|
963
903
|
* Lists products associated with a person.
|
@@ -967,7 +907,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
967
907
|
* @param {Number} opts.limit Items shown per page
|
968
908
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPersonProductsResponse}
|
969
909
|
*/
|
970
|
-
|
971
910
|
}, {
|
972
911
|
key: "getPersonProducts",
|
973
912
|
value: function getPersonProducts(id, opts) {
|
@@ -975,6 +914,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
975
914
|
return response_and_data;
|
976
915
|
});
|
977
916
|
}
|
917
|
+
|
978
918
|
/**
|
979
919
|
* List updates about a person
|
980
920
|
* Lists updates about a person.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint's response will also include updates for the `marketing_status` field.
|
@@ -986,17 +926,16 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
986
926
|
* @param {String} opts.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)
|
987
927
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PersonFlowResponse} and HTTP response
|
988
928
|
*/
|
989
|
-
|
990
929
|
}, {
|
991
930
|
key: "getPersonUpdatesWithHttpInfo",
|
992
931
|
value: function getPersonUpdatesWithHttpInfo(id, opts) {
|
993
932
|
opts = opts || {};
|
994
|
-
var postBody = null;
|
933
|
+
var postBody = null;
|
995
934
|
|
935
|
+
// verify the required parameter 'id' is set
|
996
936
|
if (id === undefined || id === null) {
|
997
937
|
throw new Error("Missing the required parameter 'id' when calling getPersonUpdates");
|
998
938
|
}
|
999
|
-
|
1000
939
|
var pathParams = {
|
1001
940
|
'id': id
|
1002
941
|
};
|
@@ -1012,7 +951,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1012
951
|
var contentTypes = [];
|
1013
952
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1014
953
|
var isJSON = contentTypes.includes('application/json');
|
1015
|
-
|
1016
954
|
if (isJSON) {
|
1017
955
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1018
956
|
} else if (isURLEncoded) {
|
@@ -1022,12 +960,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1022
960
|
}
|
1023
961
|
}
|
1024
962
|
}
|
1025
|
-
|
1026
963
|
var authNames = ['api_key', 'oauth2'];
|
1027
964
|
var accepts = ['application/json'];
|
1028
965
|
var returnType = _PersonFlowResponse["default"];
|
1029
966
|
return this.apiClient.callApi('/persons/{id}/flow', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1030
967
|
}
|
968
|
+
|
1031
969
|
/**
|
1032
970
|
* List updates about a person
|
1033
971
|
* Lists updates about a person.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint's response will also include updates for the `marketing_status` field.
|
@@ -1039,7 +977,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1039
977
|
* @param {String} opts.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)
|
1040
978
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PersonFlowResponse}
|
1041
979
|
*/
|
1042
|
-
|
1043
980
|
}, {
|
1044
981
|
key: "getPersonUpdates",
|
1045
982
|
value: function getPersonUpdates(id, opts) {
|
@@ -1047,23 +984,23 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1047
984
|
return response_and_data;
|
1048
985
|
});
|
1049
986
|
}
|
987
|
+
|
1050
988
|
/**
|
1051
989
|
* List permitted users
|
1052
990
|
* List users permitted to access a person.
|
1053
991
|
* @param {Number} id The ID of the person
|
1054
992
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPermittedUsersResponse1} and HTTP response
|
1055
993
|
*/
|
1056
|
-
|
1057
994
|
}, {
|
1058
995
|
key: "getPersonUsersWithHttpInfo",
|
1059
996
|
value: function getPersonUsersWithHttpInfo(id) {
|
1060
997
|
var opts = {};
|
1061
|
-
var postBody = null;
|
998
|
+
var postBody = null;
|
1062
999
|
|
1000
|
+
// verify the required parameter 'id' is set
|
1063
1001
|
if (id === undefined || id === null) {
|
1064
1002
|
throw new Error("Missing the required parameter 'id' when calling getPersonUsers");
|
1065
1003
|
}
|
1066
|
-
|
1067
1004
|
var pathParams = {
|
1068
1005
|
'id': id
|
1069
1006
|
};
|
@@ -1074,7 +1011,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1074
1011
|
var contentTypes = [];
|
1075
1012
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1076
1013
|
var isJSON = contentTypes.includes('application/json');
|
1077
|
-
|
1078
1014
|
if (isJSON) {
|
1079
1015
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1080
1016
|
} else if (isURLEncoded) {
|
@@ -1084,19 +1020,18 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1084
1020
|
}
|
1085
1021
|
}
|
1086
1022
|
}
|
1087
|
-
|
1088
1023
|
var authNames = ['api_key'];
|
1089
1024
|
var accepts = ['application/json'];
|
1090
1025
|
var returnType = _ListPermittedUsersResponse["default"];
|
1091
1026
|
return this.apiClient.callApi('/persons/{id}/permittedUsers', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1092
1027
|
}
|
1028
|
+
|
1093
1029
|
/**
|
1094
1030
|
* List permitted users
|
1095
1031
|
* List users permitted to access a person.
|
1096
1032
|
* @param {Number} id The ID of the person
|
1097
1033
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPermittedUsersResponse1}
|
1098
1034
|
*/
|
1099
|
-
|
1100
1035
|
}, {
|
1101
1036
|
key: "getPersonUsers",
|
1102
1037
|
value: function getPersonUsers(id) {
|
@@ -1104,6 +1039,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1104
1039
|
return response_and_data;
|
1105
1040
|
});
|
1106
1041
|
}
|
1042
|
+
|
1107
1043
|
/**
|
1108
1044
|
* Get all persons
|
1109
1045
|
* Returns all persons.
|
@@ -1116,7 +1052,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1116
1052
|
* @param {String} opts.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).
|
1117
1053
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAllPersonsResponse} and HTTP response
|
1118
1054
|
*/
|
1119
|
-
|
1120
1055
|
}, {
|
1121
1056
|
key: "getPersonsWithHttpInfo",
|
1122
1057
|
value: function getPersonsWithHttpInfo(opts) {
|
@@ -1137,7 +1072,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1137
1072
|
var contentTypes = [];
|
1138
1073
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1139
1074
|
var isJSON = contentTypes.includes('application/json');
|
1140
|
-
|
1141
1075
|
if (isJSON) {
|
1142
1076
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1143
1077
|
} else if (isURLEncoded) {
|
@@ -1147,12 +1081,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1147
1081
|
}
|
1148
1082
|
}
|
1149
1083
|
}
|
1150
|
-
|
1151
1084
|
var authNames = ['api_key', 'oauth2'];
|
1152
1085
|
var accepts = ['application/json'];
|
1153
1086
|
var returnType = _GetAllPersonsResponse["default"];
|
1154
1087
|
return this.apiClient.callApi('/persons', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1155
1088
|
}
|
1089
|
+
|
1156
1090
|
/**
|
1157
1091
|
* Get all persons
|
1158
1092
|
* Returns all persons.
|
@@ -1165,7 +1099,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1165
1099
|
* @param {String} opts.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).
|
1166
1100
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAllPersonsResponse}
|
1167
1101
|
*/
|
1168
|
-
|
1169
1102
|
}, {
|
1170
1103
|
key: "getPersons",
|
1171
1104
|
value: function getPersons(opts) {
|
@@ -1173,6 +1106,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1173
1106
|
return response_and_data;
|
1174
1107
|
});
|
1175
1108
|
}
|
1109
|
+
|
1176
1110
|
/**
|
1177
1111
|
* Merge two persons
|
1178
1112
|
* Merges a person with another person. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/merging-two-persons\" target=\"_blank\" rel=\"noopener noreferrer\">merging two persons</a>.
|
@@ -1181,21 +1115,19 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1181
1115
|
* @param {module:model/MergePersonsRequest} opts.mergePersonsRequest
|
1182
1116
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MergePersonsResponse} and HTTP response
|
1183
1117
|
*/
|
1184
|
-
|
1185
1118
|
}, {
|
1186
1119
|
key: "mergePersonsWithHttpInfo",
|
1187
1120
|
value: function mergePersonsWithHttpInfo(id, opts) {
|
1188
1121
|
opts = opts || {};
|
1189
|
-
var postBody = opts['mergePersonsRequest'];
|
1122
|
+
var postBody = opts['mergePersonsRequest'];
|
1190
1123
|
|
1124
|
+
// verify the required parameter 'id' is set
|
1191
1125
|
if (id === undefined || id === null) {
|
1192
1126
|
throw new Error("Missing the required parameter 'id' when calling mergePersons");
|
1193
1127
|
}
|
1194
|
-
|
1195
1128
|
if (opts['merge_with_id'] === undefined || opts['merge_with_id'] === null) {
|
1196
1129
|
throw new Error("Missing the required parameter 'merge_with_id' when calling mergePersons");
|
1197
1130
|
}
|
1198
|
-
|
1199
1131
|
var pathParams = {
|
1200
1132
|
'id': id
|
1201
1133
|
};
|
@@ -1206,7 +1138,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1206
1138
|
var contentTypes = ['application/json'];
|
1207
1139
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1208
1140
|
var isJSON = contentTypes.includes('application/json');
|
1209
|
-
|
1210
1141
|
if (isJSON) {
|
1211
1142
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1212
1143
|
} else if (isURLEncoded) {
|
@@ -1216,12 +1147,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1216
1147
|
}
|
1217
1148
|
}
|
1218
1149
|
}
|
1219
|
-
|
1220
1150
|
var authNames = ['api_key', 'oauth2'];
|
1221
1151
|
var accepts = ['application/json'];
|
1222
1152
|
var returnType = _MergePersonsResponse["default"];
|
1223
1153
|
return this.apiClient.callApi('/persons/{id}/merge', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1224
1154
|
}
|
1155
|
+
|
1225
1156
|
/**
|
1226
1157
|
* Merge two persons
|
1227
1158
|
* Merges a person with another person. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/merging-two-persons\" target=\"_blank\" rel=\"noopener noreferrer\">merging two persons</a>.
|
@@ -1230,7 +1161,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1230
1161
|
* @param {module:model/MergePersonsRequest} opts.mergePersonsRequest
|
1231
1162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MergePersonsResponse}
|
1232
1163
|
*/
|
1233
|
-
|
1234
1164
|
}, {
|
1235
1165
|
key: "mergePersons",
|
1236
1166
|
value: function mergePersons(id, opts) {
|
@@ -1238,10 +1168,11 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1238
1168
|
return response_and_data;
|
1239
1169
|
});
|
1240
1170
|
}
|
1171
|
+
|
1241
1172
|
/**
|
1242
1173
|
* Search persons
|
1243
1174
|
* Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found persons can be filtered by organization ID.
|
1244
|
-
* @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`).
|
1175
|
+
* @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.
|
1245
1176
|
* @param {Object} opts Optional parameters
|
1246
1177
|
* @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
1247
1178
|
* @param {module:model/Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
@@ -1251,17 +1182,16 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1251
1182
|
* @param {Number} opts.limit Items shown per page
|
1252
1183
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PersonSearchResponse} and HTTP response
|
1253
1184
|
*/
|
1254
|
-
|
1255
1185
|
}, {
|
1256
1186
|
key: "searchPersonsWithHttpInfo",
|
1257
1187
|
value: function searchPersonsWithHttpInfo(term, opts) {
|
1258
1188
|
opts = opts || {};
|
1259
|
-
var postBody = null;
|
1189
|
+
var postBody = null;
|
1260
1190
|
|
1191
|
+
// verify the required parameter 'term' is set
|
1261
1192
|
if (term === undefined || term === null) {
|
1262
1193
|
throw new Error("Missing the required parameter 'term' when calling searchPersons");
|
1263
1194
|
}
|
1264
|
-
|
1265
1195
|
var pathParams = {};
|
1266
1196
|
var queryParams = {
|
1267
1197
|
'term': term,
|
@@ -1278,7 +1208,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1278
1208
|
var contentTypes = [];
|
1279
1209
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1280
1210
|
var isJSON = contentTypes.includes('application/json');
|
1281
|
-
|
1282
1211
|
if (isJSON) {
|
1283
1212
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1284
1213
|
} else if (isURLEncoded) {
|
@@ -1288,16 +1217,16 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1288
1217
|
}
|
1289
1218
|
}
|
1290
1219
|
}
|
1291
|
-
|
1292
1220
|
var authNames = ['api_key', 'oauth2'];
|
1293
1221
|
var accepts = ['application/json'];
|
1294
1222
|
var returnType = _PersonSearchResponse["default"];
|
1295
1223
|
return this.apiClient.callApi('/persons/search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1296
1224
|
}
|
1225
|
+
|
1297
1226
|
/**
|
1298
1227
|
* Search persons
|
1299
1228
|
* Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found persons can be filtered by organization ID.
|
1300
|
-
* @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`).
|
1229
|
+
* @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.
|
1301
1230
|
* @param {Object} opts Optional parameters
|
1302
1231
|
* @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
1303
1232
|
* @param {module:model/Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
@@ -1307,7 +1236,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1307
1236
|
* @param {Number} opts.limit Items shown per page
|
1308
1237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PersonSearchResponse}
|
1309
1238
|
*/
|
1310
|
-
|
1311
1239
|
}, {
|
1312
1240
|
key: "searchPersons",
|
1313
1241
|
value: function searchPersons(term, opts) {
|
@@ -1315,6 +1243,7 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1315
1243
|
return response_and_data;
|
1316
1244
|
});
|
1317
1245
|
}
|
1246
|
+
|
1318
1247
|
/**
|
1319
1248
|
* Update a person
|
1320
1249
|
* Updates the properties of a person. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/updating-a-person\" target=\"_blank\" rel=\"noopener noreferrer\">updating a person</a>.<br>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.
|
@@ -1323,17 +1252,16 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1323
1252
|
* @param {module:model/UpdatePerson} opts.updatePerson
|
1324
1253
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePersonResponse} and HTTP response
|
1325
1254
|
*/
|
1326
|
-
|
1327
1255
|
}, {
|
1328
1256
|
key: "updatePersonWithHttpInfo",
|
1329
1257
|
value: function updatePersonWithHttpInfo(id, opts) {
|
1330
1258
|
opts = opts || {};
|
1331
|
-
var postBody = opts['updatePerson'];
|
1259
|
+
var postBody = opts['updatePerson'];
|
1332
1260
|
|
1261
|
+
// verify the required parameter 'id' is set
|
1333
1262
|
if (id === undefined || id === null) {
|
1334
1263
|
throw new Error("Missing the required parameter 'id' when calling updatePerson");
|
1335
1264
|
}
|
1336
|
-
|
1337
1265
|
var pathParams = {
|
1338
1266
|
'id': id
|
1339
1267
|
};
|
@@ -1344,7 +1272,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1344
1272
|
var contentTypes = ['application/json'];
|
1345
1273
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1346
1274
|
var isJSON = contentTypes.includes('application/json');
|
1347
|
-
|
1348
1275
|
if (isJSON) {
|
1349
1276
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1350
1277
|
} else if (isURLEncoded) {
|
@@ -1354,12 +1281,12 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1354
1281
|
}
|
1355
1282
|
}
|
1356
1283
|
}
|
1357
|
-
|
1358
1284
|
var authNames = ['api_key', 'oauth2'];
|
1359
1285
|
var accepts = ['application/json'];
|
1360
1286
|
var returnType = _UpdatePersonResponse["default"];
|
1361
1287
|
return this.apiClient.callApi('/persons/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1362
1288
|
}
|
1289
|
+
|
1363
1290
|
/**
|
1364
1291
|
* Update a person
|
1365
1292
|
* Updates the properties of a person. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/updating-a-person\" target=\"_blank\" rel=\"noopener noreferrer\">updating a person</a>.<br>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.
|
@@ -1368,7 +1295,6 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1368
1295
|
* @param {module:model/UpdatePerson} opts.updatePerson
|
1369
1296
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePersonResponse}
|
1370
1297
|
*/
|
1371
|
-
|
1372
1298
|
}, {
|
1373
1299
|
key: "updatePerson",
|
1374
1300
|
value: function updatePerson(id, opts) {
|
@@ -1379,5 +1305,4 @@ var PersonsApi = /*#__PURE__*/function () {
|
|
1379
1305
|
}]);
|
1380
1306
|
return PersonsApi;
|
1381
1307
|
}();
|
1382
|
-
|
1383
1308
|
exports["default"] = PersonsApi;
|