pipedrive 17.5.4 → 18.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -1
- 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 +28 -12
package/dist/api/DealsApi.js
CHANGED
@@ -1,92 +1,50 @@
|
|
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 _AddDealFollowerRequest = _interopRequireDefault(require("../model/AddDealFollowerRequest"));
|
19
|
-
|
20
13
|
var _AddDealParticipantRequest = _interopRequireDefault(require("../model/AddDealParticipantRequest"));
|
21
|
-
|
22
14
|
var _AddedDealFollower = _interopRequireDefault(require("../model/AddedDealFollower"));
|
23
|
-
|
24
15
|
var _BasicDealProduct = _interopRequireDefault(require("../model/BasicDealProduct"));
|
25
|
-
|
26
16
|
var _DealFlowResponse = _interopRequireDefault(require("../model/DealFlowResponse"));
|
27
|
-
|
28
17
|
var _DealListActivitiesResponse = _interopRequireDefault(require("../model/DealListActivitiesResponse"));
|
29
|
-
|
30
18
|
var _DealParticipants = _interopRequireDefault(require("../model/DealParticipants"));
|
31
|
-
|
32
19
|
var _DealSearchResponse = _interopRequireDefault(require("../model/DealSearchResponse"));
|
33
|
-
|
34
20
|
var _DeleteDeal = _interopRequireDefault(require("../model/DeleteDeal"));
|
35
|
-
|
36
21
|
var _DeleteDealFollower = _interopRequireDefault(require("../model/DeleteDealFollower"));
|
37
|
-
|
38
22
|
var _DeleteDealParticipant = _interopRequireDefault(require("../model/DeleteDealParticipant"));
|
39
|
-
|
40
23
|
var _DeleteDealProduct = _interopRequireDefault(require("../model/DeleteDealProduct"));
|
41
|
-
|
42
24
|
var _DeleteMultipleDeals = _interopRequireDefault(require("../model/DeleteMultipleDeals"));
|
43
|
-
|
44
25
|
var _GetAddProductAttachementDetails = _interopRequireDefault(require("../model/GetAddProductAttachementDetails"));
|
45
|
-
|
46
26
|
var _GetAddedDeal = _interopRequireDefault(require("../model/GetAddedDeal"));
|
47
|
-
|
48
27
|
var _GetDeal = _interopRequireDefault(require("../model/GetDeal"));
|
49
|
-
|
50
28
|
var _GetDeals = _interopRequireDefault(require("../model/GetDeals"));
|
51
|
-
|
52
29
|
var _GetDealsSummary = _interopRequireDefault(require("../model/GetDealsSummary"));
|
53
|
-
|
54
30
|
var _GetDealsTimeline = _interopRequireDefault(require("../model/GetDealsTimeline"));
|
55
|
-
|
56
31
|
var _GetDuplicatedDeal = _interopRequireDefault(require("../model/GetDuplicatedDeal"));
|
57
|
-
|
58
32
|
var _GetMergedDeal = _interopRequireDefault(require("../model/GetMergedDeal"));
|
59
|
-
|
60
33
|
var _GetProductAttachementDetails = _interopRequireDefault(require("../model/GetProductAttachementDetails"));
|
61
|
-
|
62
34
|
var _ListFilesResponse = _interopRequireDefault(require("../model/ListFilesResponse"));
|
63
|
-
|
64
35
|
var _ListFollowersResponse = _interopRequireDefault(require("../model/ListFollowersResponse"));
|
65
|
-
|
66
36
|
var _ListMailMessagesResponse = _interopRequireDefault(require("../model/ListMailMessagesResponse"));
|
67
|
-
|
68
37
|
var _ListPermittedUsersResponse = _interopRequireDefault(require("../model/ListPermittedUsersResponse"));
|
69
|
-
|
70
38
|
var _ListPersonsResponse = _interopRequireDefault(require("../model/ListPersonsResponse"));
|
71
|
-
|
72
39
|
var _ListProductsResponse = _interopRequireDefault(require("../model/ListProductsResponse"));
|
73
|
-
|
74
40
|
var _MergeDealsRequest = _interopRequireDefault(require("../model/MergeDealsRequest"));
|
75
|
-
|
76
41
|
var _NewDeal = _interopRequireDefault(require("../model/NewDeal"));
|
77
|
-
|
78
42
|
var _NewDealProduct = _interopRequireDefault(require("../model/NewDealProduct"));
|
79
|
-
|
80
43
|
var _NumberBoolean = _interopRequireDefault(require("../model/NumberBoolean"));
|
81
|
-
|
82
44
|
var _PostDealParticipants = _interopRequireDefault(require("../model/PostDealParticipants"));
|
83
|
-
|
84
45
|
var _UpdateDealRequest = _interopRequireDefault(require("../model/UpdateDealRequest"));
|
85
|
-
|
86
46
|
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; }
|
87
|
-
|
88
47
|
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; }
|
89
|
-
|
90
48
|
/**
|
91
49
|
* Deals service.
|
92
50
|
* @module api/DealsApi
|
@@ -102,8 +60,9 @@ var DealsApi = /*#__PURE__*/function () {
|
|
102
60
|
*/
|
103
61
|
function DealsApi(apiClient) {
|
104
62
|
(0, _classCallCheck2["default"])(this, DealsApi);
|
105
|
-
this.apiClient = apiClient
|
63
|
+
this.apiClient = apiClient;
|
106
64
|
}
|
65
|
+
|
107
66
|
/**
|
108
67
|
* Add a deal
|
109
68
|
* Adds a new deal. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/creating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">adding a deal</a>.
|
@@ -111,8 +70,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
111
70
|
* @param {module:model/NewDeal} opts.newDeal
|
112
71
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAddedDeal} and HTTP response
|
113
72
|
*/
|
114
|
-
|
115
|
-
|
116
73
|
(0, _createClass2["default"])(DealsApi, [{
|
117
74
|
key: "addDealWithHttpInfo",
|
118
75
|
value: function addDealWithHttpInfo(opts) {
|
@@ -126,7 +83,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
126
83
|
var contentTypes = ['application/json'];
|
127
84
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
128
85
|
var isJSON = contentTypes.includes('application/json');
|
129
|
-
|
130
86
|
if (isJSON) {
|
131
87
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
132
88
|
} else if (isURLEncoded) {
|
@@ -136,12 +92,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
136
92
|
}
|
137
93
|
}
|
138
94
|
}
|
139
|
-
|
140
95
|
var authNames = ['api_key', 'oauth2'];
|
141
96
|
var accepts = ['application/json'];
|
142
97
|
var returnType = _GetAddedDeal["default"];
|
143
98
|
return this.apiClient.callApi('/deals', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
144
99
|
}
|
100
|
+
|
145
101
|
/**
|
146
102
|
* Add a deal
|
147
103
|
* Adds a new deal. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/creating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">adding a deal</a>.
|
@@ -149,7 +105,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
149
105
|
* @param {module:model/NewDeal} opts.newDeal
|
150
106
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAddedDeal}
|
151
107
|
*/
|
152
|
-
|
153
108
|
}, {
|
154
109
|
key: "addDeal",
|
155
110
|
value: function addDeal(opts) {
|
@@ -157,6 +112,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
157
112
|
return response_and_data;
|
158
113
|
});
|
159
114
|
}
|
115
|
+
|
160
116
|
/**
|
161
117
|
* Add a follower to a deal
|
162
118
|
* Adds a follower to a deal.
|
@@ -165,21 +121,19 @@ var DealsApi = /*#__PURE__*/function () {
|
|
165
121
|
* @param {module:model/AddDealFollowerRequest} opts.addDealFollowerRequest
|
166
122
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddedDealFollower} and HTTP response
|
167
123
|
*/
|
168
|
-
|
169
124
|
}, {
|
170
125
|
key: "addDealFollowerWithHttpInfo",
|
171
126
|
value: function addDealFollowerWithHttpInfo(id, opts) {
|
172
127
|
opts = opts || {};
|
173
|
-
var postBody = opts['addDealFollowerRequest'];
|
128
|
+
var postBody = opts['addDealFollowerRequest'];
|
174
129
|
|
130
|
+
// verify the required parameter 'id' is set
|
175
131
|
if (id === undefined || id === null) {
|
176
132
|
throw new Error("Missing the required parameter 'id' when calling addDealFollower");
|
177
133
|
}
|
178
|
-
|
179
134
|
if (opts['user_id'] === undefined || opts['user_id'] === null) {
|
180
135
|
throw new Error("Missing the required parameter 'user_id' when calling addDealFollower");
|
181
136
|
}
|
182
|
-
|
183
137
|
var pathParams = {
|
184
138
|
'id': id
|
185
139
|
};
|
@@ -190,7 +144,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
190
144
|
var contentTypes = ['application/json'];
|
191
145
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
192
146
|
var isJSON = contentTypes.includes('application/json');
|
193
|
-
|
194
147
|
if (isJSON) {
|
195
148
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
196
149
|
} else if (isURLEncoded) {
|
@@ -200,12 +153,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
200
153
|
}
|
201
154
|
}
|
202
155
|
}
|
203
|
-
|
204
156
|
var authNames = ['api_key', 'oauth2'];
|
205
157
|
var accepts = ['application/json'];
|
206
158
|
var returnType = _AddedDealFollower["default"];
|
207
159
|
return this.apiClient.callApi('/deals/{id}/followers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
208
160
|
}
|
161
|
+
|
209
162
|
/**
|
210
163
|
* Add a follower to a deal
|
211
164
|
* Adds a follower to a deal.
|
@@ -214,7 +167,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
214
167
|
* @param {module:model/AddDealFollowerRequest} opts.addDealFollowerRequest
|
215
168
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddedDealFollower}
|
216
169
|
*/
|
217
|
-
|
218
170
|
}, {
|
219
171
|
key: "addDealFollower",
|
220
172
|
value: function addDealFollower(id, opts) {
|
@@ -222,6 +174,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
222
174
|
return response_and_data;
|
223
175
|
});
|
224
176
|
}
|
177
|
+
|
225
178
|
/**
|
226
179
|
* Add a participant to a deal
|
227
180
|
* Adds a participant to a deal.
|
@@ -230,21 +183,19 @@ var DealsApi = /*#__PURE__*/function () {
|
|
230
183
|
* @param {module:model/AddDealParticipantRequest} opts.addDealParticipantRequest
|
231
184
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostDealParticipants} and HTTP response
|
232
185
|
*/
|
233
|
-
|
234
186
|
}, {
|
235
187
|
key: "addDealParticipantWithHttpInfo",
|
236
188
|
value: function addDealParticipantWithHttpInfo(id, opts) {
|
237
189
|
opts = opts || {};
|
238
|
-
var postBody = opts['addDealParticipantRequest'];
|
190
|
+
var postBody = opts['addDealParticipantRequest'];
|
239
191
|
|
192
|
+
// verify the required parameter 'id' is set
|
240
193
|
if (id === undefined || id === null) {
|
241
194
|
throw new Error("Missing the required parameter 'id' when calling addDealParticipant");
|
242
195
|
}
|
243
|
-
|
244
196
|
if (opts['person_id'] === undefined || opts['person_id'] === null) {
|
245
197
|
throw new Error("Missing the required parameter 'person_id' when calling addDealParticipant");
|
246
198
|
}
|
247
|
-
|
248
199
|
var pathParams = {
|
249
200
|
'id': id
|
250
201
|
};
|
@@ -255,7 +206,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
255
206
|
var contentTypes = ['application/json'];
|
256
207
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
257
208
|
var isJSON = contentTypes.includes('application/json');
|
258
|
-
|
259
209
|
if (isJSON) {
|
260
210
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
261
211
|
} else if (isURLEncoded) {
|
@@ -265,12 +215,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
265
215
|
}
|
266
216
|
}
|
267
217
|
}
|
268
|
-
|
269
218
|
var authNames = ['api_key', 'oauth2'];
|
270
219
|
var accepts = ['application/json'];
|
271
220
|
var returnType = _PostDealParticipants["default"];
|
272
221
|
return this.apiClient.callApi('/deals/{id}/participants', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
273
222
|
}
|
223
|
+
|
274
224
|
/**
|
275
225
|
* Add a participant to a deal
|
276
226
|
* Adds a participant to a deal.
|
@@ -279,7 +229,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
279
229
|
* @param {module:model/AddDealParticipantRequest} opts.addDealParticipantRequest
|
280
230
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostDealParticipants}
|
281
231
|
*/
|
282
|
-
|
283
232
|
}, {
|
284
233
|
key: "addDealParticipant",
|
285
234
|
value: function addDealParticipant(id, opts) {
|
@@ -287,25 +236,25 @@ var DealsApi = /*#__PURE__*/function () {
|
|
287
236
|
return response_and_data;
|
288
237
|
});
|
289
238
|
}
|
239
|
+
|
290
240
|
/**
|
291
|
-
* Add a product to
|
292
|
-
* Adds a product to
|
241
|
+
* Add a product to a deal
|
242
|
+
* Adds a product to a deal, creating a new item called a deal-product.
|
293
243
|
* @param {Number} id The ID of the deal
|
294
244
|
* @param {Object} opts Optional parameters
|
295
245
|
* @param {module:model/NewDealProduct} opts.newDealProduct
|
296
246
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAddProductAttachementDetails} and HTTP response
|
297
247
|
*/
|
298
|
-
|
299
248
|
}, {
|
300
249
|
key: "addDealProductWithHttpInfo",
|
301
250
|
value: function addDealProductWithHttpInfo(id, opts) {
|
302
251
|
opts = opts || {};
|
303
|
-
var postBody = opts['newDealProduct'];
|
252
|
+
var postBody = opts['newDealProduct'];
|
304
253
|
|
254
|
+
// verify the required parameter 'id' is set
|
305
255
|
if (id === undefined || id === null) {
|
306
256
|
throw new Error("Missing the required parameter 'id' when calling addDealProduct");
|
307
257
|
}
|
308
|
-
|
309
258
|
var pathParams = {
|
310
259
|
'id': id
|
311
260
|
};
|
@@ -316,7 +265,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
316
265
|
var contentTypes = ['application/json'];
|
317
266
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
318
267
|
var isJSON = contentTypes.includes('application/json');
|
319
|
-
|
320
268
|
if (isJSON) {
|
321
269
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
322
270
|
} else if (isURLEncoded) {
|
@@ -326,21 +274,20 @@ var DealsApi = /*#__PURE__*/function () {
|
|
326
274
|
}
|
327
275
|
}
|
328
276
|
}
|
329
|
-
|
330
277
|
var authNames = ['api_key', 'oauth2'];
|
331
278
|
var accepts = ['application/json'];
|
332
279
|
var returnType = _GetAddProductAttachementDetails["default"];
|
333
280
|
return this.apiClient.callApi('/deals/{id}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
334
281
|
}
|
282
|
+
|
335
283
|
/**
|
336
|
-
* Add a product to
|
337
|
-
* Adds a product to
|
284
|
+
* Add a product to a deal
|
285
|
+
* Adds a product to a deal, creating a new item called a deal-product.
|
338
286
|
* @param {Number} id The ID of the deal
|
339
287
|
* @param {Object} opts Optional parameters
|
340
288
|
* @param {module:model/NewDealProduct} opts.newDealProduct
|
341
289
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAddProductAttachementDetails}
|
342
290
|
*/
|
343
|
-
|
344
291
|
}, {
|
345
292
|
key: "addDealProduct",
|
346
293
|
value: function addDealProduct(id, opts) {
|
@@ -348,23 +295,23 @@ var DealsApi = /*#__PURE__*/function () {
|
|
348
295
|
return response_and_data;
|
349
296
|
});
|
350
297
|
}
|
298
|
+
|
351
299
|
/**
|
352
300
|
* Delete a deal
|
353
301
|
* Marks a deal as deleted. After 30 days, the deal will be permanently deleted.
|
354
302
|
* @param {Number} id The ID of the deal
|
355
303
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDeal} and HTTP response
|
356
304
|
*/
|
357
|
-
|
358
305
|
}, {
|
359
306
|
key: "deleteDealWithHttpInfo",
|
360
307
|
value: function deleteDealWithHttpInfo(id) {
|
361
308
|
var opts = {};
|
362
|
-
var postBody = null;
|
309
|
+
var postBody = null;
|
363
310
|
|
311
|
+
// verify the required parameter 'id' is set
|
364
312
|
if (id === undefined || id === null) {
|
365
313
|
throw new Error("Missing the required parameter 'id' when calling deleteDeal");
|
366
314
|
}
|
367
|
-
|
368
315
|
var pathParams = {
|
369
316
|
'id': id
|
370
317
|
};
|
@@ -375,7 +322,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
375
322
|
var contentTypes = [];
|
376
323
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
377
324
|
var isJSON = contentTypes.includes('application/json');
|
378
|
-
|
379
325
|
if (isJSON) {
|
380
326
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
381
327
|
} else if (isURLEncoded) {
|
@@ -385,19 +331,18 @@ var DealsApi = /*#__PURE__*/function () {
|
|
385
331
|
}
|
386
332
|
}
|
387
333
|
}
|
388
|
-
|
389
334
|
var authNames = ['api_key', 'oauth2'];
|
390
335
|
var accepts = ['application/json'];
|
391
336
|
var returnType = _DeleteDeal["default"];
|
392
337
|
return this.apiClient.callApi('/deals/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
393
338
|
}
|
339
|
+
|
394
340
|
/**
|
395
341
|
* Delete a deal
|
396
342
|
* Marks a deal as deleted. After 30 days, the deal will be permanently deleted.
|
397
343
|
* @param {Number} id The ID of the deal
|
398
344
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDeal}
|
399
345
|
*/
|
400
|
-
|
401
346
|
}, {
|
402
347
|
key: "deleteDeal",
|
403
348
|
value: function deleteDeal(id) {
|
@@ -405,6 +350,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
405
350
|
return response_and_data;
|
406
351
|
});
|
407
352
|
}
|
353
|
+
|
408
354
|
/**
|
409
355
|
* Delete a follower from a deal
|
410
356
|
* Deletes a follower from a deal.
|
@@ -412,22 +358,21 @@ var DealsApi = /*#__PURE__*/function () {
|
|
412
358
|
* @param {Number} followerId The ID of the follower
|
413
359
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDealFollower} and HTTP response
|
414
360
|
*/
|
415
|
-
|
416
361
|
}, {
|
417
362
|
key: "deleteDealFollowerWithHttpInfo",
|
418
363
|
value: function deleteDealFollowerWithHttpInfo(id, followerId) {
|
419
364
|
var opts = {};
|
420
|
-
var postBody = null;
|
365
|
+
var postBody = null;
|
421
366
|
|
367
|
+
// verify the required parameter 'id' is set
|
422
368
|
if (id === undefined || id === null) {
|
423
369
|
throw new Error("Missing the required parameter 'id' when calling deleteDealFollower");
|
424
|
-
}
|
425
|
-
|
370
|
+
}
|
426
371
|
|
372
|
+
// verify the required parameter 'followerId' is set
|
427
373
|
if (followerId === undefined || followerId === null) {
|
428
374
|
throw new Error("Missing the required parameter 'followerId' when calling deleteDealFollower");
|
429
375
|
}
|
430
|
-
|
431
376
|
var pathParams = {
|
432
377
|
'id': id,
|
433
378
|
'follower_id': followerId
|
@@ -439,7 +384,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
439
384
|
var contentTypes = [];
|
440
385
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
441
386
|
var isJSON = contentTypes.includes('application/json');
|
442
|
-
|
443
387
|
if (isJSON) {
|
444
388
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
445
389
|
} else if (isURLEncoded) {
|
@@ -449,12 +393,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
449
393
|
}
|
450
394
|
}
|
451
395
|
}
|
452
|
-
|
453
396
|
var authNames = ['api_key', 'oauth2'];
|
454
397
|
var accepts = ['application/json'];
|
455
398
|
var returnType = _DeleteDealFollower["default"];
|
456
399
|
return this.apiClient.callApi('/deals/{id}/followers/{follower_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
457
400
|
}
|
401
|
+
|
458
402
|
/**
|
459
403
|
* Delete a follower from a deal
|
460
404
|
* Deletes a follower from a deal.
|
@@ -462,7 +406,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
462
406
|
* @param {Number} followerId The ID of the follower
|
463
407
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDealFollower}
|
464
408
|
*/
|
465
|
-
|
466
409
|
}, {
|
467
410
|
key: "deleteDealFollower",
|
468
411
|
value: function deleteDealFollower(id, followerId) {
|
@@ -470,6 +413,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
470
413
|
return response_and_data;
|
471
414
|
});
|
472
415
|
}
|
416
|
+
|
473
417
|
/**
|
474
418
|
* Delete a participant from a deal
|
475
419
|
* Deletes a participant from a deal.
|
@@ -477,22 +421,21 @@ var DealsApi = /*#__PURE__*/function () {
|
|
477
421
|
* @param {Number} dealParticipantId The ID of the participant of the deal
|
478
422
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDealParticipant} and HTTP response
|
479
423
|
*/
|
480
|
-
|
481
424
|
}, {
|
482
425
|
key: "deleteDealParticipantWithHttpInfo",
|
483
426
|
value: function deleteDealParticipantWithHttpInfo(id, dealParticipantId) {
|
484
427
|
var opts = {};
|
485
|
-
var postBody = null;
|
428
|
+
var postBody = null;
|
486
429
|
|
430
|
+
// verify the required parameter 'id' is set
|
487
431
|
if (id === undefined || id === null) {
|
488
432
|
throw new Error("Missing the required parameter 'id' when calling deleteDealParticipant");
|
489
|
-
}
|
490
|
-
|
433
|
+
}
|
491
434
|
|
435
|
+
// verify the required parameter 'dealParticipantId' is set
|
492
436
|
if (dealParticipantId === undefined || dealParticipantId === null) {
|
493
437
|
throw new Error("Missing the required parameter 'dealParticipantId' when calling deleteDealParticipant");
|
494
438
|
}
|
495
|
-
|
496
439
|
var pathParams = {
|
497
440
|
'id': id,
|
498
441
|
'deal_participant_id': dealParticipantId
|
@@ -504,7 +447,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
504
447
|
var contentTypes = [];
|
505
448
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
506
449
|
var isJSON = contentTypes.includes('application/json');
|
507
|
-
|
508
450
|
if (isJSON) {
|
509
451
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
510
452
|
} else if (isURLEncoded) {
|
@@ -514,12 +456,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
514
456
|
}
|
515
457
|
}
|
516
458
|
}
|
517
|
-
|
518
459
|
var authNames = ['api_key', 'oauth2'];
|
519
460
|
var accepts = ['application/json'];
|
520
461
|
var returnType = _DeleteDealParticipant["default"];
|
521
462
|
return this.apiClient.callApi('/deals/{id}/participants/{deal_participant_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
522
463
|
}
|
464
|
+
|
523
465
|
/**
|
524
466
|
* Delete a participant from a deal
|
525
467
|
* Deletes a participant from a deal.
|
@@ -527,7 +469,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
527
469
|
* @param {Number} dealParticipantId The ID of the participant of the deal
|
528
470
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDealParticipant}
|
529
471
|
*/
|
530
|
-
|
531
472
|
}, {
|
532
473
|
key: "deleteDealParticipant",
|
533
474
|
value: function deleteDealParticipant(id, dealParticipantId) {
|
@@ -535,6 +476,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
535
476
|
return response_and_data;
|
536
477
|
});
|
537
478
|
}
|
479
|
+
|
538
480
|
/**
|
539
481
|
* Delete an attached product from a deal
|
540
482
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
@@ -542,22 +484,21 @@ var DealsApi = /*#__PURE__*/function () {
|
|
542
484
|
* @param {Number} productAttachmentId The product attachment ID. This is returned as `product_attachment_id` after attaching a product to a deal or as id when listing the products attached to a deal.
|
543
485
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDealProduct} and HTTP response
|
544
486
|
*/
|
545
|
-
|
546
487
|
}, {
|
547
488
|
key: "deleteDealProductWithHttpInfo",
|
548
489
|
value: function deleteDealProductWithHttpInfo(id, productAttachmentId) {
|
549
490
|
var opts = {};
|
550
|
-
var postBody = null;
|
491
|
+
var postBody = null;
|
551
492
|
|
493
|
+
// verify the required parameter 'id' is set
|
552
494
|
if (id === undefined || id === null) {
|
553
495
|
throw new Error("Missing the required parameter 'id' when calling deleteDealProduct");
|
554
|
-
}
|
555
|
-
|
496
|
+
}
|
556
497
|
|
498
|
+
// verify the required parameter 'productAttachmentId' is set
|
557
499
|
if (productAttachmentId === undefined || productAttachmentId === null) {
|
558
500
|
throw new Error("Missing the required parameter 'productAttachmentId' when calling deleteDealProduct");
|
559
501
|
}
|
560
|
-
|
561
502
|
var pathParams = {
|
562
503
|
'id': id,
|
563
504
|
'product_attachment_id': productAttachmentId
|
@@ -569,7 +510,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
569
510
|
var contentTypes = [];
|
570
511
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
571
512
|
var isJSON = contentTypes.includes('application/json');
|
572
|
-
|
573
513
|
if (isJSON) {
|
574
514
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
575
515
|
} else if (isURLEncoded) {
|
@@ -579,12 +519,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
579
519
|
}
|
580
520
|
}
|
581
521
|
}
|
582
|
-
|
583
522
|
var authNames = ['api_key', 'oauth2'];
|
584
523
|
var accepts = ['application/json'];
|
585
524
|
var returnType = _DeleteDealProduct["default"];
|
586
525
|
return this.apiClient.callApi('/deals/{id}/products/{product_attachment_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
587
526
|
}
|
527
|
+
|
588
528
|
/**
|
589
529
|
* Delete an attached product from a deal
|
590
530
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
@@ -592,7 +532,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
592
532
|
* @param {Number} productAttachmentId The product attachment ID. This is returned as `product_attachment_id` after attaching a product to a deal or as id when listing the products attached to a deal.
|
593
533
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDealProduct}
|
594
534
|
*/
|
595
|
-
|
596
535
|
}, {
|
597
536
|
key: "deleteDealProduct",
|
598
537
|
value: function deleteDealProduct(id, productAttachmentId) {
|
@@ -600,23 +539,23 @@ var DealsApi = /*#__PURE__*/function () {
|
|
600
539
|
return response_and_data;
|
601
540
|
});
|
602
541
|
}
|
542
|
+
|
603
543
|
/**
|
604
544
|
* Delete multiple deals in bulk
|
605
545
|
* Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted.
|
606
546
|
* @param {String} ids The comma-separated IDs that will be deleted
|
607
547
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteMultipleDeals} and HTTP response
|
608
548
|
*/
|
609
|
-
|
610
549
|
}, {
|
611
550
|
key: "deleteDealsWithHttpInfo",
|
612
551
|
value: function deleteDealsWithHttpInfo(ids) {
|
613
552
|
var opts = {};
|
614
|
-
var postBody = null;
|
553
|
+
var postBody = null;
|
615
554
|
|
555
|
+
// verify the required parameter 'ids' is set
|
616
556
|
if (ids === undefined || ids === null) {
|
617
557
|
throw new Error("Missing the required parameter 'ids' when calling deleteDeals");
|
618
558
|
}
|
619
|
-
|
620
559
|
var pathParams = {};
|
621
560
|
var queryParams = {
|
622
561
|
'ids': ids
|
@@ -627,7 +566,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
627
566
|
var contentTypes = [];
|
628
567
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
629
568
|
var isJSON = contentTypes.includes('application/json');
|
630
|
-
|
631
569
|
if (isJSON) {
|
632
570
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
633
571
|
} else if (isURLEncoded) {
|
@@ -637,19 +575,18 @@ var DealsApi = /*#__PURE__*/function () {
|
|
637
575
|
}
|
638
576
|
}
|
639
577
|
}
|
640
|
-
|
641
578
|
var authNames = ['api_key', 'oauth2'];
|
642
579
|
var accepts = ['application/json'];
|
643
580
|
var returnType = _DeleteMultipleDeals["default"];
|
644
581
|
return this.apiClient.callApi('/deals', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
645
582
|
}
|
583
|
+
|
646
584
|
/**
|
647
585
|
* Delete multiple deals in bulk
|
648
586
|
* Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted.
|
649
587
|
* @param {String} ids The comma-separated IDs that will be deleted
|
650
588
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteMultipleDeals}
|
651
589
|
*/
|
652
|
-
|
653
590
|
}, {
|
654
591
|
key: "deleteDeals",
|
655
592
|
value: function deleteDeals(ids) {
|
@@ -657,23 +594,23 @@ var DealsApi = /*#__PURE__*/function () {
|
|
657
594
|
return response_and_data;
|
658
595
|
});
|
659
596
|
}
|
597
|
+
|
660
598
|
/**
|
661
599
|
* Duplicate deal
|
662
600
|
* Duplicates a deal.
|
663
601
|
* @param {Number} id The ID of the deal
|
664
602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDuplicatedDeal} and HTTP response
|
665
603
|
*/
|
666
|
-
|
667
604
|
}, {
|
668
605
|
key: "duplicateDealWithHttpInfo",
|
669
606
|
value: function duplicateDealWithHttpInfo(id) {
|
670
607
|
var opts = {};
|
671
|
-
var postBody = null;
|
608
|
+
var postBody = null;
|
672
609
|
|
610
|
+
// verify the required parameter 'id' is set
|
673
611
|
if (id === undefined || id === null) {
|
674
612
|
throw new Error("Missing the required parameter 'id' when calling duplicateDeal");
|
675
613
|
}
|
676
|
-
|
677
614
|
var pathParams = {
|
678
615
|
'id': id
|
679
616
|
};
|
@@ -684,7 +621,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
684
621
|
var contentTypes = [];
|
685
622
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
686
623
|
var isJSON = contentTypes.includes('application/json');
|
687
|
-
|
688
624
|
if (isJSON) {
|
689
625
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
690
626
|
} else if (isURLEncoded) {
|
@@ -694,19 +630,18 @@ var DealsApi = /*#__PURE__*/function () {
|
|
694
630
|
}
|
695
631
|
}
|
696
632
|
}
|
697
|
-
|
698
633
|
var authNames = ['api_key', 'oauth2'];
|
699
634
|
var accepts = ['application/json'];
|
700
635
|
var returnType = _GetDuplicatedDeal["default"];
|
701
636
|
return this.apiClient.callApi('/deals/{id}/duplicate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
702
637
|
}
|
638
|
+
|
703
639
|
/**
|
704
640
|
* Duplicate deal
|
705
641
|
* Duplicates a deal.
|
706
642
|
* @param {Number} id The ID of the deal
|
707
643
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDuplicatedDeal}
|
708
644
|
*/
|
709
|
-
|
710
645
|
}, {
|
711
646
|
key: "duplicateDeal",
|
712
647
|
value: function duplicateDeal(id) {
|
@@ -714,23 +649,23 @@ var DealsApi = /*#__PURE__*/function () {
|
|
714
649
|
return response_and_data;
|
715
650
|
});
|
716
651
|
}
|
652
|
+
|
717
653
|
/**
|
718
654
|
* Get details of a deal
|
719
655
|
* Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/getting-details-of-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">getting details of a deal</a>.
|
720
656
|
* @param {Number} id The ID of the deal
|
721
657
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeal} and HTTP response
|
722
658
|
*/
|
723
|
-
|
724
659
|
}, {
|
725
660
|
key: "getDealWithHttpInfo",
|
726
661
|
value: function getDealWithHttpInfo(id) {
|
727
662
|
var opts = {};
|
728
|
-
var postBody = null;
|
663
|
+
var postBody = null;
|
729
664
|
|
665
|
+
// verify the required parameter 'id' is set
|
730
666
|
if (id === undefined || id === null) {
|
731
667
|
throw new Error("Missing the required parameter 'id' when calling getDeal");
|
732
668
|
}
|
733
|
-
|
734
669
|
var pathParams = {
|
735
670
|
'id': id
|
736
671
|
};
|
@@ -741,7 +676,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
741
676
|
var contentTypes = [];
|
742
677
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
743
678
|
var isJSON = contentTypes.includes('application/json');
|
744
|
-
|
745
679
|
if (isJSON) {
|
746
680
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
747
681
|
} else if (isURLEncoded) {
|
@@ -751,19 +685,18 @@ var DealsApi = /*#__PURE__*/function () {
|
|
751
685
|
}
|
752
686
|
}
|
753
687
|
}
|
754
|
-
|
755
688
|
var authNames = ['api_key', 'oauth2'];
|
756
689
|
var accepts = ['application/json'];
|
757
690
|
var returnType = _GetDeal["default"];
|
758
691
|
return this.apiClient.callApi('/deals/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
759
692
|
}
|
693
|
+
|
760
694
|
/**
|
761
695
|
* Get details of a deal
|
762
696
|
* Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/getting-details-of-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">getting details of a deal</a>.
|
763
697
|
* @param {Number} id The ID of the deal
|
764
698
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeal}
|
765
699
|
*/
|
766
|
-
|
767
700
|
}, {
|
768
701
|
key: "getDeal",
|
769
702
|
value: function getDeal(id) {
|
@@ -771,6 +704,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
771
704
|
return response_and_data;
|
772
705
|
});
|
773
706
|
}
|
707
|
+
|
774
708
|
/**
|
775
709
|
* List activities associated with a deal
|
776
710
|
* Lists activities associated with a deal.
|
@@ -782,17 +716,16 @@ var DealsApi = /*#__PURE__*/function () {
|
|
782
716
|
* @param {String} opts.exclude A comma-separated string of activity IDs to exclude from result
|
783
717
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DealListActivitiesResponse} and HTTP response
|
784
718
|
*/
|
785
|
-
|
786
719
|
}, {
|
787
720
|
key: "getDealActivitiesWithHttpInfo",
|
788
721
|
value: function getDealActivitiesWithHttpInfo(id, opts) {
|
789
722
|
opts = opts || {};
|
790
|
-
var postBody = null;
|
723
|
+
var postBody = null;
|
791
724
|
|
725
|
+
// verify the required parameter 'id' is set
|
792
726
|
if (id === undefined || id === null) {
|
793
727
|
throw new Error("Missing the required parameter 'id' when calling getDealActivities");
|
794
728
|
}
|
795
|
-
|
796
729
|
var pathParams = {
|
797
730
|
'id': id
|
798
731
|
};
|
@@ -808,7 +741,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
808
741
|
var contentTypes = [];
|
809
742
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
810
743
|
var isJSON = contentTypes.includes('application/json');
|
811
|
-
|
812
744
|
if (isJSON) {
|
813
745
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
814
746
|
} else if (isURLEncoded) {
|
@@ -818,12 +750,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
818
750
|
}
|
819
751
|
}
|
820
752
|
}
|
821
|
-
|
822
753
|
var authNames = ['api_key', 'oauth2'];
|
823
754
|
var accepts = ['application/json'];
|
824
755
|
var returnType = _DealListActivitiesResponse["default"];
|
825
756
|
return this.apiClient.callApi('/deals/{id}/activities', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
826
757
|
}
|
758
|
+
|
827
759
|
/**
|
828
760
|
* List activities associated with a deal
|
829
761
|
* Lists activities associated with a deal.
|
@@ -835,7 +767,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
835
767
|
* @param {String} opts.exclude A comma-separated string of activity IDs to exclude from result
|
836
768
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DealListActivitiesResponse}
|
837
769
|
*/
|
838
|
-
|
839
770
|
}, {
|
840
771
|
key: "getDealActivities",
|
841
772
|
value: function getDealActivities(id, opts) {
|
@@ -843,6 +774,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
843
774
|
return response_and_data;
|
844
775
|
});
|
845
776
|
}
|
777
|
+
|
846
778
|
/**
|
847
779
|
* List files attached to a deal
|
848
780
|
* Lists files associated with a deal.
|
@@ -853,17 +785,16 @@ var DealsApi = /*#__PURE__*/function () {
|
|
853
785
|
* @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`.
|
854
786
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListFilesResponse} and HTTP response
|
855
787
|
*/
|
856
|
-
|
857
788
|
}, {
|
858
789
|
key: "getDealFilesWithHttpInfo",
|
859
790
|
value: function getDealFilesWithHttpInfo(id, opts) {
|
860
791
|
opts = opts || {};
|
861
|
-
var postBody = null;
|
792
|
+
var postBody = null;
|
862
793
|
|
794
|
+
// verify the required parameter 'id' is set
|
863
795
|
if (id === undefined || id === null) {
|
864
796
|
throw new Error("Missing the required parameter 'id' when calling getDealFiles");
|
865
797
|
}
|
866
|
-
|
867
798
|
var pathParams = {
|
868
799
|
'id': id
|
869
800
|
};
|
@@ -878,7 +809,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
878
809
|
var contentTypes = [];
|
879
810
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
880
811
|
var isJSON = contentTypes.includes('application/json');
|
881
|
-
|
882
812
|
if (isJSON) {
|
883
813
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
884
814
|
} else if (isURLEncoded) {
|
@@ -888,12 +818,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
888
818
|
}
|
889
819
|
}
|
890
820
|
}
|
891
|
-
|
892
821
|
var authNames = ['api_key', 'oauth2'];
|
893
822
|
var accepts = ['application/json'];
|
894
823
|
var returnType = _ListFilesResponse["default"];
|
895
824
|
return this.apiClient.callApi('/deals/{id}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
896
825
|
}
|
826
|
+
|
897
827
|
/**
|
898
828
|
* List files attached to a deal
|
899
829
|
* Lists files associated with a deal.
|
@@ -904,7 +834,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
904
834
|
* @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`.
|
905
835
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListFilesResponse}
|
906
836
|
*/
|
907
|
-
|
908
837
|
}, {
|
909
838
|
key: "getDealFiles",
|
910
839
|
value: function getDealFiles(id, opts) {
|
@@ -912,23 +841,23 @@ var DealsApi = /*#__PURE__*/function () {
|
|
912
841
|
return response_and_data;
|
913
842
|
});
|
914
843
|
}
|
844
|
+
|
915
845
|
/**
|
916
846
|
* List followers of a deal
|
917
847
|
* Lists the followers of a deal.
|
918
848
|
* @param {Number} id The ID of the deal
|
919
849
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListFollowersResponse} and HTTP response
|
920
850
|
*/
|
921
|
-
|
922
851
|
}, {
|
923
852
|
key: "getDealFollowersWithHttpInfo",
|
924
853
|
value: function getDealFollowersWithHttpInfo(id) {
|
925
854
|
var opts = {};
|
926
|
-
var postBody = null;
|
855
|
+
var postBody = null;
|
927
856
|
|
857
|
+
// verify the required parameter 'id' is set
|
928
858
|
if (id === undefined || id === null) {
|
929
859
|
throw new Error("Missing the required parameter 'id' when calling getDealFollowers");
|
930
860
|
}
|
931
|
-
|
932
861
|
var pathParams = {
|
933
862
|
'id': id
|
934
863
|
};
|
@@ -939,7 +868,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
939
868
|
var contentTypes = [];
|
940
869
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
941
870
|
var isJSON = contentTypes.includes('application/json');
|
942
|
-
|
943
871
|
if (isJSON) {
|
944
872
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
945
873
|
} else if (isURLEncoded) {
|
@@ -949,19 +877,18 @@ var DealsApi = /*#__PURE__*/function () {
|
|
949
877
|
}
|
950
878
|
}
|
951
879
|
}
|
952
|
-
|
953
880
|
var authNames = ['api_key', 'oauth2'];
|
954
881
|
var accepts = ['application/json'];
|
955
882
|
var returnType = _ListFollowersResponse["default"];
|
956
883
|
return this.apiClient.callApi('/deals/{id}/followers', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
957
884
|
}
|
885
|
+
|
958
886
|
/**
|
959
887
|
* List followers of a deal
|
960
888
|
* Lists the followers of a deal.
|
961
889
|
* @param {Number} id The ID of the deal
|
962
890
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListFollowersResponse}
|
963
891
|
*/
|
964
|
-
|
965
892
|
}, {
|
966
893
|
key: "getDealFollowers",
|
967
894
|
value: function getDealFollowers(id) {
|
@@ -969,6 +896,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
969
896
|
return response_and_data;
|
970
897
|
});
|
971
898
|
}
|
899
|
+
|
972
900
|
/**
|
973
901
|
* List mail messages associated with a deal
|
974
902
|
* Lists mail messages associated with a deal.
|
@@ -978,17 +906,16 @@ var DealsApi = /*#__PURE__*/function () {
|
|
978
906
|
* @param {Number} opts.limit Items shown per page
|
979
907
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMailMessagesResponse} and HTTP response
|
980
908
|
*/
|
981
|
-
|
982
909
|
}, {
|
983
910
|
key: "getDealMailMessagesWithHttpInfo",
|
984
911
|
value: function getDealMailMessagesWithHttpInfo(id, opts) {
|
985
912
|
opts = opts || {};
|
986
|
-
var postBody = null;
|
913
|
+
var postBody = null;
|
987
914
|
|
915
|
+
// verify the required parameter 'id' is set
|
988
916
|
if (id === undefined || id === null) {
|
989
917
|
throw new Error("Missing the required parameter 'id' when calling getDealMailMessages");
|
990
918
|
}
|
991
|
-
|
992
919
|
var pathParams = {
|
993
920
|
'id': id
|
994
921
|
};
|
@@ -1002,7 +929,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1002
929
|
var contentTypes = [];
|
1003
930
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1004
931
|
var isJSON = contentTypes.includes('application/json');
|
1005
|
-
|
1006
932
|
if (isJSON) {
|
1007
933
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1008
934
|
} else if (isURLEncoded) {
|
@@ -1012,12 +938,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1012
938
|
}
|
1013
939
|
}
|
1014
940
|
}
|
1015
|
-
|
1016
941
|
var authNames = ['api_key', 'oauth2'];
|
1017
942
|
var accepts = ['application/json'];
|
1018
943
|
var returnType = _ListMailMessagesResponse["default"];
|
1019
944
|
return this.apiClient.callApi('/deals/{id}/mailMessages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1020
945
|
}
|
946
|
+
|
1021
947
|
/**
|
1022
948
|
* List mail messages associated with a deal
|
1023
949
|
* Lists mail messages associated with a deal.
|
@@ -1027,7 +953,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1027
953
|
* @param {Number} opts.limit Items shown per page
|
1028
954
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMailMessagesResponse}
|
1029
955
|
*/
|
1030
|
-
|
1031
956
|
}, {
|
1032
957
|
key: "getDealMailMessages",
|
1033
958
|
value: function getDealMailMessages(id, opts) {
|
@@ -1035,6 +960,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1035
960
|
return response_and_data;
|
1036
961
|
});
|
1037
962
|
}
|
963
|
+
|
1038
964
|
/**
|
1039
965
|
* List participants of a deal
|
1040
966
|
* Lists the participants associated with a deal.<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.
|
@@ -1044,17 +970,16 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1044
970
|
* @param {Number} opts.limit Items shown per page
|
1045
971
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DealParticipants} and HTTP response
|
1046
972
|
*/
|
1047
|
-
|
1048
973
|
}, {
|
1049
974
|
key: "getDealParticipantsWithHttpInfo",
|
1050
975
|
value: function getDealParticipantsWithHttpInfo(id, opts) {
|
1051
976
|
opts = opts || {};
|
1052
|
-
var postBody = null;
|
977
|
+
var postBody = null;
|
1053
978
|
|
979
|
+
// verify the required parameter 'id' is set
|
1054
980
|
if (id === undefined || id === null) {
|
1055
981
|
throw new Error("Missing the required parameter 'id' when calling getDealParticipants");
|
1056
982
|
}
|
1057
|
-
|
1058
983
|
var pathParams = {
|
1059
984
|
'id': id
|
1060
985
|
};
|
@@ -1068,7 +993,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1068
993
|
var contentTypes = [];
|
1069
994
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1070
995
|
var isJSON = contentTypes.includes('application/json');
|
1071
|
-
|
1072
996
|
if (isJSON) {
|
1073
997
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1074
998
|
} else if (isURLEncoded) {
|
@@ -1078,12 +1002,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1078
1002
|
}
|
1079
1003
|
}
|
1080
1004
|
}
|
1081
|
-
|
1082
1005
|
var authNames = ['api_key', 'oauth2'];
|
1083
1006
|
var accepts = ['application/json'];
|
1084
1007
|
var returnType = _DealParticipants["default"];
|
1085
1008
|
return this.apiClient.callApi('/deals/{id}/participants', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1086
1009
|
}
|
1010
|
+
|
1087
1011
|
/**
|
1088
1012
|
* List participants of a deal
|
1089
1013
|
* Lists the participants associated with a deal.<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.
|
@@ -1093,7 +1017,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1093
1017
|
* @param {Number} opts.limit Items shown per page
|
1094
1018
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DealParticipants}
|
1095
1019
|
*/
|
1096
|
-
|
1097
1020
|
}, {
|
1098
1021
|
key: "getDealParticipants",
|
1099
1022
|
value: function getDealParticipants(id, opts) {
|
@@ -1101,26 +1024,26 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1101
1024
|
return response_and_data;
|
1102
1025
|
});
|
1103
1026
|
}
|
1027
|
+
|
1104
1028
|
/**
|
1105
1029
|
* List all persons associated with a deal
|
1106
|
-
* Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
|
1030
|
+
* Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.<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.
|
1107
1031
|
* @param {Number} id The ID of the deal
|
1108
1032
|
* @param {Object} opts Optional parameters
|
1109
1033
|
* @param {Number} opts.start Pagination start (default to 0)
|
1110
1034
|
* @param {Number} opts.limit Items shown per page
|
1111
1035
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPersonsResponse} and HTTP response
|
1112
1036
|
*/
|
1113
|
-
|
1114
1037
|
}, {
|
1115
1038
|
key: "getDealPersonsWithHttpInfo",
|
1116
1039
|
value: function getDealPersonsWithHttpInfo(id, opts) {
|
1117
1040
|
opts = opts || {};
|
1118
|
-
var postBody = null;
|
1041
|
+
var postBody = null;
|
1119
1042
|
|
1043
|
+
// verify the required parameter 'id' is set
|
1120
1044
|
if (id === undefined || id === null) {
|
1121
1045
|
throw new Error("Missing the required parameter 'id' when calling getDealPersons");
|
1122
1046
|
}
|
1123
|
-
|
1124
1047
|
var pathParams = {
|
1125
1048
|
'id': id
|
1126
1049
|
};
|
@@ -1134,7 +1057,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1134
1057
|
var contentTypes = [];
|
1135
1058
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1136
1059
|
var isJSON = contentTypes.includes('application/json');
|
1137
|
-
|
1138
1060
|
if (isJSON) {
|
1139
1061
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1140
1062
|
} else if (isURLEncoded) {
|
@@ -1144,22 +1066,21 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1144
1066
|
}
|
1145
1067
|
}
|
1146
1068
|
}
|
1147
|
-
|
1148
1069
|
var authNames = ['api_key', 'oauth2'];
|
1149
1070
|
var accepts = ['application/json'];
|
1150
1071
|
var returnType = _ListPersonsResponse["default"];
|
1151
1072
|
return this.apiClient.callApi('/deals/{id}/persons', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1152
1073
|
}
|
1074
|
+
|
1153
1075
|
/**
|
1154
1076
|
* List all persons associated with a deal
|
1155
|
-
* Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
|
1077
|
+
* Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.<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.
|
1156
1078
|
* @param {Number} id The ID of the deal
|
1157
1079
|
* @param {Object} opts Optional parameters
|
1158
1080
|
* @param {Number} opts.start Pagination start (default to 0)
|
1159
1081
|
* @param {Number} opts.limit Items shown per page
|
1160
1082
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPersonsResponse}
|
1161
1083
|
*/
|
1162
|
-
|
1163
1084
|
}, {
|
1164
1085
|
key: "getDealPersons",
|
1165
1086
|
value: function getDealPersons(id, opts) {
|
@@ -1167,6 +1088,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1167
1088
|
return response_and_data;
|
1168
1089
|
});
|
1169
1090
|
}
|
1091
|
+
|
1170
1092
|
/**
|
1171
1093
|
* List products attached to a deal
|
1172
1094
|
* Lists products attached to a deal.
|
@@ -1177,17 +1099,16 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1177
1099
|
* @param {module:model/NumberBoolean} opts.includeProductData Whether to fetch product data along with each attached product (1) or not (0, default)
|
1178
1100
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListProductsResponse} and HTTP response
|
1179
1101
|
*/
|
1180
|
-
|
1181
1102
|
}, {
|
1182
1103
|
key: "getDealProductsWithHttpInfo",
|
1183
1104
|
value: function getDealProductsWithHttpInfo(id, opts) {
|
1184
1105
|
opts = opts || {};
|
1185
|
-
var postBody = null;
|
1106
|
+
var postBody = null;
|
1186
1107
|
|
1108
|
+
// verify the required parameter 'id' is set
|
1187
1109
|
if (id === undefined || id === null) {
|
1188
1110
|
throw new Error("Missing the required parameter 'id' when calling getDealProducts");
|
1189
1111
|
}
|
1190
|
-
|
1191
1112
|
var pathParams = {
|
1192
1113
|
'id': id
|
1193
1114
|
};
|
@@ -1202,7 +1123,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1202
1123
|
var contentTypes = [];
|
1203
1124
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1204
1125
|
var isJSON = contentTypes.includes('application/json');
|
1205
|
-
|
1206
1126
|
if (isJSON) {
|
1207
1127
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1208
1128
|
} else if (isURLEncoded) {
|
@@ -1212,12 +1132,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1212
1132
|
}
|
1213
1133
|
}
|
1214
1134
|
}
|
1215
|
-
|
1216
1135
|
var authNames = ['api_key', 'oauth2'];
|
1217
1136
|
var accepts = ['application/json'];
|
1218
1137
|
var returnType = _ListProductsResponse["default"];
|
1219
1138
|
return this.apiClient.callApi('/deals/{id}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1220
1139
|
}
|
1140
|
+
|
1221
1141
|
/**
|
1222
1142
|
* List products attached to a deal
|
1223
1143
|
* Lists products attached to a deal.
|
@@ -1228,7 +1148,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1228
1148
|
* @param {module:model/NumberBoolean} opts.includeProductData Whether to fetch product data along with each attached product (1) or not (0, default)
|
1229
1149
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListProductsResponse}
|
1230
1150
|
*/
|
1231
|
-
|
1232
1151
|
}, {
|
1233
1152
|
key: "getDealProducts",
|
1234
1153
|
value: function getDealProducts(id, opts) {
|
@@ -1236,6 +1155,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1236
1155
|
return response_and_data;
|
1237
1156
|
});
|
1238
1157
|
}
|
1158
|
+
|
1239
1159
|
/**
|
1240
1160
|
* List updates about a deal
|
1241
1161
|
* Lists updates about a deal.
|
@@ -1247,17 +1167,16 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1247
1167
|
* @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)
|
1248
1168
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DealFlowResponse} and HTTP response
|
1249
1169
|
*/
|
1250
|
-
|
1251
1170
|
}, {
|
1252
1171
|
key: "getDealUpdatesWithHttpInfo",
|
1253
1172
|
value: function getDealUpdatesWithHttpInfo(id, opts) {
|
1254
1173
|
opts = opts || {};
|
1255
|
-
var postBody = null;
|
1174
|
+
var postBody = null;
|
1256
1175
|
|
1176
|
+
// verify the required parameter 'id' is set
|
1257
1177
|
if (id === undefined || id === null) {
|
1258
1178
|
throw new Error("Missing the required parameter 'id' when calling getDealUpdates");
|
1259
1179
|
}
|
1260
|
-
|
1261
1180
|
var pathParams = {
|
1262
1181
|
'id': id
|
1263
1182
|
};
|
@@ -1273,7 +1192,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1273
1192
|
var contentTypes = [];
|
1274
1193
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1275
1194
|
var isJSON = contentTypes.includes('application/json');
|
1276
|
-
|
1277
1195
|
if (isJSON) {
|
1278
1196
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1279
1197
|
} else if (isURLEncoded) {
|
@@ -1283,12 +1201,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1283
1201
|
}
|
1284
1202
|
}
|
1285
1203
|
}
|
1286
|
-
|
1287
1204
|
var authNames = ['api_key', 'oauth2'];
|
1288
1205
|
var accepts = ['application/json'];
|
1289
1206
|
var returnType = _DealFlowResponse["default"];
|
1290
1207
|
return this.apiClient.callApi('/deals/{id}/flow', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1291
1208
|
}
|
1209
|
+
|
1292
1210
|
/**
|
1293
1211
|
* List updates about a deal
|
1294
1212
|
* Lists updates about a deal.
|
@@ -1300,7 +1218,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1300
1218
|
* @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)
|
1301
1219
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DealFlowResponse}
|
1302
1220
|
*/
|
1303
|
-
|
1304
1221
|
}, {
|
1305
1222
|
key: "getDealUpdates",
|
1306
1223
|
value: function getDealUpdates(id, opts) {
|
@@ -1308,23 +1225,23 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1308
1225
|
return response_and_data;
|
1309
1226
|
});
|
1310
1227
|
}
|
1228
|
+
|
1311
1229
|
/**
|
1312
1230
|
* List permitted users
|
1313
1231
|
* Lists the users permitted to access a deal.
|
1314
1232
|
* @param {Number} id The ID of the deal
|
1315
1233
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPermittedUsersResponse} and HTTP response
|
1316
1234
|
*/
|
1317
|
-
|
1318
1235
|
}, {
|
1319
1236
|
key: "getDealUsersWithHttpInfo",
|
1320
1237
|
value: function getDealUsersWithHttpInfo(id) {
|
1321
1238
|
var opts = {};
|
1322
|
-
var postBody = null;
|
1239
|
+
var postBody = null;
|
1323
1240
|
|
1241
|
+
// verify the required parameter 'id' is set
|
1324
1242
|
if (id === undefined || id === null) {
|
1325
1243
|
throw new Error("Missing the required parameter 'id' when calling getDealUsers");
|
1326
1244
|
}
|
1327
|
-
|
1328
1245
|
var pathParams = {
|
1329
1246
|
'id': id
|
1330
1247
|
};
|
@@ -1335,7 +1252,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1335
1252
|
var contentTypes = [];
|
1336
1253
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1337
1254
|
var isJSON = contentTypes.includes('application/json');
|
1338
|
-
|
1339
1255
|
if (isJSON) {
|
1340
1256
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1341
1257
|
} else if (isURLEncoded) {
|
@@ -1345,19 +1261,18 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1345
1261
|
}
|
1346
1262
|
}
|
1347
1263
|
}
|
1348
|
-
|
1349
1264
|
var authNames = ['api_key'];
|
1350
1265
|
var accepts = ['application/json'];
|
1351
1266
|
var returnType = _ListPermittedUsersResponse["default"];
|
1352
1267
|
return this.apiClient.callApi('/deals/{id}/permittedUsers', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1353
1268
|
}
|
1269
|
+
|
1354
1270
|
/**
|
1355
1271
|
* List permitted users
|
1356
1272
|
* Lists the users permitted to access a deal.
|
1357
1273
|
* @param {Number} id The ID of the deal
|
1358
1274
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPermittedUsersResponse}
|
1359
1275
|
*/
|
1360
|
-
|
1361
1276
|
}, {
|
1362
1277
|
key: "getDealUsers",
|
1363
1278
|
value: function getDealUsers(id) {
|
@@ -1365,6 +1280,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1365
1280
|
return response_and_data;
|
1366
1281
|
});
|
1367
1282
|
}
|
1283
|
+
|
1368
1284
|
/**
|
1369
1285
|
* Get all deals
|
1370
1286
|
* Returns all deals. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/getting-all-deals\" target=\"_blank\" rel=\"noopener noreferrer\">getting all deals</a>.
|
@@ -1372,14 +1288,13 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1372
1288
|
* @param {Number} opts.userId If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied.
|
1373
1289
|
* @param {Number} opts.filterId The ID of the filter to use
|
1374
1290
|
* @param {Number} opts.stageId If supplied, only deals within the given stage will be returned
|
1375
|
-
* @param {module:model/String} opts.status Only fetch deals with a specific status. If omitted, all not deleted deals are
|
1291
|
+
* @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')
|
1376
1292
|
* @param {Number} opts.start Pagination start (default to 0)
|
1377
1293
|
* @param {Number} opts.limit Items shown per page
|
1378
1294
|
* @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).
|
1379
1295
|
* @param {module:model/NumberBoolean} opts.ownedByYou When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied.
|
1380
1296
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeals} and HTTP response
|
1381
1297
|
*/
|
1382
|
-
|
1383
1298
|
}, {
|
1384
1299
|
key: "getDealsWithHttpInfo",
|
1385
1300
|
value: function getDealsWithHttpInfo(opts) {
|
@@ -1402,7 +1317,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1402
1317
|
var contentTypes = [];
|
1403
1318
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1404
1319
|
var isJSON = contentTypes.includes('application/json');
|
1405
|
-
|
1406
1320
|
if (isJSON) {
|
1407
1321
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1408
1322
|
} else if (isURLEncoded) {
|
@@ -1412,12 +1326,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1412
1326
|
}
|
1413
1327
|
}
|
1414
1328
|
}
|
1415
|
-
|
1416
1329
|
var authNames = ['api_key', 'oauth2'];
|
1417
1330
|
var accepts = ['application/json'];
|
1418
1331
|
var returnType = _GetDeals["default"];
|
1419
1332
|
return this.apiClient.callApi('/deals', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1420
1333
|
}
|
1334
|
+
|
1421
1335
|
/**
|
1422
1336
|
* Get all deals
|
1423
1337
|
* Returns all deals. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/getting-all-deals\" target=\"_blank\" rel=\"noopener noreferrer\">getting all deals</a>.
|
@@ -1425,14 +1339,13 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1425
1339
|
* @param {Number} opts.userId If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied.
|
1426
1340
|
* @param {Number} opts.filterId The ID of the filter to use
|
1427
1341
|
* @param {Number} opts.stageId If supplied, only deals within the given stage will be returned
|
1428
|
-
* @param {module:model/String} opts.status Only fetch deals with a specific status. If omitted, all not deleted deals are
|
1342
|
+
* @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')
|
1429
1343
|
* @param {Number} opts.start Pagination start (default to 0)
|
1430
1344
|
* @param {Number} opts.limit Items shown per page
|
1431
1345
|
* @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).
|
1432
1346
|
* @param {module:model/NumberBoolean} opts.ownedByYou When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied.
|
1433
1347
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeals}
|
1434
1348
|
*/
|
1435
|
-
|
1436
1349
|
}, {
|
1437
1350
|
key: "getDeals",
|
1438
1351
|
value: function getDeals(opts) {
|
@@ -1440,6 +1353,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1440
1353
|
return response_and_data;
|
1441
1354
|
});
|
1442
1355
|
}
|
1356
|
+
|
1443
1357
|
/**
|
1444
1358
|
* Get deals summary
|
1445
1359
|
* Returns a summary of all the deals.
|
@@ -1450,7 +1364,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1450
1364
|
* @param {Number} opts.stageId Only deals within the given stage will be returned
|
1451
1365
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDealsSummary} and HTTP response
|
1452
1366
|
*/
|
1453
|
-
|
1454
1367
|
}, {
|
1455
1368
|
key: "getDealsSummaryWithHttpInfo",
|
1456
1369
|
value: function getDealsSummaryWithHttpInfo(opts) {
|
@@ -1469,7 +1382,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1469
1382
|
var contentTypes = [];
|
1470
1383
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1471
1384
|
var isJSON = contentTypes.includes('application/json');
|
1472
|
-
|
1473
1385
|
if (isJSON) {
|
1474
1386
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1475
1387
|
} else if (isURLEncoded) {
|
@@ -1479,12 +1391,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1479
1391
|
}
|
1480
1392
|
}
|
1481
1393
|
}
|
1482
|
-
|
1483
1394
|
var authNames = ['api_key', 'oauth2'];
|
1484
1395
|
var accepts = ['application/json'];
|
1485
1396
|
var returnType = _GetDealsSummary["default"];
|
1486
1397
|
return this.apiClient.callApi('/deals/summary', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1487
1398
|
}
|
1399
|
+
|
1488
1400
|
/**
|
1489
1401
|
* Get deals summary
|
1490
1402
|
* Returns a summary of all the deals.
|
@@ -1495,7 +1407,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1495
1407
|
* @param {Number} opts.stageId Only deals within the given stage will be returned
|
1496
1408
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDealsSummary}
|
1497
1409
|
*/
|
1498
|
-
|
1499
1410
|
}, {
|
1500
1411
|
key: "getDealsSummary",
|
1501
1412
|
value: function getDealsSummary(opts) {
|
@@ -1503,6 +1414,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1503
1414
|
return response_and_data;
|
1504
1415
|
});
|
1505
1416
|
}
|
1417
|
+
|
1506
1418
|
/**
|
1507
1419
|
* Get deals timeline
|
1508
1420
|
* Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (`field_key`) — e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2012, deals are returned grouped into 3 groups — January, February and March — based on the value of the given `field_key`.
|
@@ -1518,32 +1430,31 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1518
1430
|
* @param {String} opts.totalsConvertCurrency The 3-letter currency code of any of the supported currencies. When supplied, `totals_converted` is returned per each interval which contains the currency-converted total amounts in the given currency. You may also set this parameter to `default_currency` in which case the user's default currency is used.
|
1519
1431
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDealsTimeline} and HTTP response
|
1520
1432
|
*/
|
1521
|
-
|
1522
1433
|
}, {
|
1523
1434
|
key: "getDealsTimelineWithHttpInfo",
|
1524
1435
|
value: function getDealsTimelineWithHttpInfo(startDate, interval, amount, fieldKey, opts) {
|
1525
1436
|
opts = opts || {};
|
1526
|
-
var postBody = null;
|
1437
|
+
var postBody = null;
|
1527
1438
|
|
1439
|
+
// verify the required parameter 'startDate' is set
|
1528
1440
|
if (startDate === undefined || startDate === null) {
|
1529
1441
|
throw new Error("Missing the required parameter 'startDate' when calling getDealsTimeline");
|
1530
|
-
}
|
1531
|
-
|
1442
|
+
}
|
1532
1443
|
|
1444
|
+
// verify the required parameter 'interval' is set
|
1533
1445
|
if (interval === undefined || interval === null) {
|
1534
1446
|
throw new Error("Missing the required parameter 'interval' when calling getDealsTimeline");
|
1535
|
-
}
|
1536
|
-
|
1447
|
+
}
|
1537
1448
|
|
1449
|
+
// verify the required parameter 'amount' is set
|
1538
1450
|
if (amount === undefined || amount === null) {
|
1539
1451
|
throw new Error("Missing the required parameter 'amount' when calling getDealsTimeline");
|
1540
|
-
}
|
1541
|
-
|
1452
|
+
}
|
1542
1453
|
|
1454
|
+
// verify the required parameter 'fieldKey' is set
|
1543
1455
|
if (fieldKey === undefined || fieldKey === null) {
|
1544
1456
|
throw new Error("Missing the required parameter 'fieldKey' when calling getDealsTimeline");
|
1545
1457
|
}
|
1546
|
-
|
1547
1458
|
var pathParams = {};
|
1548
1459
|
var queryParams = {
|
1549
1460
|
'start_date': startDate,
|
@@ -1562,7 +1473,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1562
1473
|
var contentTypes = [];
|
1563
1474
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1564
1475
|
var isJSON = contentTypes.includes('application/json');
|
1565
|
-
|
1566
1476
|
if (isJSON) {
|
1567
1477
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1568
1478
|
} else if (isURLEncoded) {
|
@@ -1572,12 +1482,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1572
1482
|
}
|
1573
1483
|
}
|
1574
1484
|
}
|
1575
|
-
|
1576
1485
|
var authNames = ['api_key', 'oauth2'];
|
1577
1486
|
var accepts = ['application/json'];
|
1578
1487
|
var returnType = _GetDealsTimeline["default"];
|
1579
1488
|
return this.apiClient.callApi('/deals/timeline', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1580
1489
|
}
|
1490
|
+
|
1581
1491
|
/**
|
1582
1492
|
* Get deals timeline
|
1583
1493
|
* Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (`field_key`) — e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2012, deals are returned grouped into 3 groups — January, February and March — based on the value of the given `field_key`.
|
@@ -1593,7 +1503,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1593
1503
|
* @param {String} opts.totalsConvertCurrency The 3-letter currency code of any of the supported currencies. When supplied, `totals_converted` is returned per each interval which contains the currency-converted total amounts in the given currency. You may also set this parameter to `default_currency` in which case the user's default currency is used.
|
1594
1504
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDealsTimeline}
|
1595
1505
|
*/
|
1596
|
-
|
1597
1506
|
}, {
|
1598
1507
|
key: "getDealsTimeline",
|
1599
1508
|
value: function getDealsTimeline(startDate, interval, amount, fieldKey, opts) {
|
@@ -1601,6 +1510,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1601
1510
|
return response_and_data;
|
1602
1511
|
});
|
1603
1512
|
}
|
1513
|
+
|
1604
1514
|
/**
|
1605
1515
|
* Merge two deals
|
1606
1516
|
* Merges a deal with another deal. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/merging-two-deals\" target=\"_blank\" rel=\"noopener noreferrer\">merging two deals</a>.
|
@@ -1609,21 +1519,19 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1609
1519
|
* @param {module:model/MergeDealsRequest} opts.mergeDealsRequest
|
1610
1520
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetMergedDeal} and HTTP response
|
1611
1521
|
*/
|
1612
|
-
|
1613
1522
|
}, {
|
1614
1523
|
key: "mergeDealsWithHttpInfo",
|
1615
1524
|
value: function mergeDealsWithHttpInfo(id, opts) {
|
1616
1525
|
opts = opts || {};
|
1617
|
-
var postBody = opts['mergeDealsRequest'];
|
1526
|
+
var postBody = opts['mergeDealsRequest'];
|
1618
1527
|
|
1528
|
+
// verify the required parameter 'id' is set
|
1619
1529
|
if (id === undefined || id === null) {
|
1620
1530
|
throw new Error("Missing the required parameter 'id' when calling mergeDeals");
|
1621
1531
|
}
|
1622
|
-
|
1623
1532
|
if (opts['merge_with_id'] === undefined || opts['merge_with_id'] === null) {
|
1624
1533
|
throw new Error("Missing the required parameter 'merge_with_id' when calling mergeDeals");
|
1625
1534
|
}
|
1626
|
-
|
1627
1535
|
var pathParams = {
|
1628
1536
|
'id': id
|
1629
1537
|
};
|
@@ -1634,7 +1542,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1634
1542
|
var contentTypes = ['application/json'];
|
1635
1543
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1636
1544
|
var isJSON = contentTypes.includes('application/json');
|
1637
|
-
|
1638
1545
|
if (isJSON) {
|
1639
1546
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1640
1547
|
} else if (isURLEncoded) {
|
@@ -1644,12 +1551,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1644
1551
|
}
|
1645
1552
|
}
|
1646
1553
|
}
|
1647
|
-
|
1648
1554
|
var authNames = ['api_key', 'oauth2'];
|
1649
1555
|
var accepts = ['application/json'];
|
1650
1556
|
var returnType = _GetMergedDeal["default"];
|
1651
1557
|
return this.apiClient.callApi('/deals/{id}/merge', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1652
1558
|
}
|
1559
|
+
|
1653
1560
|
/**
|
1654
1561
|
* Merge two deals
|
1655
1562
|
* Merges a deal with another deal. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/merging-two-deals\" target=\"_blank\" rel=\"noopener noreferrer\">merging two deals</a>.
|
@@ -1658,7 +1565,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1658
1565
|
* @param {module:model/MergeDealsRequest} opts.mergeDealsRequest
|
1659
1566
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetMergedDeal}
|
1660
1567
|
*/
|
1661
|
-
|
1662
1568
|
}, {
|
1663
1569
|
key: "mergeDeals",
|
1664
1570
|
value: function mergeDeals(id, opts) {
|
@@ -1666,10 +1572,11 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1666
1572
|
return response_and_data;
|
1667
1573
|
});
|
1668
1574
|
}
|
1575
|
+
|
1669
1576
|
/**
|
1670
1577
|
* Search deals
|
1671
1578
|
* Searches all deals by title, 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 deals can be filtered by the person ID and the organization ID.
|
1672
|
-
* @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`).
|
1579
|
+
* @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.
|
1673
1580
|
* @param {Object} opts Optional parameters
|
1674
1581
|
* @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
1675
1582
|
* @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.
|
@@ -1681,17 +1588,16 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1681
1588
|
* @param {Number} opts.limit Items shown per page
|
1682
1589
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DealSearchResponse} and HTTP response
|
1683
1590
|
*/
|
1684
|
-
|
1685
1591
|
}, {
|
1686
1592
|
key: "searchDealsWithHttpInfo",
|
1687
1593
|
value: function searchDealsWithHttpInfo(term, opts) {
|
1688
1594
|
opts = opts || {};
|
1689
|
-
var postBody = null;
|
1595
|
+
var postBody = null;
|
1690
1596
|
|
1597
|
+
// verify the required parameter 'term' is set
|
1691
1598
|
if (term === undefined || term === null) {
|
1692
1599
|
throw new Error("Missing the required parameter 'term' when calling searchDeals");
|
1693
1600
|
}
|
1694
|
-
|
1695
1601
|
var pathParams = {};
|
1696
1602
|
var queryParams = {
|
1697
1603
|
'term': term,
|
@@ -1710,7 +1616,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1710
1616
|
var contentTypes = [];
|
1711
1617
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1712
1618
|
var isJSON = contentTypes.includes('application/json');
|
1713
|
-
|
1714
1619
|
if (isJSON) {
|
1715
1620
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1716
1621
|
} else if (isURLEncoded) {
|
@@ -1720,16 +1625,16 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1720
1625
|
}
|
1721
1626
|
}
|
1722
1627
|
}
|
1723
|
-
|
1724
1628
|
var authNames = ['api_key', 'oauth2'];
|
1725
1629
|
var accepts = ['application/json'];
|
1726
1630
|
var returnType = _DealSearchResponse["default"];
|
1727
1631
|
return this.apiClient.callApi('/deals/search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1728
1632
|
}
|
1633
|
+
|
1729
1634
|
/**
|
1730
1635
|
* Search deals
|
1731
1636
|
* Searches all deals by title, 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 deals can be filtered by the person ID and the organization ID.
|
1732
|
-
* @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`).
|
1637
|
+
* @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.
|
1733
1638
|
* @param {Object} opts Optional parameters
|
1734
1639
|
* @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
1735
1640
|
* @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.
|
@@ -1741,7 +1646,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1741
1646
|
* @param {Number} opts.limit Items shown per page
|
1742
1647
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DealSearchResponse}
|
1743
1648
|
*/
|
1744
|
-
|
1745
1649
|
}, {
|
1746
1650
|
key: "searchDeals",
|
1747
1651
|
value: function searchDeals(term, opts) {
|
@@ -1749,6 +1653,7 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1749
1653
|
return response_and_data;
|
1750
1654
|
});
|
1751
1655
|
}
|
1656
|
+
|
1752
1657
|
/**
|
1753
1658
|
* Update a deal
|
1754
1659
|
* Updates the properties of a deal. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/updating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">updating a deal</a>.
|
@@ -1757,17 +1662,16 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1757
1662
|
* @param {module:model/UpdateDealRequest} opts.updateDealRequest
|
1758
1663
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAddedDeal} and HTTP response
|
1759
1664
|
*/
|
1760
|
-
|
1761
1665
|
}, {
|
1762
1666
|
key: "updateDealWithHttpInfo",
|
1763
1667
|
value: function updateDealWithHttpInfo(id, opts) {
|
1764
1668
|
opts = opts || {};
|
1765
|
-
var postBody = opts['updateDealRequest'];
|
1669
|
+
var postBody = opts['updateDealRequest'];
|
1766
1670
|
|
1671
|
+
// verify the required parameter 'id' is set
|
1767
1672
|
if (id === undefined || id === null) {
|
1768
1673
|
throw new Error("Missing the required parameter 'id' when calling updateDeal");
|
1769
1674
|
}
|
1770
|
-
|
1771
1675
|
var pathParams = {
|
1772
1676
|
'id': id
|
1773
1677
|
};
|
@@ -1778,7 +1682,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1778
1682
|
var contentTypes = ['application/json'];
|
1779
1683
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1780
1684
|
var isJSON = contentTypes.includes('application/json');
|
1781
|
-
|
1782
1685
|
if (isJSON) {
|
1783
1686
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1784
1687
|
} else if (isURLEncoded) {
|
@@ -1788,12 +1691,12 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1788
1691
|
}
|
1789
1692
|
}
|
1790
1693
|
}
|
1791
|
-
|
1792
1694
|
var authNames = ['api_key', 'oauth2'];
|
1793
1695
|
var accepts = ['application/json'];
|
1794
1696
|
var returnType = _GetAddedDeal["default"];
|
1795
1697
|
return this.apiClient.callApi('/deals/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1796
1698
|
}
|
1699
|
+
|
1797
1700
|
/**
|
1798
1701
|
* Update a deal
|
1799
1702
|
* Updates the properties of a deal. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/updating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">updating a deal</a>.
|
@@ -1802,7 +1705,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1802
1705
|
* @param {module:model/UpdateDealRequest} opts.updateDealRequest
|
1803
1706
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAddedDeal}
|
1804
1707
|
*/
|
1805
|
-
|
1806
1708
|
}, {
|
1807
1709
|
key: "updateDeal",
|
1808
1710
|
value: function updateDeal(id, opts) {
|
@@ -1810,39 +1712,40 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1810
1712
|
return response_and_data;
|
1811
1713
|
});
|
1812
1714
|
}
|
1715
|
+
|
1813
1716
|
/**
|
1814
|
-
* Update
|
1815
|
-
* Updates product
|
1717
|
+
* Update the product attached to a deal
|
1718
|
+
* Updates the details of the product that has been attached to a deal.
|
1816
1719
|
* @param {Number} id The ID of the deal
|
1817
1720
|
* @param {Number} productAttachmentId The ID of the deal-product (the ID of the product attached to the deal)
|
1818
1721
|
* @param {Object} opts Optional parameters
|
1819
1722
|
* @param {module:model/BasicDealProduct} opts.basicDealProduct
|
1820
1723
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProductAttachementDetails} and HTTP response
|
1821
1724
|
*/
|
1822
|
-
|
1823
1725
|
}, {
|
1824
1726
|
key: "updateDealProductWithHttpInfo",
|
1825
1727
|
value: function updateDealProductWithHttpInfo(id, productAttachmentId, opts) {
|
1826
1728
|
opts = opts || {};
|
1827
|
-
var postBody = opts['basicDealProduct'];
|
1729
|
+
var postBody = opts['basicDealProduct'];
|
1828
1730
|
|
1731
|
+
// verify the required parameter 'id' is set
|
1829
1732
|
if (id === undefined || id === null) {
|
1830
1733
|
throw new Error("Missing the required parameter 'id' when calling updateDealProduct");
|
1831
|
-
}
|
1832
|
-
|
1734
|
+
}
|
1833
1735
|
|
1736
|
+
// verify the required parameter 'productAttachmentId' is set
|
1834
1737
|
if (productAttachmentId === undefined || productAttachmentId === null) {
|
1835
1738
|
throw new Error("Missing the required parameter 'productAttachmentId' when calling updateDealProduct");
|
1836
1739
|
}
|
1837
|
-
|
1740
|
+
if (opts['product_id'] === undefined || opts['product_id'] === null) {
|
1741
|
+
throw new Error("Missing the required parameter 'product_id' when calling updateDealProduct");
|
1742
|
+
}
|
1838
1743
|
if (opts['item_price'] === undefined || opts['item_price'] === null) {
|
1839
1744
|
throw new Error("Missing the required parameter 'item_price' when calling updateDealProduct");
|
1840
1745
|
}
|
1841
|
-
|
1842
1746
|
if (opts['quantity'] === undefined || opts['quantity'] === null) {
|
1843
1747
|
throw new Error("Missing the required parameter 'quantity' when calling updateDealProduct");
|
1844
1748
|
}
|
1845
|
-
|
1846
1749
|
var pathParams = {
|
1847
1750
|
'id': id,
|
1848
1751
|
'product_attachment_id': productAttachmentId
|
@@ -1854,7 +1757,6 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1854
1757
|
var contentTypes = ['application/json'];
|
1855
1758
|
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
1856
1759
|
var isJSON = contentTypes.includes('application/json');
|
1857
|
-
|
1858
1760
|
if (isJSON) {
|
1859
1761
|
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
1860
1762
|
} else if (isURLEncoded) {
|
@@ -1864,22 +1766,21 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1864
1766
|
}
|
1865
1767
|
}
|
1866
1768
|
}
|
1867
|
-
|
1868
1769
|
var authNames = ['api_key'];
|
1869
1770
|
var accepts = ['application/json'];
|
1870
1771
|
var returnType = _GetProductAttachementDetails["default"];
|
1871
1772
|
return this.apiClient.callApi('/deals/{id}/products/{product_attachment_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
1872
1773
|
}
|
1774
|
+
|
1873
1775
|
/**
|
1874
|
-
* Update
|
1875
|
-
* Updates product
|
1776
|
+
* Update the product attached to a deal
|
1777
|
+
* Updates the details of the product that has been attached to a deal.
|
1876
1778
|
* @param {Number} id The ID of the deal
|
1877
1779
|
* @param {Number} productAttachmentId The ID of the deal-product (the ID of the product attached to the deal)
|
1878
1780
|
* @param {Object} opts Optional parameters
|
1879
1781
|
* @param {module:model/BasicDealProduct} opts.basicDealProduct
|
1880
1782
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProductAttachementDetails}
|
1881
1783
|
*/
|
1882
|
-
|
1883
1784
|
}, {
|
1884
1785
|
key: "updateDealProduct",
|
1885
1786
|
value: function updateDealProduct(id, productAttachmentId, opts) {
|
@@ -1890,5 +1791,4 @@ var DealsApi = /*#__PURE__*/function () {
|
|
1890
1791
|
}]);
|
1891
1792
|
return DealsApi;
|
1892
1793
|
}();
|
1893
|
-
|
1894
1794
|
exports["default"] = DealsApi;
|