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